@vite(['resources/css/app.css', 'resources/js/app.js']) @if(optional($settings)->favicon) @endif @stack('meta') @stack('schema_markup') @stack('head_scripts') @if($settings && $settings->free_shipping_enabled)
Free shipping on all orders over ₹{{ number_format($settings->free_shipping_amount, 0) }}
@endif
Home Shop About Contact @if(Auth::check()) My Dashboard
@csrf
@else @endif
@yield('content')
Home Shop
@php $cartCount = 0; if (Auth::check()) { $cart = \App\Models\Cart::where('user_id', Auth::id())->first(); if ($cart) $cartCount = $cart->items->sum('quantity'); } else { $sessId = session('cart_session_id'); if ($sessId) { $cart = \App\Models\Cart::where('session_id', $sessId)->first(); if ($cart) $cartCount = $cart->items->sum('quantity'); } } @endphp @if($cartCount > 0) {{ $cartCount }} @endif
Cart
Account
@stack('scripts')