@section('metaTitle', 'Shopping Cart - Punjabi Mandi') @section('body_id', 'cart-page-body') @section('body_class', 'lang-en country-ca currency-cad layout-full-width page-cart') @section('theme_css') @endsection @section('theme_bottom_js') @endsection @section('breadcrumb')
  1. Home
  2. Shopping Cart
@endsection @push('styles') @endpush @php $hasItems = !is_null($cart) && count($cart->items) > 0; $itemCount = $hasItems ? count($cart->items) : 0; $totalQty = $hasItems ? $cart->items->sum('quantity') : 0; $subtotal = $hasItems ? (float)$cart->total_amount : 0.00; $taxTotal = $hasItems ? (float)$cart->tax_total : 0.00; $tax = $hasItems ? (float)$cart->tax : 0.00; $discount = $hasItems ? (float)$cart->discount_amount : 0.00; $grandTotal = $hasItems ? (float)$cart->grand_total : 0.00; $freeShippingThreshold = 50.00; $isFreeShipping = $subtotal >= $freeShippingThreshold; $shippingDiff = max(0, $freeShippingThreshold - $subtotal); $shippingProgress = min(100, $freeShippingThreshold > 0 ? round(($subtotal / $freeShippingThreshold) * 100) : 0); $shippingFeeDisplay = $isFreeShipping ? 'FREE' : '$4.99'; @endphp {{-- ── Remove Confirmation Modal ──────────────────────────────────────── --}}

Shopping Cart {{ $itemCount }} {{ $itemCount == 1 ? 'Item' : 'Items' }}

@if($isFreeShipping) Congratulations! You have unlocked Checkout! @else Add ${{ number_format($shippingDiff, 2) }} more to unlock Checkout! @endif
Product Details
Unit Price
Quantity
Subtotal
Remove
@if($hasItems) @foreach($cart->items as $item) @php $today = date('Y-m-d'); $price = $item->product?->price ?? 0; if ($item->product?->special_price_from && $item->product?->special_price_to) { if ($item->product->special_price_from <= $today && $item->product->special_price_to >= $today) { $price = $item->product->special_price; } } $itemSubtotal = $price * $item->quantity; $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) : '#'; @endphp
{{ $item->product?->name ?? 'Unknown Product' }}
@if($item->product?->brand_name?->name && trim($item->product->brand_name->name) !== '-') {{ $item->product->brand_name->name }} @elseif($item->product?->brand && !is_numeric($item->product->brand) && trim($item->product->brand) !== '-') {{ $item->product->brand }} @else - @endif @if($item->product?->weight) Unit: {{ $item->product->weight }} {{ $item->product->weight_type }} @elseif($item->product?->unit) Unit: {{ $item->product->unit }} @endif
${{ number_format($price, 2) }}
${{ number_format($itemSubtotal, 2) }}
@endforeach @endif
Have a Promo Code or Coupon?
Promo Code {{ $cart?->coupon_code }} Applied

Order Summary

Sub Total ${{ number_format($subtotal, 2) }}
Taxable Product SubTotal ${{ number_format($taxTotal, 2) }}
Coupon Discount @if($cart && $cart->coupon_code) ({{ $cart->coupon_code }}) @endif @if($discount > 0) - ${{ number_format($discount, 2) }} @else $0.00 @endif
Tax {{ $cart?->items?->first()?->tax_percent ? $cart->items->first()->tax_percent.'%' : '' }} ${{ number_format($tax, 2) }}
Grand Total ${{ number_format($grandTotal, 2) }} CAD
You are saving ${{ number_format($discount, 2) }} on this order!
Proceed to Checkout
Minimum order amount is $50.00
Guaranteed Safe & Secure Checkout
Payment Methods
Fresh Harvest
Secure Pay
Fast Delivery
Empty Cart

Your Shopping Cart is Empty

Looks like you haven't added any fresh groceries or organic items to your cart yet. Explore our farm fresh store and discover great deals!

Start Shopping Now
@push('scripts') @endpush