@extends('layouts.user') @section('title', 'My Orders') @section('content')

My Orders

Manage and track all your orders

{{ $userCurrency['code'] }} ({{ $userCurrency['symbol'] }})
@forelse($orders as $order) @php $firstItem = $order->items->first(); @endphp @empty @endforelse
Order # Date Game Products Qty Total Status Action
{{ $order->order_number }} {{ $order->created_at->format('d M Y, H:i') }} @if($firstItem && $firstItem->product && $firstItem->product->game)
@if($firstItem->product->game->icon) {{ $firstItem->product->game->name }} @endif {{ $firstItem->product->game->name }}
@else - @endif
@foreach($order->items->take(2) as $item)
@if($item->product && $item->product->image) {{ $item->product->name }} @else
@endif
{{ $item->product->name ?? 'Deleted Product' }} ×{{ $item->quantity }}
@endforeach @if($order->items->count() > 2) +{{ $order->items->count() - 2 }} more items @endif
{{ $order->items->sum('quantity') }}
{{ $order->total_formatted ?? currency($order->total) }} @if($order->total_idr) {{ $order->total_idr }} @endif
{{ ucfirst($order->status) }} View

No orders yet

Start shopping to see your orders here

Browse Products
{{ $orders->links() }}

Harga ditampilkan dalam {{ $userCurrency['code'] }} ({{ $userCurrency['symbol'] }}) berdasarkan lokasi Anda. Nilai dalam IDR adalah jumlah yang sebenarnya dibayarkan.

@endsection