{{ config(['app.name' => get_settings('system_title')]) }} @php if(isset($type) && isset($listing_id)){ if($type == 'beauty'){ $seo_field = App\Models\BeautyListing::where('id', $listing_id)->first(); }elseif($type == 'car'){ $seo_field = App\Models\CarListing::where('id', $listing_id)->first(); }elseif($type == 'real-estate'){ $seo_field = App\Models\RealEstateListing::where('id', $listing_id)->first(); }elseif($type == 'hotel'){ $seo_field = App\Models\HotelListing::where('id', $listing_id)->first(); }elseif($type == 'restaurant'){ $seo_field = App\Models\RestaurantListing::where('id', $listing_id)->first(); }else{ $seo_field = App\Models\CustomListings::where('id', $listing_id)->first(); } }else{ $current_route = Route::currentRouteName(); $seo_field = App\Models\SeoField::where('name_route', $current_route); $seo_field = $seo_field->firstOrNew(); } @endphp @if (!empty($seo_field['meta_title']))