@php // dd($country_slug); $s_categories = \App\Models\SupplierCategory::isActive()->orderBy('order', 'desc')->get(); // dd($country_slug); $getCountry = \App\Models\Country::where('prefix',session('country'))->first(); if(is_null($getCountry)){ $getCountry= \App\Models\Country::first(); \Illuminate\Support\Facades\Session::put('country',$getCountry->prefix); \URL::defaults(['country' => $getCountry->prefix ]); $setting = \App\Models\Setting::getByCountry($getCountry->id)->first(); } $get_main_country = \App\Models\Country::where('prefix','!=',session('country'))->where('show_on_main',true)->get(); ///sdd($getCountry,$country_slug); @endphp