@pushOnce('scripts')
@php
/**
* When the cart is empty there is nothing to fetch, so the mini-cart is
* seeded with an empty cart server-side. This avoids an `/api/checkout/cart`
* request (and a `Cart::collectTotals()` recalculation) on every page view
* for the common case of a guest with no cart.
*/
$hasCartItems = (bool) \Webkul\Checkout\Facades\Cart::getCart()?->items->isNotEmpty();
@endphp
@endpushOnce