@yield('title') @stack('style_section') @php use App\Constants\Status; @endphp @if ($google_analytic->status == 1) @endif @if ($facebook_pixel->status == 1) @endif @php if (auth()->check()) { $userId = auth()->id(); $totalCart = Modules\Ecommerce\Entities\Cart::where("user_id", $userId)->count(); } else { $sessionId = session()->get("session_id"); $totalCart = Modules\Ecommerce\Entities\Cart::where("session_id", $sessionId)->count(); } @endphp @if ($setting->preloader_status == 'enable')
@endif @if (Route::is('home')) @if (Session::get('selected_theme') == 'theme_three')
@else
@php $topbar_ads = App\Models\AdsBanner::where('position_key', 'top_bar')->first(); @endphp @include('partials.ads_banner', ['banner' => $topbar_ads, 'wrapperClass' => 'header-ads', 'imageSize' => '533x54'])
@php $header_category_dropdown = header_category_dropdown_items(); @endphp
@endif @else
@php $topbar_ads = App\Models\AdsBanner::where('position_key', 'top_bar')->first(); @endphp @include('partials.ads_banner', ['banner' => $topbar_ads, 'wrapperClass' => 'header-ads', 'imageSize' => '533x54'])
@php $header_category_dropdown = header_category_dropdown_items(); @endphp
@endif
@yield('body-content') @if ($tawk_chat->status == 1) @endif @if ($cookie_consent->status == 1) @include('partials.cookie_consent_bar') @endif
@if(contact_reveal_protection_enabled()) @php $contactRevealPage = app(\App\Services\ContactReveal\ContactRevealLocalAnalyzer::class)->issuePageToken(); app(\App\Services\ContactReveal\ContactRevealGuard::class)->rememberPageSession($contactRevealPage); @endphp @include('partials.contact_reveal_modal') @if(captcha_enabled()) @include('partials.captcha-scripts') @endif @endif @if ($errors->any()) @foreach ($errors->all() as $error) @endforeach @endif @stack('js_section')