Orders

@if(request()->anyFilled(['search', 'status', 'payment_status', 'order_type'])) Clear @endif
Add order
@forelse($orders as $order) @empty @endforelse
INVOICE NO ORDER TYPE TOTAL PRODUCTS CUSTOMER RECEIVER STATUS DATE ACTIONS
@if($order->invoice) #{{ $order->invoice->number }} @else No Invoice @endif {{ mb_strtoupper($order->order_type->value ?? 'N/A') }} {{ currency_format($order->total) }} @if ($order->items->isNotEmpty()) @php $firstItem = $order->items->first(); @endphp {{ $firstItem->product->name }} @if($order->items->count() > 1) +{{ $order->items->count() - 1 }} more @endif @else No items @endif @if($order->customer)
{{ mb_substr($order->customer?->name ?? 'N', 0, 1) }}
{{ $order->customer?->name }}
@else
Guest
@endif
@if($order->delivery) @if($order->delivery->is_in_store_pickup)
Pickup
@else
{{ mb_substr($order->delivery->name ?? 'R', 0, 1) }}
{{ $order->delivery->name }}
@endif @else
N/A
@endif
{{ ucfirst($order->invoice->status->value) }} {{ $order->created_at->format('M d, Y') }}
No orders found
@include('partials.pagination', ['paginator' => $orders])