{{ $title }}
Live Tracking
@foreach ($allotments as $allotment) @php $badgeClass = match ($allotment->booking->type) { 'one-way' => 'badge-primary', 'two-way' => 'badge-secondary', 'enroute' => 'badge-warning', default => '', }; if ($allotment->driver_update == 1) { $driver_no = $allotment->driver_number; $vehicle_no = $allotment->vehicle_number; } else { $driver_no = $allotment->vehicle->own == 0 ? $allotment->driver->phone_number : ''; $vehicle_no = $allotment->vehicle->own == 0 ? $allotment->vehicle->vehicle_no : ''; } $all_status = $allotment->status; @endphp @can('isAdmin') @endcan @endforeach
{{ $allotment->booking->fromPlace->city->name }}
0h 0m 0s
{{ date('H:i', strtotime($allotment->allotment_date)) }} Hrs
{{ Str::limit($allotment->booking->guest_name, 20) }}
AD-{{ $allotment->booking->adults }} | CH-{{ $allotment->booking->children }} | INF-{{ $allotment->booking->infants }}
@if (!empty($allotment->booking->guest_mobile_number))
{{ $allotment->booking->guest_mobile_number }}
@endif
{{ $allotment->booking->agent_reference }}
{{ $allotment->booking->agent->company_name }}
{{ $allotment->booking->type }} @if (!empty($allotment->booking->enroute_places)) ( @foreach (json_decode($allotment->booking->enroute_places) as $key => $place) {{ $place->title }} {{ $key < count(json_decode($allotment->booking->enroute_places)) - 1 ? ', ' : '' }} @endforeach ) @endif
{{ $allotment->booking->fromPlace->place_name }} To {{ $allotment->booking->toPlace->place_name }}
vehicle->own == 0 || $allotment->driver_update == 1 ? 'readonly' : '' }}>
vehicle->own == 0 || $allotment->driver_update == 1 ? 'readonly' : '' }}>
driver_update == 1 || $all_status>=1 ? 'disabled' : '' }}>
@if($all_status<=1)
@endif