Live Ongoing Duties & Active Jobs Log

{{ $ongoingDuties->count() }} Active Job(s)
@if($ongoingDuties->isNotEmpty())
@foreach($ongoingDuties as $duty) @php $tour = $duty->tour; $isLive = $duty->status === 'in_progress'; @endphp
{{ $duty->duty_code }} {{ ucfirst($duty->shift) }}
@if($isLive) Live Sweeping @else Assigned / Ready @endif
Vehicle {{ $duty->vehicle->vehicle_number ?? 'N/A' }} {{ $duty->vehicle->category->name ?? 'Sweeper' }}
Operator {{ $duty->employee->full_name ?? 'Unassigned' }} {{ $duty->employee->mobile_number ?? 'No Phone' }}
Assigned Route

{{ $duty->route->name ?? 'Municipal Route' }}

Swept Distance {{ number_format((float) ($duty->actual_distance_km ?? $tour?->total_distance_km ?? 0), 3) }} KM
Shift Duration {{ $tour ? $tour->formatted_duration : 'Pending Start' }}
Photos {{ $duty->photos->count() }}
@if($duty->vehicle_id) @endif PDF Report
@endforeach
@else

No active duty jobs currently in progress.

@endif