@php use App\Models\Store; use Illuminate\Support\Facades\Auth; use App\Services\MediaService; $user = Auth::user(); $user_image = !empty($user->image) && file_exists(public_path(config('constants.USER_IMG_PATH') . $user->image)) ? app(MediaService::class)->getMediaImageUrl($user->image, 'USER_IMG_PATH') : app(MediaService::class)->getImageUrl('no-user-img.jpeg', '', '', 'image', 'NO_USER_IMAGE'); use App\Models\Language; $languages = Language::all(); $stores = Store::where('is_default_store', 1)->where('status', 1)->get(); @endphp @php $primary_colour = isset($stores[0]->primary_color) && !empty($stores[0]->primary_color) ? $stores[0]->primary_color : '#B52046'; $background_opacity_color = $primary_colour . '10'; $secondary_color = isset($stores[0]->secondary_color) && !empty($stores[0]->secondary_color) ? $stores[0]->secondary_color : '#201A1A'; $hover_color = isset($stores[0]->hover_color) && !empty($stores[0]->hover_color) ? $stores[0]->hover_color : '#911A38'; $active_color = isset($stores[0]->active_color) && !empty($stores[0]->active_color) ? $stores[0]->active_color : '#6D132A'; @endphp