My Sweeping Tours Log

View history of your mechanical road sweeping tours, total distances covered, duration, and GPS route maps.

@if($employee)
Driver: {{ $employee->full_name }} ({{ $employee->employee_code ?? 'EMP' }})
@endif
Assigned Jobs
{{ $totalJobsCount }}
Logged Tours
{{ $drivenToursCount }}
Distance
{{ number_format($totalDistance, 1) }}KM
Status
@if(\App\Models\VehicleTour::where('employee_id', $employee?->id)->where('status', 'in_progress')->exists()) Active @else Ready @endif
@forelse($tours as $t)
{{ $t->vehicle->vehicle_number ?? 'Vehicle' }} {{ $t->vehicle->category->name ?? 'Sweeper' }}
@if($t->status === 'completed') Completed @else In Progress @endif
Distance {{ number_format($t->total_distance_km, 3) }} KM
Duration {{ $t->formatted_duration }}
Start Time: {{ $t->start_time ? $t->start_time->format('d M Y, h:i A') : '—' }}
End Time: {{ $t->end_time ? $t->end_time->format('d M Y, h:i A') : 'In Progress' }}
View Trajectory Route Map
@empty

No sweeping tour logs found for your driver profile.

@endforelse
@if($tours->hasPages())
{{ $tours->links() }}
@endif
@if($selectedTour)
{{ $selectedTour->vehicle->vehicle_number ?? 'Vehicle' }} Your Route Trajectory
Total Distance: {{ number_format($selectedTour->total_distance_km, 3) }} KM | Duration: {{ $selectedTour->formatted_duration }} @if($selectedTour->start_time) | Started: {{ $selectedTour->start_time->format('d M, h:i A') }} @endif
Recorded GPS Waypoints Trajectory {{ count($selectedTour->waypoints) }} Waypoints Logged
@endif