{{-- The side cart. Its forms send drawer=1, so the page they return to opens it again. Add to cart re-renders it. --}} @if ($cart['lines']->isEmpty())

Your {{ $brand }} cart is currently empty — 0 items

@else @php($drawerError = old('drawer') ? $errors->first() : null)
@csrf

$drawerError || $cart['couponError']]) @if ($drawerError) role="alert" @endif> @if ($drawerError) {{ $drawerError }} @elseif ($cart['couponError']) {{ $cart['couponError'] }} @elseif ($cart['coupon']) {{ $cart['coupon']->type === 'percent' ? (float) $cart['coupon']->value.'%' : '৳ '.number_format((float) $cart['coupon']->value, 2) }} off discount @endif

Subtotal
৳ {{ number_format($cart['subtotal'], 2) }}
Discount
@if ($cart['discount'] > 0 && $cart['coupon']->type === 'percent')({{ (float) $cart['coupon']->value }}%) @endif- ৳ {{ number_format($cart['discount'], 2) }}
Total৳ {{ number_format($cart['total'], 2) }}
Proceed to checkout @endif