@extends('layouts.app') @section('title', 'Keranjang') @section('content') @if($items->isEmpty())

Keranjang kosong

Tambahkan mainan dari halaman belanja.

Belanja Sekarang
@else
@foreach($items as $item) @endforeach
Produk Harga Jumlah Subtotal
@if($item->product->image_type) @else
🧸
@endif
{{ $item->product->name }}
Rp {{ number_format($item->product->price, 0, ',', '.') }}
@csrf @method('PUT')
Rp {{ number_format($item->quantity * $item->product->price, 0, ',', '.') }}
@csrf @method('DELETE')

Ringkasan

Subtotal ({{ $items->count() }} item)Rp {{ number_format($total, 0, ',', '.') }}

TotalRp {{ number_format($total, 0, ',', '.') }}
Checkout
@endif @endsection