Shopping Cart

@if(session('success')) @endif @if(session('cart') && count(session('cart')) > 0)
@php $total = 0 @endphp @foreach(session('cart') as $id => $details) @php $total += $details['price'] * $details['quantity'] @endphp @endforeach
Product Price Quantity Subtotal Actions
{{ $details['name'] }}
{{ $details['name'] }}
${{ number_format($details['price'], 2) }}
${{ number_format($details['price'] * $details['quantity'], 2) }}
Total: ${{ number_format($total, 2) }}
@else

Your cart is empty

Looks like you haven't added anything to your cart yet.

Start Shopping
@endif
@push('scripts') @endpush