@if (session('cart'))
@php $total = 0 @endphp @if (session('cart')) @foreach (session('cart') as $id => $details) @php $total += $details['price'] * $details['quantity'] @endphp @endforeach @endif
  Product Price Quantity Total Remove
{{ $details['image'] }} {{ ucwords($details['name']) }} ${{ number_format($details['price']) }}
${{ number_format($details['price'] * $details['quantity']) }}
Cart Totals
{{-- --}}
Cart Subtotal ${{ number_format($total) }}
Shipping Free Shipping
Total ${{ number_format($total) }}
@auth Proceed To CheckOut @endauth @guest Login @endguest
@else

No product in cart

Back to Home
@endif