@extends('layouts.app') @section('title', 'Transit Tracking Report') @section('no-page-header') @section('content')
Total Transits
Completed
In Progress
Delayed
Completion Rate
Avg Distance
| Employee | Client | From Location | To Location | Start Time | Est. Arrival | Actual Arrival | Distance | Status | Efficiency |
|---|---|---|---|---|---|---|---|---|---|
|
{{ $transit->employee->full_name }}
{{ $transit->employee->profile->employee_id ?? '' }}
|
{{ $transit->client?->name ?? 'N/A' }} | {{ $transit->from_location }} | {{ $transit->to_location }} | {{ $transit->start_time->format('M d, h:i A') }} | {{ $transit->estimated_arrival?->format('M d, h:i A') ?? 'N/A' }} | {{ $transit->actual_arrival?->format('M d, h:i A') ?? 'N/A' }} | {{ $transit->distance ?? 'N/A' }} km | {{ ucfirst(str_replace('_', ' ', $transit->status)) }} | @if($transit->estimated_arrival && $transit->actual_arrival) @php $efficiency = \Carbon\Carbon::parse($transit->estimated_arrival)->diffInMinutes(\Carbon\Carbon::parse($transit->actual_arrival)); @endphp {{ $efficiency <= 0 ? 'On Time' : $efficiency . ' min late' }} @else N/A @endif |
| No transit records found | |||||||||
| Employee | Transits | Completion Rate | Total Distance |
|---|---|---|---|
| {{ $performer['employee']['full_name'] }} | {{ $performer['total_transits'] }} |
|
{{ $performer['total_distance'] }} km |
| No data available | |||
| Client | Transits | Completed | Total Distance |
|---|---|---|---|
| {{ $clientData['client']['name'] }} | {{ $clientData['total_transits'] }} | {{ $clientData['completed_transits'] }} | {{ $clientData['total_distance'] }} km |
| No data available | |||
Total Transits
Completed
Total Distance
Avg Duration
Choose report type, period, and filters to generate transit reports