@forelse($serviceOrders as $index => $order) {{ $index + 1 }} {{ $order->submission_date ? $order->submission_date->format('d M Y') : 'N/A' }} {{ $order->invoice_id ?? 'N/A' }} {{ $order->service_name ?? 'N/A' }} {{ $order->customer_name ?? 'N/A' }} {{ $order->customer_id ?? 'N/A' }} {{ $order->branch_name ?? 'N/A' }} {{ $order->agent_commission == 0 ? '' : number_format($order->agent_commission, 0) }} {{ $order->delivery_date ? $order->delivery_date->format('d M Y') : 'N/A' }} {{ str_replace('_', ' ', ucfirst($order->status ?? 'N/A')) }} @empty No service orders found. @endforelse