@php $cart = session()->get('cart', []); @endphp
Shopping Cart
Close
@php $total=0; @endphp @if(count($cart)) @foreach($cart as $key=>$i) @php $total +=$i['price']*$i['quantity']; @endphp

{{ $i['name']}}

{{ $i['quantity'] }} x {{ $i['price'] }}
@csrf @method('DELETE')
@endforeach @endif
Subtotal:
{{ $total }}
Checkout
@if(count($cart)==0)

No products in the cart.

Return To Shop
@endif