Resumen de Compra
Productos ({{ count($cart) }})
@php
$subtotal = collect($cart)->sum(fn($i) => $i['price'] * $item['quantity']);
// Let's compute actual total correctly
$total = 0;
foreach($cart as $item) {
$total += $item['price'] * $item['quantity'];
}
@endphp
${{ number_format($total, 2) }}
Envío
Gratis
Total
${{ number_format($total, 2) }}