@php
// Dummy data for cart preview
$cart = new \stdClass();
$cart->isEmpty = fn() => false;
$cart->items = collect([
(object)[
'product_id' => 1,
'price_snapshot' => 49.00,
'product' => (object)[
'name' => 'Premium SaaS Kit',
'title' => 'Premium SaaS Kit',
'version' => '2.4',
'thumbnail' => '',
'images' => collect([])
]
]
]);
$totals = ['subtotal' => 49.00, 'tax' => 2.45, 'total' => 51.45];
$itemCount = 1;
@endphp
@include('pages.cart.index', ['cart' => $cart, 'totals' => $totals, 'itemCount' => $itemCount, 'sections' =>
$sections])