Shopping Cart

@if($cart && !$cart->isEmpty())
{{-- LEFT: Items --}}
@foreach($cart->items as $item)

{{ $item->product?->name ?? $item->product?->title ?? 'Product No Longer Available' }}

{{ $item->product?->category?->name ?? 'General Collection' }}

${{ number_format($item->price_snapshot, 2) }}
@csrf @method('DELETE')
@endforeach
{{-- RIGHT: Summary --}}

Summary

Subtotal ${{ number_format($totals['subtotal'], 2) }}
Processing Tax ${{ number_format($totals['tax'], 2) }}
Order Total
${{ number_format($totals['total'], 2) }}
Proceed to Checkout
Secure Checkout
@else

Your cart is empty

Start exploring our collection and find your next favorite book today.

Browse Bookstore
@endif
{{-- Render segments --}} @if(isset($sections)) @foreach($sections as $section) @include('pages.storefront.sections.' . $section->type, ['section' => $section]) @endforeach @endif