@section('metaTitle', 'Checkout - Punjabi Mandi') @section('body_id', 'checkout-page-body') @section('body_class', 'lang-en country-ca currency-cad layout-full-width page-checkout') @section('theme_css') @endsection @section('theme_bottom_js') @endsection @section('breadcrumb')
  1. Home
  2. Shopping Cart
  3. Checkout
@endsection @push('styles') @endpush @php $isPickup = ($cart->type === 'pickup'); $formattedDeliveryDate = $cart->date ? \Carbon\Carbon::parse($cart->date)->format('jS M Y') : 'Tomorrow'; $formattedDeliveryTime = $cart->time ? strtoupper($cart->time) : '09:00 AM - 10:00 AM'; $subtotal = (float)$cart->total_amount; $deliveryCharge = (float)($cart->price ?? 0); $taxTotal = (float)($cart->tax_total ?? 0); $tax = (float)($cart->tax ?? 0); $discount = (float)($cart->discount_amount ?? 0); $grandTotal = (float)($cart->grand_total + $deliveryCharge); @endphp
@csrf
1 Personal Information
{{ $errors->first('first_name') }}
{{ $errors->first('last_name') }}
{{ $errors->first('email') }}
{{ $errors->first('phone') }}
2 Billing & Shipping Address
{{ $errors->first('address') }}
{{ $errors->first('city') }}
{{ $errors->first('state') }}
{{ $errors->first('pincode') }}
@if(!$isPickup) {{-- Selected: Standard Grocery Delivery --}} {{-- Inactive option: Pickup available via book-a-time --}}
In-Store Pickup
Pickup from {{ $store_location }}
FREE
@else {{-- Inactive option: Delivery available via book-a-time --}}
Standard Grocery Delivery
Select a delivery city and slot in book-a-time
CALCULATED
{{-- Selected: In-Store Pickup --}} @endif
4 Order Notes

Order Summary

@foreach ($cart->items as $item) @php $productImg = count($item->product?->images ?? []) ? asset($item->product->images[0]->image_url) : asset('frontend/assets/images/logo.png'); $productUrl = $item->product ? route('productByCategory', $item->product->url_key) : '#'; $itemUnit = $item->product?->weight ? ($item->product->weight . ' ' . $item->product->weight_type) : ($item->product?->unit ?? ''); @endphp
{{ $item->product?->name ?? 'Product' }} {{ $item->quantity }}
{{ $item->product?->name ?? $item->name }} @if($itemUnit)
{{ $itemUnit }}
@endif
${{ number_format($item->total_amount, 2) }}
@endforeach
Items Subtotal ${{ number_format($subtotal, 2) }}
@if($taxTotal > 0)
Taxable Product SubTotal ${{ number_format($taxTotal, 2) }}
@endif @if($discount > 0)
Coupon Discount @if($cart->coupon_code) ({{ $cart->coupon_code }}) @endif - ${{ number_format($discount, 2) }}
@endif
Estimated Tax ({{ $taxTotal > 0 ? '13%' : '0%' }}) ${{ number_format($tax, 2) }}
Delivery Fee {{ $deliveryCharge > 0 ? ('$' . number_format($deliveryCharge, 2)) : 'FREE' }}
Total Amount ${{ number_format($grandTotal, 2) }}
Guaranteed Safe & Secure Checkout
Payment Methods
Fresh Harvest
256-Bit SSL
Fast Delivery
@push('scripts') @endpush