{{ 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'])) {{ $seo_field['meta_title'] }} @else @stack('title') | {{ config('app.name') }} @endif @if(isset($seo_field['json_ld'])) {!! removeScripts($seo_field['json_ld'] != strip_tags($seo_field['json_ld']) ? $seo_field['json_ld']:'') !!} @endif @if(isset($type) && isset($listing_id)) @else @endif @stack('meta')