@extends('layouts.app') @section('title', 'Your Shopping Cart') @section('content')
{{-- Header Section --}}

Shopping Cart

You have {{ $cart->items->count() }} items in your cart

Continue Shopping
@if ($cart && $cart->items->count() > 0)
{{-- Left Side: Cart Items List --}}
@php $total = 0; @endphp @foreach ($cart->items as $item) @php $subtotal = $item->price * $item->qty; $total += $subtotal; @endphp {{-- Item Row --}}
{{-- Product Image --}}
{{ $item->product->name }}
{{-- Product Name & Price --}}
{{ $item->product->name }}
₹{{ number_format($item->price, 2) }}
Subtotal: ₹{{ number_format($subtotal, 2) }}
{{-- Quantity Controls (AJAX Ready) --}}
{{-- Subtotal & Remove --}}
₹{{ number_format($subtotal, 2) }}
@endforeach
{{-- Right Side: Order Summary (Sticky) --}}
Order Summary
Selected Items Subtotal ₹{{ number_format($total, 2) }}
Estimated Shipping FREE

Total Payable ₹{{ number_format($total, 2) }}
Proceed to Checkout

We accept secure payments via

@else {{-- Empty Cart State --}}

Your cart is currently empty

Before you proceed to checkout, you must add some products to your shopping cart. You will find a lot of interesting products on our "Shop" page.

Start Shopping
@endif
@endsection