@stack('page_style')
@php
$adheader = '';
if ((request()->route()->getName() == 'advertisment.view.langauge.country') || (request()->route()->getName() == 'ad.preview')){
$adheader = \App\Models\Advertisment::where('id',request()->route('id'))->first() ;
}
$langaugeCode = !empty($adheader->language_code) ? $adheader->language_code : 'en';
@endphp
@if (!(request()->is('login') || request()->is('social/google/login') || request()->is('social/google/login') || request()->is('forget-password') || request()->is('sign-up') || (\Route::currentRouteName() == 'user.resetPassword.get') || (\Route::currentRouteName() == 'admin-login') || request()->is('send-verify-email') || \Route::currentRouteName()=='user.sendVerifyEmail'))
@include('layouts.partials.authHeader')
@else
@endif
{{-- @include('include.flashMessage') --}}
@if ((request()->route()->getName() == 'advertisment.view.langauge.country') || (request()->route()->getName() == 'advertisment.postForm') || (request()->route()->getName() == 'category.list')|| (request()->route()->getName() == 'user.updateProfile') || (request()->route()->getName() == 'ad.preview'))
@endif
@yield('content')
@if (!request()->is('terms-and-condition') && !request()->is('aboutus*') && !request()->is('privacy-policy') && !request()->is('how-it-works-app*'))
@if (!(request()->is('login') || request()->is('forget-password') || request()->is('sign-up') || (\Route::currentRouteName() == 'user.resetPassword.get') || (\Route::currentRouteName() == 'admin-login')))
@include('layouts.partials.authFooter')
@endif
@endif
@php
$errorMessage = __('words.Please check the form below for errors');
@endphp
@if (request()->route()->getName() != 'chat.index')
@endif
@stack('page_script')
@livewireScripts