Om Sai Associates
Municipal Sanitation & Environmental Engineering
Head Office: ISBT Amritsar, Punjab - 143001 • 24/7 Desk: +91 73551 11111 • contact@omssaiassociates.in
ISO 9001:2015 CERTIFIED PARTNER
Official Verification Booklet
Issued: {{ now()->format('d M Y, h:i A') }}
@if(($entityType ?? '') === 'vehicle') Combined Operations & Duty Certificates Booklet • {{ $vehicle->vehicle_number ?? 'Machinery Unit' }} @else Combined Shift Verification Certificates Booklet • {{ $shiftName ?? 'Shift Operations' }} @endif
Official Multi-Duty GPS Verification Portfolio for Municipal Corporation & Audit Submission
@if(($entityType ?? '') === 'vehicle') Fleet Machinery Telematics Profile @else Municipal Shift Operational Profile @endif
@if(($entityType ?? '') === 'vehicle') @else @endif
Vehicle Registration: {{ $vehicle->vehicle_number }} Machinery Type: {{ $vehicle->category?->name ?? 'Mechanical Road Sweeper' }}
Operating Function: {{ $vehicle->primary_function ?? 'Road Sweeping & Desilting' }} Assigned Operator(s): {{ !empty($uniqueDrivers) && $uniqueDrivers->count() > 0 ? $uniqueDrivers->implode(', ') : ($vehicle->assignedEmployee?->full_name ?? 'Float Pool') }}
Date Range: {{ $dateRangeText }} Operational Status: GPS Certified
Shift Name: {{ $shiftName }} Shift Code: {{ $shift?->code ?? 'SH-01' }}
Active Machinery: {{ !empty($uniqueVehicles) ? $uniqueVehicles->implode(', ') : 'All Fleet' }} Active Operators: {{ !empty($uniqueDrivers) ? $uniqueDrivers->implode(', ') : 'Fleet Operators' }}
Date Range: {{ $dateRangeText }} Verification Status: Audit Ready
Total Duties / Shifts
{{ $totalTours }}
Logged Operations
Cumulative Distance
{{ number_format((float) $totalDistanceKm, 2) }} KM
GPS Verified
Total Engine Time
{{ $formattedDuration }}
Sweeping Operations
Operating Days
{{ $uniqueDatesCount }} Days
Active Deployment
1. Master Duty & Tour Verification Index
@foreach($certificates as $idx => $cert) @php $t = $cert['tour']; $d = $cert['duty']; $sInfo = $cert['shiftInfo']; @endphp @endforeach
# Duty / Tour Ref Date Driver / Operator Assigned Route Shift Timing Duration Distance Status
{{ $idx + 1 }} {{ $d?->duty_code ?? ('#TOUR-' . str_pad((string) $t->id, 5, '0', STR_PAD_LEFT)) }} {{ $t->start_time ? $t->start_time->format('d M Y') : 'N/A' }} {{ $t->employee?->full_name ?? ($t->user?->name ?? 'Unassigned') }} {{ $t->route?->name ?? ($d?->route?->name ?? 'Municipal Sector Route') }} {{ $sInfo['name'] }}
{{ $sInfo['window'] }}
{{ $t->formatted_duration }} {{ number_format((float) $t->total_distance_km, 3) }} KM @if($t->status === 'completed') Done @elseif($t->status === 'in_progress') Active @else {{ ucfirst($t->status) }} @endif
COMBINED TOTAL ({{ count($certificates) }} DUTIES VERIFIED): {{ $uniqueDatesCount }} Days {{ $formattedDuration }} {{ number_format((float) $totalDistanceKm, 3) }} KM VERIFIED
@php $chartMaxDistanceKm = max(0.001, (float) collect($certificates)->max(fn ($c) => (float) $c['tour']->total_distance_km)); $chartMaxSeconds = max(1, (int) collect($certificates)->max(fn ($c) => (int) $c['tour']->total_time_seconds)); @endphp
2. Duty-wise Distance & Sweeping Time Graph
@if(!empty($dutyComparisonChart))
Duty-wise Distance & Sweeping Time Bar Graph
@else
Distance Swept (KM)     Sweeping Duration
@foreach($certificates as $cert) @php $chartTour = $cert['tour']; $chartDuty = $cert['duty']; $distancePercent = round(((float) $chartTour->total_distance_km / $chartMaxDistanceKm) * 100, 1); $durationPercent = round(((int) $chartTour->total_time_seconds / $chartMaxSeconds) * 100, 1); @endphp @endforeach
{{ $chartDuty?->duty_code ?? ('#TOUR-' . str_pad((string) $chartTour->id, 5, '0', STR_PAD_LEFT)) }}
{{ $chartTour->start_time ? $chartTour->start_time->format('d M Y') : 'N/A' }} • {{ $chartTour->employee?->full_name ?? ($chartTour->user?->name ?? 'Unassigned') }}
{{ number_format((float) $chartTour->total_distance_km, 3) }} KM
{{ $chartTour->formatted_duration }}
@endif
') }}" alt="Verified" />DIGITALLY VERIFIED BY OM SAI ASSOCIATES
System Generated • Digital GPS Verification • {{ now()->format('d M Y, h:i A') }}
@foreach($certificates as $index => $cert) @php $tour = $cert['tour']; $duty = $cert['duty']; $photos = $cert['photos']; $mapImage = $cert['mapImage']; $shiftInfo = $cert['shiftInfo']; $effectiveRoute = $tour->route ?? $duty?->route; @endphp
Om Sai Associates
Environmental & Sanitation Services • Official Verification Slip
ISO 9001:2015 CERTIFIED PARTNER
Duty Ref: {{ $duty?->duty_code ?? ('#TOUR-' . str_pad((string) $tour->id, 5, '0', STR_PAD_LEFT)) }}
Booklet Duty #{{ $index + 1 }} of {{ count($certificates) }}
Shift Telematics & Operational Audit Record • {{ $tour->start_time ? $tour->start_time->format('d M Y') : 'N/A' }}
Vehicle Machinery: {{ $tour->vehicle->vehicle_number ?? 'N/A' }} ({{ $tour->vehicle->category?->name ?? 'Sweeper' }}) Assigned Operator: {{ $tour->employee->full_name ?? ($tour->user->name ?? 'Unassigned') }} ({{ $tour->employee->employee_code ?? 'EMP' }})
Assigned Route: {{ $effectiveRoute?->name ?? 'Municipal Sector Route' }} Shift Timing: {{ $shiftInfo['name'] }} ({{ $shiftInfo['window'] }})
Operational Window: {{ $tour->start_time ? $tour->start_time->format('h:i A') : '--:--' }} - {{ $tour->end_time ? $tour->end_time->format('h:i A') : 'Active' }} Sweeping Duration: {{ $tour->formatted_duration }}
Distance Swept: {{ number_format((float) $tour->total_distance_km, 3) }} KM Telematics Status: @if($tour->status === 'completed') Completed & Verified @elseif($tour->status === 'in_progress') In Progress @else {{ ucfirst($tour->status) }} @endif
@if(!empty($mapImage))
Official GPS Sweeping Trajectory & Covered Area Map Precision GPS Telematics • Municipal Corridor Lanes Verified
Sweeping Trajectory Map
@else
No GPS Telemetry Coordinates Recorded For This Specific Duty.
@endif @if(!empty($photos) && $photos->isNotEmpty())
Job Execution Field Work Verification Photos ({{ $photos->count() }} Attached)
@foreach($photos->take(4)->chunk(2) as $row) @foreach($row as $photo) @endforeach @endforeach
@if($photo->base64_data_uri) Work Verification Photo @endif
{{ strtoupper(str_replace('_', ' ', $photo->stage ?? 'Photo')) }} • {{ $photo->taken_at ? $photo->taken_at->format('d M Y, h:i A') : '' }}
@endif
') }}" alt="Verified" />DIGITALLY VERIFIED BY OM SAI ASSOCIATES
System Generated • Digital GPS Verification • {{ now()->format('d M Y, h:i A') }}
@endforeach