Kelola Pesanan
Total: {{ $orders->total() ?? 0 }} pesanan
{{ session('success') }}
@endif
Pending
{{ $stats['pending'] ?? 0 }}
Processing
{{ $stats['processing'] ?? 0 }}
Completed
{{ $stats['completed'] ?? 0 }}
Failed
{{ $stats['failed'] ?? 0 }}
| ID Pesanan | Customer | Produk | Total | Status | Tanggal | Aksi |
|---|---|---|---|---|---|---|
| {{ $order->order_id }} |
{{ $order->user->name ?? $order->customer_name ?? '-' }}
{{ $order->email }}
|
{{ $order->product->name ?? 'N/A' }}
{{ $order->product->brand->name ?? '' }}
|
Rp {{ number_format($order->total_amount, 0, ',', '.') }} | {{ ucfirst($order->status) }} | {{ $order->created_at->format('d M Y, H:i') }} | Detail |
| Belum ada pesanan | ||||||
{{ $orders->links() }}
@endif