@forelse($orders as $order)
@if(!empty($order['items']))
@foreach($order['items'] as $item)
{{ $item['name'] }} @if($item['qty'] > 1) ×{{ $item['qty'] }} @endif
@endforeach
@else
@endif
#{{ $order['order_number'] }} {{ $order['status'] }} {{ $order['date'] ?? $order['date_human'] ?? '' }}
@if(!empty($order['items']))
{{ collect($order['items'])->pluck('name')->take(2)->implode(' · ') }} @if($order['item_count'] > 2) · +{{ $order['item_count'] - 2 }} more @endif
@endif
{{ $order['total'] }} @if(!empty($order['payment'])) · {{ ucfirst($order['payment']) }} @endif
View
@empty
No orders
@endforelse