KERANJANG BELANJA

@if (session()->has('session_id')) @if (count($dataCart) > 0)
{{-- --}} @foreach ($cartItems as $index => $item) {{-- --}} @php $total += $item['qty'] * $item['price']; @endphp @endforeach
No Nama Produk Jumlah Harga Total Aksi
{{ $item['product']['nama'] }}
Rp {{ number_format($item['price'] * $item['qty'], 0, ',', '.') }}
{{ $index + 1 }} {{ $item['product']['nama'] }}
{{ number_format($item['price'], 0, ',', '.') }} {{ number_format($item['qty'] * $item['price'], 0, ',', '.') }}
Total
{{ number_format($total, 0, ',', '.') }}
@endif @endif