{{-- TOP BAR --}}
{{ $cart?->store?->name ?? trans_key('storefront.fallbacks.checkout') }}
@if($items->isEmpty())

Your cart is empty

Add items before checkout.

Start shopping
@else
@csrf @if($cart?->store?->id) @endif @foreach($items as $payloadIndex => $payloadItem) @endforeach {{-- STORE CARD --}}

{{ $cart?->store?->name ?? trans_key('storefront.fallbacks.store') }}

{{ $itemQuantity }} item{{ $itemQuantity === 1 ? '' : 's' }} • {{ $deliveryEstimateLabel }}

{{ $isGrocery ? 'InstaKart checkout' : 'Food delivery checkout' }}
{{-- SAVINGS --}}
{{ ($couponDiscount + $comboDiscount + $discount) > 0 ? 'You saved '.\App\Support\StorefrontPresenter::money($couponDiscount + $comboDiscount + $discount).' on this order' : 'Apply coupons and save more on this order' }}
{{-- ORDER TYPE --}}

Choose order type

@if($isTakeawayAvailable) @endif
{{-- REVIEW ITEMS --}}

Review items

Edit
@foreach($items as $item) @php $product = $item->product; $image = $product ? \App\Support\StorefrontPresenter::productImage($product) : null; $lineTotal = (float) ($item->line_total ?? 0); @endphp
@if($image) {{ $product?->name }} @else {{ \Illuminate\Support\Str::upper(\Illuminate\Support\Str::substr($product?->name ?? 'I', 0, 1)) }} @endif {{ $product?->name ?? trans_key('storefront.fallbacks.productUnavailable') }} {{ (int) $item->quantity }} × {{ \App\Support\StorefrontPresenter::money((float) ($item->unit_price ?? 0)) }} {{ \App\Support\StorefrontPresenter::money($lineTotal) }}
@endforeach
{{-- DELIVERY ADDRESS --}}
Delivery Address {{ $deliveryLocation }}
@if($savedAddresses->isNotEmpty())
@foreach($savedAddresses as $address) @php $addressLabel = trim(collect([ data_get($address, 'type') ?: data_get($address, 'label'), data_get($address, 'address_line_1') ?: data_get($address, 'address'), data_get($address, 'landmark'), ])->filter()->join(' • ')); $addressLabel = $formatCheckoutAddress($address); $addressTitle = data_get($address, 'type') ?: data_get($address, 'label') ?: 'Saved address'; @endphp @endforeach
@endif
{{-- SCHEDULE & CONTACT --}}
{{ $deliveryEstimateLabel }} Want this later? Schedule it
Minimum 30 minutes from now. Store will prepare your order at the selected time.
{{-- COUPONS --}}

Coupons

@if(($availableCoupons ?? collect())->count())
@foreach($availableCoupons as $coupon) @endforeach
@endif
{{-- PAYMENT OPTIONS --}}

Payment Options

@foreach($paymentMethods as $method) @endforeach
{{-- BILL DETAILS --}}

Bill Details

Item total
{{ \App\Support\StorefrontPresenter::money($subtotal) }}
@if($comboDiscount > 0)
Bundle savings
-{{ \App\Support\StorefrontPresenter::money($comboDiscount) }}
@endif @if($discount > 0 && $comboDiscount <= 0 && $couponDiscount <= 0)
Discount
-{{ \App\Support\StorefrontPresenter::money($discount) }}
@endif
Delivery fee
{{ $deliveryFee > 0 ? \App\Support\StorefrontPresenter::money($deliveryFee) : 'FREE' }}
Platform fee
{{ $platformFee > 0 ? \App\Support\StorefrontPresenter::money($platformFee) : 'FREE' }}
To pay
{{ \App\Support\StorefrontPresenter::money($payableAmount) }}
{{-- POLICY --}}
Cancellation policy

Help us avoid food and inventory waste. Orders may be non-refundable once the store accepts them.

{{-- BOTTOM BAR --}}
@endif