@forelse($data as $key => $order) @empty @endforelse
# Order ID Lead Equipment Type Qty Status Created Date Created By Actions
{{ ($data instanceof \Illuminate\Pagination\LengthAwarePaginator ? $data->firstItem() + $key : $key + 1) }} #{{ $order->id }} @if($order->lead) {{ $order->lead->full_name ?: ($order->lead->dba ?: 'Lead #' . $order->lead_id) }} @else Lead deleted @endif {{ $order->equipment_type }} {{ $order->quantity }} {{ $statuses[$order->status]['name'] ?? 'Unknown' }} {{ $order->created_at ? $order->created_at->format('M d, Y') : 'N/A' }} {{ $order->createdBy->full_name ?? 'N/A' }}
@if(isset($permission['destroy']) && $permission['destroy'])
@csrf @method('DELETE')
@endif
No orders found.
@if($data instanceof \Illuminate\Pagination\LengthAwarePaginator && $data->hasPages())
Showing {{ $data->firstItem() }} to {{ $data->lastItem() }} of {{ $data->total() }} orders
{{ $data->appends(request()->query())->links() }}
@endif