{{-- The cart button, with the number of lines in the cart and, on hover or keyboard focus, what they are. Drawn in the client area's top bar ($variant 'client') and the public site's ($variant 'site'). The count comes with the page (CartCountComposer); the lines are fetched from cart/summary the first time the panel opens, so the button costs a page nothing more than one cart lookup. On a touch screen the button is a plain link to the cart page. --}} @php $variant = $variant ?? 'client'; $cartCount = (int) ($cartCount ?? 0); $miniCartI18n = [ 'title' => __('client.cart.mini_title'), 'loading' => __('common.loading'), 'empty' => __('client.cart.empty'), 'error' => __('client.cart.mini_error'), 'remove' => __('common.actions.remove'), 'subtotal' => __('client.cart.subtotal'), 'discount' => __('client.cart.discount'), 'tax' => __('client.cart.tax'), 'total' => __('client.cart.total'), ]; @endphp
@if($variant === 'site') @else @endif
{{ __('client.cart.mini_title') }}
@once @endonce