@if(!empty($mapOnly)) Covered Area Route Map (Ultra HD) - {{ $tour->driverDuty?->duty_code ?? ('#TOUR-'.str_pad($tour->id, 5, '0', STR_PAD_LEFT)) }} - Om Sai Associates
Om Sai Associates
Sweeping Trajectory & Covered Area (Ultra HD)
Amritsar, PB • 24/7 Desk: +91 73551 11111 • ISO 9001:2015 CERTIFIED
Vehicle
{{ $tour->vehicle->vehicle_number ?? 'N/A' }}
Operator
{{ $tour->employee->full_name ?? ($tour->user->name ?? 'N/A') }}
Swept KM
{{ number_format((float) $tour->total_distance_km, 2) }} KM
Trajectory
{{ $tour->waypoints->count() }} Nodes
Duty: {{ $tour->driverDuty?->duty_code ?? ('#TOUR-'.str_pad($tour->id, 5, '0', STR_PAD_LEFT)) }}
Route: {{ $tour->route->name ?? ($tour->driverDuty?->route?->name ?? 'Corridor') }}
Shift: {{ $tour->start_time ? $tour->start_time->format('d M Y, h:i A') : date('d M Y') }}
Official Ultra HD Sweeping Trajectory (Covered Area Only) Precision GPS Telematics • Street-Level Lanes • Numbered Nodes Verified
@if(!empty($mapImage)) Ultra HD Covered Area Map @else
No GPS Telemetry Coordinates Available to Render Covered Area Map.
@endif
@else Trip Sweeping Certificate #{{ $tour->id }} - Om Sai Associates
Om Sai Associates
Environmental & Sanitation Services
Head Office: ISBT Amritsar, Punjab - 143001  |  24/7 Helpline: +91 73551 11111  |  contact@omssaiassociates.in
ISO 9001:2015 CERTIFIED PARTNER
Official Sweeping Verification Slip
Duty Code: {{ $tour->driverDuty?->duty_code ?? ('#TOUR-'.str_pad($tour->id, 5, '0', STR_PAD_LEFT)) }}
Mechanical Road Sweeping Shift Verification Certificate
Proof of Work Execution for Municipal Billing & Compliance Verification
Total Swept Distance
{{ number_format((float) $tour->total_distance_km, 3) }} KM
Shift Duration
{{ $tour->formatted_duration }}
GPS Telemetry Points
{{ $tour->waypoints->count() }} Points
Execution Status
@if($tour->status === 'completed') Completed @else {{ ucfirst($tour->status) }} @endif
Vehicle & Machinery Details
Vehicle Plate: {{ $tour->vehicle->vehicle_number ?? 'N/A' }}
Duty ID / Code: {{ $tour->driverDuty?->duty_code ?? ('#TOUR-'.str_pad($tour->id, 5, '0', STR_PAD_LEFT)) }}
Category: {{ $tour->vehicle->category->name ?? 'Mechanical Sweeper' }}
Assigned Route: {{ $tour->route->name ?? ($tour->driverDuty?->route?->name ?? 'Municipal Area Route') }}
Assigned Operator & Shift Info
Operator Name: {{ $tour->employee->full_name ?? ($tour->user->name ?? 'N/A') }}
Employee ID: {{ $tour->employee->employee_code ?? 'EMP-'.str_pad($tour->employee_id ?? 0, 4, '0', STR_PAD_LEFT) }}
Shift & Date: {{ ucfirst($tour->driverDuty?->shift ?? 'General') }} Shift  |  {{ $tour->start_time ? $tour->start_time->format('d F Y') : 'N/A' }}
Contact Phone: {{ $tour->employee->mobile_number ?? 'N/A' }}
GPS Telematics & Sweeping Route Verification
@if($tour->notes) @endif
Shift Start Time: {{ $tour->start_time ? $tour->start_time->format('d M Y, h:i:s A') : 'N/A' }} Shift End Time: {{ $tour->end_time ? $tour->end_time->format('d M Y, h:i:s A') : 'In Progress' }}
Start Coordinates: {{ $tour->start_latitude ? number_format($tour->start_latitude, 6).', '.number_format($tour->start_longitude, 6) : 'Logged via GPS' }} End Coordinates: {{ $tour->end_latitude ? number_format($tour->end_latitude, 6).', '.number_format($tour->end_longitude, 6) : 'Logged via GPS' }}
Calculation Method: Haversine GPS Telemetry with Anti-Spike Speed Verification Average Sweeping Speed: @php $hours = $tour->total_time_seconds ? ($tour->total_time_seconds / 3600) : 0; $avgSpeed = $hours > 0 ? ($tour->total_distance_km / $hours) : 0; @endphp {{ number_format($avgSpeed, 2) }} KM/H (Operational Standard)
Operational Notes: {{ $tour->notes }}
@if(!empty($mapImage))
Om Sai Associates
GPS Telematics Sweeping Trajectory & Covered Area (Full HD)
Municipal Sanitation Division  |  Shift Verification Trajectory Sheet
ISO 9001:2015 CERTIFIED PARTNER
Duty Code: {{ $tour->driverDuty?->duty_code ?? ('#TOUR-'.str_pad($tour->id, 5, '0', STR_PAD_LEFT)) }}
Vehicle: {{ $tour->vehicle->vehicle_number ?? 'N/A' }}  |  Distance: {{ number_format((float) $tour->total_distance_km, 2) }} KM
Official Full HD Sweeping Trajectory & Lane Verification Sheet Full HD Covered Area • Street-Level Lanes • Numbered Nodes & Break Gaps
Full HD Covered Area Trajectory Map
@endif @if(isset($assignments) && $assignments->isNotEmpty())
Assigned Machinery Fleet & Driver Telematics Breakdown ({{ $assignments->count() }} Vehicle Units)
@foreach($assignments as $idx => $a) @endforeach
# Vehicle Machinery Assigned Operator Shift Window Status Distance Covered
{{ $idx + 1 }} {{ $a->vehicle->vehicle_number ?? 'N/A' }}
{{ $a->vehicle->model_name ?? ($a->vehicle->category?->name ?? 'Sweeper Machinery') }}
{{ $a->employee->full_name ?? 'N/A' }}
ID: {{ $a->employee->employee_code ?? 'EMP-'.str_pad($a->employee_id, 4, '0', STR_PAD_LEFT) }}
{{ $a->start_time ? $a->start_time->format('h:i A') : '06:00 AM' }} - {{ $a->end_time ? $a->end_time->format('h:i A') : '02:00 PM' }} {{ strtoupper($a->status ?? 'ASSIGNED') }} {{ number_format((float) ($a->tour?->total_distance_km ?? $a->distance_km), 2) }} KM
@endif @if(isset($photos) && $photos->isNotEmpty())
Job Execution & Field Work Verification Photos {{ $photos->count() }} Photo(s) Attached
@foreach($photos->chunk(2) as $row) @foreach($row as $photo) @endforeach @if($row->count() < 2) @endif @endforeach
Job Verification Photo
@if($photo->caption) @endif @if($photo->latitude && $photo->longitude) @endif
STAGE: {{ str_replace('_', ' ', $photo->stage ?? 'In Progress') }} {{ $photo->taken_at ? $photo->taken_at->format('d M Y, h:i A') : '' }}
"{{ $photo->caption }}"
GPS: {{ number_format($photo->latitude, 6) }}, {{ number_format($photo->longitude, 6) }}
@endif
Driver / Operator Sign
{{ $tour->employee->full_name ?? 'Vehicle Operator' }}
Date: {{ $tour->start_time ? $tour->start_time->format('d M Y') : date('d M Y') }}
Om Sai Site Supervisor
Field Operations Manager
Seal & Verification
Municipal Health Officer
Nagar Nigam / Municipal Corp.
Inspection Sign-off & Stamp
@endif