@props(['items', 'subtotal', 'discount', 'total', 'coupon' => null, 'couponError' => null, 'removable' => false, 'shipping' => null, 'shippingNote' => 'At checkout', 'deliveryRates' => null]) {{-- The delivery charge depends on the area, so it shows once an area is known; the server works out the real total again. --}}

Order Summary

Items
{{ $items }}
Sub Total
৳ {{ number_format($subtotal, 2) }}
Shipping
{{ $shipping === null ? $shippingNote : '৳ '.number_format($shipping, 2) }}
Coupon Discount @if ($coupon && ! $couponError){{ $coupon->code }}@endif
-৳ {{ number_format($discount, 2) }}
@if ($couponError) @endif @if ($removable && ($coupon || $couponError))
@csrf @method('DELETE')
@endif
Total৳ {{ number_format($total + ($shipping ?? 0), 2) }}
{{ $slot }}