{{-- Bootstrap 5 CDN --}} {{-- Bootstrap Icons --}} {{-- Google Fonts --}} {{-- ===== NAVBAR ===== --}} {{-- ===== MAIN CONTENT ===== --}}
{{-- Top Bar Navigation & Title --}}
Kembali ke Pesanan Saya

Detail Pesanan #{{ $order->order_number }}

Dibuat pada: {{ $order->created_at->format('d F Y, H:i') }} WIB

@php $statusClass = match(strtolower($order->status)) { 'pending' => 'status-pending', 'processing' => 'status-processing', 'completed', 'selesai' => 'status-completed', 'cancelled', 'batal' => 'status-cancelled', default => 'status-pending' }; $statusIcon = match(strtolower($order->status)) { 'pending' => 'bi-hourglass-split', 'processing' => 'bi-gear-wide-connected', 'completed', 'selesai' => 'bi-check-circle-fill', 'cancelled', 'batal' => 'bi-x-circle-fill', default => 'bi-info-circle-fill' }; @endphp Status: {{ ucfirst($order->status) }}
{{-- Kolom Kiri: Tabel Rincian Produk (Order Items) --}}
Rincian Item Produk {{ $order->orderItems->count() }} Produk
@foreach($order->orderItems as $item) @endforeach
Produk Harga Quantity Subtotal
@if($item->product && $item->product->image) {{ $item->product->name }} @else 🛍️ @endif
@if($item->product) {{ $item->product->name }} @else Produk #{{ $item->product_id }} (Tidak tersedia) @endif
@if($item->product && $item->product->category)
Kategori: {{ $item->product->category->name }}
@endif
Rp {{ number_format($item->price, 0, ',', '.') }} × {{ $item->quantity }} Rp {{ number_format($item->subtotal, 0, ',', '.') }}
{{-- Informasi Tambahan & Catatan --}}
Informasi Pengiriman & Catatan
Alamat Pengiriman
{{ $order->shipping_address ?? 'Alamat tidak dicantumkan' }}
Catatan Pembeli
{{ $order->notes ?? 'Tidak ada catatan khusus.' }}
{{-- Kolom Kanan: Ringkasan Pembayaran & Info Order --}}
Ringkasan Pesanan
Nomor Order
#{{ $order->order_number }}
Tanggal Transaksi
{{ $order->created_at->format('d F Y, H:i') }} WIB
Metode Pembayaran
💳 {{ $order->payment_method ?? 'Transfer Bank' }} {{ strtoupper($order->payment_status ?? 'unpaid') }}
Pembeli (Buyer)
{{ $order->user->name ?? $user->name }} ({{ $order->user->email ?? $user->email }})
{{-- Total Calculation Box --}}
Total Item {{ $order->orderItems->sum('quantity') }} pcs
Biaya Pengiriman GRATIS
Total Belanja Rp {{ number_format($order->total_price, 0, ',', '.') }}
{{-- Bootstrap Bundle JS --}}