Shopping Cart
@php $cart = session('cart', []); $subtotal = 0; @endphp @if(count($cart) > 0)
@foreach($cart as $id => $item) @php $subtotal += $item['price'] * $item['quantity']; @endphp
{{ $item['name'] }}

{{ $item['name'] }}

@if(isset($item['color']) || isset($item['size']))

@if(isset($item['color'])){{ $item['color'] }}@endif @if(isset($item['color']) && isset($item['size'])) / @endif @if(isset($item['size'])){{ $item['size'] }}@endif

@endif
@csrf @method('PATCH')
{{ $item['quantity'] }}
@csrf @method('PATCH')
৳{{ number_format($item['price'] * $item['quantity'], 0) }}
@csrf @method('DELETE')
@endforeach
@else

Your cart is empty

Start Shopping
@endif
@if(count($cart) > 0)
Subtotal: ৳{{ number_format($subtotal, 0) }}
@endif