{{ __('Pesanan Saya') }}

Halo, {{ Auth::user()->name }}! 👋

Selamat datang di ruang personal Anda. Di sini Anda dapat memantau seluruh histori pesanan dan mengakses produk digital premium yang telah Anda dapatkan.

Produk Anda

@if($orders->count() > 0)
@foreach($orders as $order) @endforeach
Order ID Produk Digital Total Harga Status Aksi
#{{ $order->order_code }}
{{ $order->created_at->format('d M Y, H:i') }}
@if($order->orderItems->count() > 0) @php $firstItem = $order->orderItems->first(); @endphp @if(isset($firstItem->product) && $firstItem->product->thumbnail) @else
@endif @else @if($order->product && $order->product->thumbnail) @else
@endif @endif
@if($order->orderItems->count() > 1) {{ Str::limit($order->orderItems->first()->product->name ?? 'Produk Terhapus', 30) }} (+{{ $order->orderItems->count() - 1 }} lainnya) @elseif($order->orderItems->count() == 1) {{ Str::limit($order->orderItems->first()->product->name ?? 'Produk Terhapus', 30) }} @else {{ Str::limit($order->product->name ?? 'Produk Dihapus', 30) }} @endif
@if(!$order->product && $order->orderItems->isEmpty()) Item tidak tersedia @endif
Rp {{ number_format($order->amount, 0, ',', '.') }} @if($order->status === 'paid') Sukses @elseif($order->status === 'pending') Menunggu @else Dibatalkan @endif Lihat Detail
@if($orders->hasPages())
{{ $orders->links() }}
@endif @else

Belum ada pesanan nih

Sepertinya Anda belum pernah melakukan pembelian produk digital apa pun. Yuk, temukan produk menarik untuk Anda!

Eksplorasi Produk Sekarang
@endif