{{-- Bootstrap 5 CDN --}} {{-- Bootstrap Icons --}} {{-- Google Fonts --}} {{-- ===== NAVBAR ===== --}} {{-- ===== MAIN CONTENT ===== --}}
{{-- Page Header Card --}}
Area Khusus Buyer

Pesanan Saya

Lacak dan pantau semua riwayat pesanan serta detail transaksi pembelian Anda.

{{-- Notifikasi Sukses / Info --}} @if(session('success')) @endif {{-- Daftar Pesanan --}} @if($orders->count() > 0)
@foreach($orders as $order)
{{ $order->order_number }} {{ $order->created_at->format('d M Y, H:i') }} WIB @if($order->payment_method) {{ $order->payment_method }} @endif
@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 {{ ucfirst($order->status) }}
Daftar Produk ({{ $order->orderItems->count() }} item)
@foreach($order->orderItems as $item)
@if($item->product && $item->product->image) {{ $item->product->name }} @else 📦 @endif
{{ $item->product->name ?? 'Produk #' . $item->product_id }}
Rp {{ number_format($item->price, 0, ',', '.') }} × {{ $item->quantity }}
Rp {{ number_format($item->subtotal, 0, ',', '.') }}
@endforeach
@endforeach {{-- Pagination --}} @if($orders->hasPages())
{{ $orders->links('pagination::bootstrap-5') }}
@endif
@else

Belum Ada Pesanan

Anda belum pernah membuat pesanan belanja. Jelajahi katalog toko kami dan temukan berbagai produk menarik sekarang!

Mulai Belanja Sekarang
@endif
{{-- Bootstrap Bundle JS --}}