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) --}}
{{-- Informasi Tambahan & Catatan --}}
{{-- Kolom Kanan: Ringkasan Pembayaran & Info Order --}}
{{-- Total Calculation Box --}}
Rincian Item Produk
{{ $order->orderItems->count() }} Produk
| Produk | Harga | Quantity | Subtotal |
|---|---|---|---|
|
@if($item->product && $item->product->image)
@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 Pengiriman & Catatan
Alamat Pengiriman
{{ $order->shipping_address ?? 'Alamat tidak dicantumkan' }}
Catatan Pembeli
{{ $order->notes ?? 'Tidak ada catatan khusus.' }}
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 Item
{{ $order->orderItems->sum('quantity') }} pcs
Biaya Pengiriman
GRATIS
Total Belanja
Rp {{ number_format($order->total_price, 0, ',', '.') }}