Nomor Pesanan:
{{ $order->order_number }}
@if ($order->status === 'pending')
@elseif ($order->status === 'processing')
@elseif ($order->status === 'shipped')
@elseif ($order->status === 'completed')
@elseif ($order->status === 'cancelled')
@endif
{{ $order->status_label }}
Tanggal Transaksi:
{{ $order->created_at->format('d M Y, H:i') }} WIB
Metode Pembayaran:
{{ $order->payment_method ?? 'Transfer Bank Manual' }}
ID Transaksi / Relasi:
Order #{{ $order->id }} (User #{{ $order->user_id }})
Catatan Pesanan:
@endif
{{ $order->notes }}
Status Pelacakan Pesanan
@php
$fillWidth = match(strtolower($order->status)) {
'pending' => '25%',
'processing' => '50%',
'shipped' => '75%',
'completed' => '100%',
'cancelled' => '0%',
default => '25%',
};
@endphp
Dibuat
{{ $order->created_at->format('d M H:i') }}
@if (in_array(strtolower($order->status), ['processing', 'shipped', 'completed']))
@else
2
@endif
Pembayaran
{{ $order->status === 'pending' ? 'Menunggu' : 'Terverifikasi' }}
@if (in_array(strtolower($order->status), ['shipped', 'completed']))
@else
3
@endif
Diproses
Pengemasan
@if ($order->status === 'completed')
@else
4
@endif
Selesai
Diterima Buyer
Daftar Item Pesanan ({{ $order->orderItems->count() }} Produk)
{{ $order->orderItems->sum('quantity') }} Total Unit| Produk | Harga Satuan | Quantity | Subtotal |
|---|---|---|---|
|
@if ($item->product && $item->product->image_url)
@if ($item->product)
{{ $item->product_name }}
@else
{{ $item->product_name }}
@endif
@if ($item->product && $item->product->sku)
SKU: {{ $item->product->sku }}
@endif
@if ($item->product && $item->product->category)
{{ $item->product->category->name }}
@endif
|
{{ $item->formatted_price }} | {{ $item->quantity }} | {{ $item->formatted_subtotal }} |
Ringkasan Pembayaran
Subtotal Produk
{{ $order->formatted_subtotal }}
Biaya Pengiriman
{{ $order->formatted_shipping_fee }}
Total Tagihan:
{{ $order->formatted_total }}
Status Pembayaran:
{{ $order->status_label }}
via {{ $order->payment_method ?? 'Transfer Bank' }}
Instruksi Pembayaran Shazkabags:
Transfer tepat sebesar {{ $order->formatted_total }} ke rekening resmi:
- BCA: 123-456-7890 (a.n. Shazkabags)
- Mandiri: 987-654-3210 (a.n. Shazkabags)
Informasi Pemesan
{{ $order->user->name ?? $userName }}
{{ $order->user->email ?? $userEmail }}
User ID:
#{{ $order->user_id }}
Status Akun:
Pembeli Terverifikasi