@extends('layouts.app') @section('title', 'Shopping Cart - Memorycloset Media') @section('content')

Shopping Cart

@if(session('error'))
{{ session('error') }}
@endif @if(empty($cartItems))

Your cart is empty

Start adding some delicious treats to your cart!

Browse Products
@else
@foreach($cartItems as $item)

{{ $item['product']->name }}

@if($item['product']->category)

{{ $item['product']->category->name }}

@endif
R{{ number_format($item['subtotal'], 2) }}
@endforeach

Order Summary

Subtotal R{{ number_format($subtotal, 2) }}
Total R{{ number_format($total, 2) }}
Proceed to Checkout

No payment required. We'll contact you to confirm your order.

@endif
@push('scripts') @endpush @endsection