{{$title}}
Monthly sales Go to columns for details.
Summary
Income

฿0

Profit

฿0

Expenses

฿0

Allotment by Vehicle
Live Tracking
@foreach($allotments as $allotment) @php $badgeClass = ''; if ($allotment->booking->type == 'one-way') { $badgeClass = 'badge-primary'; } elseif ($allotment->booking->type == 'two-way') { $badgeClass = 'badge-secondary'; } elseif ($allotment->booking->type == 'enroute') { $badgeClass = 'badge-warning'; } @endphp @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->adult}} | CH-{{$allotment->booking->children}} | INF-{{$allotment->booking->infants}}
{{$allotment->booking->guest_mobile_number}}
{{$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 List
@foreach($vehicles as $vehicle)
LT

{{$vehicle->vehicle_no}}

@if(!$vehicle->speedometers->isEmpty()) @foreach($vehicle->speedometers as $speedometer) {{date('d-m-Y H:i',strtotime($speedometer->created_at))}}
{{ ($speedometer->vehicle_engine_on == 1) ? (($speedometer->status==0)?'Trip-in':'Trip-Out') : 'Shutdown' }} {{$speedometer->shutdown_reason}} @endforeach @endif

{{--@if($vehicle->speedometers->isEmpty()) @endif--}}

@endforeach
@php $current_month = $current_month_allotments->pluck('total')->toArray(); $last_month = $last_month_allotments->pluck('total')->toArray(); $vehicle_all = $current_month_allotments->pluck('vehicle.vehicle_no')->toArray(); @endphp