Driver Report

Driver ID Name
{{$driver->driver_id}} {{$driver->name}}
@foreach($driver->travelOrders as $to) @endforeach
TO # Date Trips #Legs #Legs (non-identical) #Arrival messages #Loaded messages #Empty messages #Customs messages Tracking
{{$to->to_number}} {{$to->delivery_date->format('m/d/Y')}} {{$to->leg_count}} {{$to->leg_count}} {{$to->leg_count}} {{$to->reports->where('report','=','2 - Arrival')->count()}} {{$to->reports->where('report','=','40 - Loaded')->count()}} {{$to->reports->where('report','=','3 - Empty')->count()}} {{$to->reports->where('report','=','5 - Cleared Customs')->count()}} {{$to->tracking()->count()}}

Driver incidents ({{$driver->incidents->count()}})

@if($driver->incidents->count()>0) @foreach($driver->incidents as $i=>$incident) @endforeach
Incident type Incident type
{{$i+1}}. Load {{$incident->type}} {{$incident->date->format('d/m/Y')}}
@endif