@if(request()->anyFilled(['search', 'tenant_id', 'status'])) Clear @endif
@forelse($orders as $order) @empty @endforelse
Order ID Tenant Date Status Items Total
{{ $order->amazon_order_id }} {{ $order->tenant?->name ?? '—' }} {{ $order->purchase_date?->format('M d, Y') }} @php $color = $order->statusColor(); $classes = [ 'green' => 'bg-green-50 text-green-700', 'yellow' => 'bg-yellow-50 text-yellow-700', 'blue' => 'bg-blue-50 text-blue-700', 'red' => 'bg-red-50 text-red-700', 'gray' => 'bg-gray-100 text-gray-600', ][$color] ?? 'bg-gray-100 text-gray-600'; @endphp {{ $order->order_status }} {{ $order->items->count() }} item(s) @if($order->order_total) {{ $order->currency_code }} {{ number_format($order->order_total, 2) }} @else @endif
No orders found.
@if($orders->hasPages())
{{ $orders->links() }}
@endif