@yield('title') @yield('meta_tags') @include('frontend.layouts.seo-content') @include('frontend.layouts.common-css') @yield('styles') {{-- ══ Global CK utilities (auth token, API helper, cart badge, toast) ══ --}} {{-- Loader --}}
loader
{{-- Page Content --}}
@hasSection ('header') @yield('header') @else @include('frontend.layouts.header') @endif
@yield('content')
@include('frontend.layouts.footer')
{{-- Sticky cart indicator: a small compact pill showing the most recently added product's image + a red item-count badge + "View Cart". Shown while the cart has items on every page, hidden when empty. Tap to open the cart. (This is a UX extra — it never drives the real cart; the navbar badge and cart page keep their own logic.) --}}
0 View Cart
{{-- Cart popup for the navbar cart icon (#hdrCartBtn, wired up in header.blade.php). It must live out here, NOT inside the header: .header-wrapper carries will-change:transform and takes transform:translateY(-100%) when it hides on scroll, so it becomes the containing block for position:fixed descendants and the popup could only be placed inside the header's own 138px-tall box. --}}
check My Cart
@include('frontend.layouts.common-js') {{-- AOS animation --}} {{-- SmoothScroll --}} @yield('scripts') @if(!empty($commonSetting['firebase_api_key']) && !empty($commonSetting['firebase_vapid_key'])) {{-- Firebase Web Push — customer-facing (API / Sanctum mode) --}} @endif