{{-- Order summary card. Expects $totals; $cta shows the checkout button; $checkout adds coupon and delivery lines. --}} @php($checkout = $checkout ?? false)
! $checkout]) @unless ($checkout) style="top: 1.5rem" @endunless>

Order summary

Price ({{ $totals['items'] }} {{ Str::plural('item', $totals['items']) }})
{{ inr($totals['mrp']) }}
@if ($totals['savings'] > 0)
Discount on MRP
− {{ inr($totals['savings']) }}
@endif @if ($checkout) @if ($totals['discount'] > 0)
Coupon {{ $totals['coupon']->code }}
− {{ inr($totals['discount']) }}
@endif @if ($fr = $totals['freight'] ?? null)
Delivery @if ($fr['serviceable']){{ $fr['zone']->name }} · {{ $fr['pincode'] }} · {{ \App\Modules\Shipping\Support\Freight::formatWeight($fr['weight_kg']) }}@endif
@if ($fr['serviceable']){{ $fr['fare'] > 0 ? inr($fr['fare']) : 'Free' }}@elseif ($fr['pincode'])Not available for {{ $fr['pincode'] }}@elseAdd your site pincode@endif
@else
Delivery
{!! $totals['delivery'] > 0 ? e(inr($totals['delivery'])) : 'Free' !!}
@endif @if ($totals['packing'] > 0)
Packing
{{ inr($totals['packing']) }}
@endif {{-- Per-delivery charges only when each delivery is charged on its own (not with one EBC zone fare). --}} @if ($totals['parcels']->count() > 1 && ! ($totals['freight'] ?? null) && $totals['parcels']->contains(fn ($p) => ($p['shipping'] + $p['packing']) > 0))
@foreach ($totals['parcels'] as $p) Delivery {{ $loop->iteration }}{{ ($p['shipping'] + $p['packing']) > 0 ? inr($p['shipping'] + $p['packing']) : 'Free' }} @endforeach
@endif
Total to pay
{{ inr($totals['grand']) }}
@else
Delivery
Calculated at checkout
Total
{{ inr($totals['subtotal']) }}
@endif
@if ($checkout && $totals['free_gap'] > 0)

Add {{ inr($totals['free_gap']) }} more for free delivery

@endif @php($saved = $totals['savings'] + ($checkout ? $totals['discount'] : 0)) @if ($saved > 0)

You save {{ inr($saved) }} on this order

@endif @if ($cta ?? false) Proceed to checkout @guest

You'll be asked to sign in or create an account.

@endguest @endif