{{-- Header --}}

Shopping Cart

Review your items and proceed to checkout

{{-- Cart Items --}}

Cart Items ({{ count($cartItems) }})

@forelse ($cartProducts as $product) @php $quantity = $cartItems[$product->id]['quantity'] ?? 1; $size = $cartItems[$product->id]['size'] ?? 'M'; @endphp
{{ $product->name }}
{{ $product->name }}
Size: {{ $size }}
@csrf @method('DELETE')
@csrf @method('PATCH') {{ $quantity }}

${{ number_format($product->price * $quantity, 2) }}

${{ number_format($product->price, 2) }} each
@empty

Your cart is empty.

@endforelse ← Continue Shopping
{{-- Order Summary --}}

Order Summary

@php $subtotal = $cartProducts->sum( fn($p) => $p->price * ($cartItems[$p->id]['quantity'] ?? 1), ); $tax = $subtotal * 0.08; $total = $subtotal + $tax; @endphp
  • Subtotal ${{ number_format($subtotal, 2) }}
  • Shipping FREE
  • 🎉 You got free shipping!
  • Tax (0%) ${{ number_format($tax, 2) }}
  • Total ${{ number_format($total, 2) }}
@csrf
{{--
--}}

Secure Check Out @LifeFootballClub