{{ __('checkout.cart.empty') }}
@else-
@each('checkout::partials.cart-line', $lines, 'line')
@if ($cart?->coupon_code)
{{ $cart->coupon_code }}
@else
@if ($couponError ?? false)
{{ __('checkout.cart.coupon_invalid') }}
@endif @endif
{{ __('checkout.cart.subtotal') }}
{{ $cart?->subTotal?->formatted() }}
@if ($cart?->discountTotal?->value > 0)
{{ __('checkout.cart.discount') }}
−{{ $cart->discountTotal->formatted() }}
@endif
{{-- Shipping + tax appear once the shopper has a shipping address
(i.e. they're on the checkout page). In the drawer, where no
address is set yet, only subtotal + total show. --}}
@if ($cart?->shippingAddress)
{{ __('checkout.cart.shipping') }}
@if ($cart->shippingAddress->shipping_option)
{{ $cart->shippingTotal?->formatted() }}
@else
{{ __('checkout.cart.shipping_pending') }}
@endif
@endif
@if ($cart?->taxTotal?->value > 0)
{{ __('checkout.cart.tax') }}
{{ $cart->taxTotal->formatted() }}
@endif
{{-- Always shown — equals subtotal with nothing else applied,
diverges as discount / shipping / tax come in. --}}
{{ __('checkout.cart.total') }}
{{ $cart?->total?->formatted() }}
{{ __('checkout.cart.checkout') }}