@extends('layouts.app') @section('title', 'Your Cart') @section('content')

Your Cart

@if(!$cart || $cart->items->isEmpty())

Your cart is empty. Browse products

@else
@foreach($cart->items as $item)
@if($item->product->images->first()) @if($item->product->images->first()->is_video) @else {{ $item->product->name }} @endif @else 🧨 @endif

{{ $item->product->name }}

₹{{ number_format($item->price, 2) }} each

@csrf @method('PATCH')

₹{{ number_format($item->total, 2) }}

@csrf @method('DELETE')
@endforeach

Order Summary

Subtotal₹{{ number_format($cart->subtotal, 2) }}
@if($appliedCoupon)
Coupon ({{ $appliedCoupon->code }})
@csrf @method('DELETE')
@else
@csrf
@endif Proceed to Checkout
@endif @endsection