Kelola Pesanan

Total: {{ $orders->total() ?? 0 }} pesanan

@if(session('success'))
{{ session('success') }}
@endif
Pending
{{ $stats['pending'] ?? 0 }}
Processing
{{ $stats['processing'] ?? 0 }}
Completed
{{ $stats['completed'] ?? 0 }}
Failed
{{ $stats['failed'] ?? 0 }}
@forelse($orders ?? [] as $order) @empty @endforelse
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
@if(isset($orders) && $orders->hasPages())
{{ $orders->links() }}
@endif