@php
$g_setting = \App\Models\GeneralSetting::where('id',1)->first();
$currency_list = \App\Models\Currency::get();
@endphp
@if(!session()->get('currency_name'))
@php
$sess_arr = \App\Models\Currency::where('is_default','Yes')->first();
$name1 = $sess_arr->name;
$symbol1 = $sess_arr->symbol;
$value1 = $sess_arr->value;
session()->put('currency_name',$name1);
session()->put('currency_symbol',$symbol1);
session()->put('currency_value',$value1);
@endphp
@endif
@php
$route = Route::currentRouteName();
@endphp
@if($route == null)
@php $item_row = \App\Models\PageHomeItem::where('id',1)->first(); @endphp
{{ $item_row->seo_title }}
@endif
@if($route == 'front_about')
@php $item_row = \App\Models\PageAboutItem::where('id',1)->first(); @endphp
{{ $item_row->seo_title }}
@endif
@if($route == 'front_contact')
@php $item_row = \App\Models\PageContactItem::where('id',1)->first(); @endphp
{{ $item_row->seo_title }}
@endif
@if($route == 'front_blogs')
@php $item_row = \App\Models\PageBlogItem::where('id',1)->first(); @endphp
{{ $item_row->seo_title }}
@endif
@if($route == 'front_post')
@php
$main_url = Request::url();
$slug = explode('post/',$main_url);
@endphp
@php $item_row = \App\Models\Blog::where('post_slug',$slug[1])->first(); @endphp
{{ $item_row->seo_title }}
@endif
@if($route == 'front_listing_result')
@php $item_row = \App\Models\PageListingItem::where('id',1)->first(); @endphp
{{ $item_row->seo_title }}
@endif
@if($route == 'front_listing_detail')
@php
$main_url = Request::url();
$slug = explode('listing/',$main_url);
@endphp
@php $item_row = \App\Models\Listing::where('listing_slug',$slug[1])->first(); @endphp
{{ $item_row->seo_title }}
@endif
@if($route == 'front_pricing')
@php $item_row = \App\Models\PagePricingItem::where('id',1)->first(); @endphp
{{ $item_row->seo_title }}
@endif
@if($route == 'front_faq')
@php $item_row = \App\Models\PageFaqItem::where('id',1)->first(); @endphp
{{ $item_row->seo_title }}
@endif
@if($route == 'front_listing_location_all')
@php $item_row = \App\Models\PageListingLocationItem::where('id',1)->first(); @endphp
{{ $item_row->seo_title }}
@endif
@if($route == 'front_listing_brand_all')
@php $item_row = \App\Models\PageListingBrandItem::where('id',1)->first(); @endphp
{{ $item_row->seo_title }}
@endif
@if($route == 'front_dynamic_page')
@php
$main_url = Request::url();
$slug = explode('page/',$main_url);
@endphp
@php $item_row = \App\Models\DynamicPage::where('dynamic_page_slug',$slug[1])->first(); @endphp
{{ $item_row->seo_title }}
@endif
@if($route == 'front_category')
@php
$main_url = Request::url();
$slug = explode('category/',$main_url);
@endphp
@php $item_row = \App\Models\Category::where('category_slug',$slug[1])->first(); @endphp
{{ $item_row->seo_title }}
@endif
@if($route == 'front_listing_location_detail')
@php
$main_url = Request::url();
$slug = explode('listing/location/',$main_url);
@endphp
@php $item_row = \App\Models\ListingLocation::where('listing_location_slug',$slug[1])->first(); @endphp
{{ $item_row->seo_title }}
@endif
@if($route == 'front_listing_brand_detail')
@php
$main_url = Request::url();
$slug = explode('listing/brand/',$main_url);
@endphp
@php $item_row = \App\Models\ListingBrand::where('listing_brand_slug',$slug[1])->first(); @endphp
{{ $item_row->seo_title }}
@endif
@if($route == 'customer_login')
@php $item_row = \App\Models\PageOtherItem::where('id',1)->first(); @endphp
{{ $item_row->login_page_seo_title }}
@endif
@if($route == 'customer_registration')
@php $item_row = \App\Models\PageOtherItem::where('id',1)->first(); @endphp
{{ $item_row->registration_page_seo_title }}
@endif
@if($route == 'customer_forget_password')
@php $item_row = \App\Models\PageOtherItem::where('id',1)->first(); @endphp
{{ $item_row->forget_password_page_seo_title }}
@endif
@if($route == 'front_terms_and_conditions')
@php $item_row = \App\Models\PageTermItem::where('id',1)->first(); @endphp
{{ $item_row->seo_title }}
@endif
@if($route == 'front_privacy_policy')
@php $item_row = \App\Models\PagePrivacyItem::where('id',1)->first(); @endphp
{{ $item_row->seo_title }}
@endif
@if($route == 'customer_dashboard'||$route == 'customer_package'||$route == 'customer_package_purchase_history'||$route == 'customer_listing_view'||$route == 'customer_listing_view_detail'||$route == 'customer_listing_add'||$route == 'customer_listing_edit'||$route == 'customer_my_reviews'||$route == 'customer_my_review_edit'||$route == 'customer_wishlist'||$route == 'customer_update_profile'||$route == 'customer_update_password'||$route == 'customer_update_photo'||$route == 'customer_update_banner'||$route == 'customer_package_purchase_invoice'||$route == 'customer_package_purchase_history_detail')
@php $item_row = \App\Models\PageOtherItem::where('id',1)->first(); @endphp
{{ $item_row->customer_panel_page_seo_title }}
@endif
@include('front.app_styles')
@include('front.app_scripts')
@if($g_setting->tawk_live_chat_status == 'Show')
@if($g_setting->cookie_consent_status == 'Show')
@endif
@if($g_setting->google_analytic_status == 'Show')
@endif
@if($g_setting->top_phone!='')
- {{ $g_setting->top_phone }}
@endif
@if($g_setting->top_email!='')
- {{ $g_setting->top_email }}
@endif
@if($g_setting->customer_listing_option == 'On')
@endif
@include('front.app_nav')
@yield('content')
@include('front.app_footer')
@include('front.app_scripts_footer')