@extends('layouts.buyer') @section('title', 'Konfirmasi Checkout - Toko Online') @section('content')
{{-- Breadcrumb --}}

Konfirmasi Pesanan

Periksa kembali pesanan Anda sebelum dikonfirmasi.

@csrf
{{-- Kiri: Ringkasan Produk + Form Info --}}
{{-- Daftar Produk --}}
Produk yang Dipesan ({{ $totalItems }} Item)
@foreach($cart as $id => $item) @endforeach
Produk Harga Qty Subtotal
@if(!empty($item['image'])) {{ $item['name'] }} @else
@endif
{{ $item['name'] }}
{{ $item['category'] ?? 'Umum' }}
Rp {{ number_format($item['price'], 0, ',', '.') }} {{ $item['quantity'] }} Rp {{ number_format($subtotalPerItem[$id], 0, ',', '.') }}
{{-- Form Informasi Pengiriman & Catatan --}}
Informasi Pengiriman
{{-- Info Pembeli (Read-only) --}}
{{-- Alamat Pengiriman --}}
@error('shipping_address')
{{ $message }}
@enderror
{{-- Catatan Tambahan --}}
@error('notes')
{{ $message }}
@enderror
{{-- Kanan: Ringkasan Pembayaran --}}
Ringkasan Pembayaran
Total Item {{ $totalItems }} pcs
Macam Produk {{ count($cart) }} item
Ongkos Kirim Gratis

Total Pembayaran Rp {{ number_format($total, 0, ',', '.') }}
{{-- Informasi Status Order --}}
Setelah checkout, status pesanan akan menjadi Pending menunggu pembayaran.
{{-- Tombol Aksi --}} Kembali ke Keranjang
@endsection @push('scripts') @endpush