{{ $title }}
{{ !empty($meta['AgentName']) ? $meta['AgentName']:''}}


{{ $meta['queryTitle'] }}

Approved By Acc: .........................

Issued By Agent/Conductor: .......................
Route : {{ $routeName }}
Total Booking : {{ number_format($meta['Total'], 2) }}
POS(Cash) | Office : {{ $meta['POS'] }} Tickets - {{ number_format($meta['CollectionPOS'], 2) }}
ONLINE : {{ $meta['Website'] }} Tickets - @php $amount = $meta['CollectionONLINE']; $txn_fee = (int)(abs(0.0151 * $amount)); $net_to_bank = (abs($amount - $txn_fee)); echo number_format($net_to_bank, 2); @endphp
Gross Collection : {{ number_format($meta['Collection'], 2) }}
Approximate Net Collection : {{ number_format($meta['NetCollection'], 2) }}
Approximate Commission : : {{ number_format($meta['NetCommission'], 2) }}
Operation Cost :
Approximate Balance :
Date :
{{ $meta['Date'] }}
@if(count($bookingsQueryBuilder) > 0) @foreach($bookingsQueryBuilder ?? '' as $i => $booking) @if($booking->status == '4') @else {{-- --}} @endif @endforeach @else @endif
S/N Passenger Seat Ticket Contact Trip Date Origin Destination Agent SoldAt Fare Net Price
{{$i+1}} {{$booking->fullname}} {{ \App\Models\BusSeat::where(['id' => $booking->seat_id])->first()->naming }} {{$booking->reference}} {{$booking->msisdn}} {{ $booking->date }} @php if($booking->sub_route_id == null){ $pA = \App\Models\Route::where(['id' => $booking->schedule->route_id])->first()->start_point; $pB = \App\Models\Route::where(['id' => $booking->schedule->route_id])->first()->end_point; $pointA = \App\Models\Cities::where(['id' => $pA])->first()->city; $pointB = \App\Models\Cities::where(['id' => $pB])->first()->city; echo $pointA; }else{ $from = \App\Models\SubRoute::where(['id' => $booking->sub_route_id])->first()->pointA; $to = \App\Models\SubRoute::where(['id' => $booking->sub_route_id])->first()->pointB; echo $from; } @endphp @php if($booking->sub_route_id == null){ $pA = \App\Models\Route::where(['id' => $booking->schedule->route_id])->first()->start_point; $pB = \App\Models\Route::where(['id' => $booking->schedule->route_id])->first()->end_point; $pointA = \App\Models\Cities::where(['id' => $pA])->first()->city; $pointB = \App\Models\Cities::where(['id' => $pB])->first()->city; echo $pointB; }else{ $from = \App\Models\SubRoute::where(['id' => $booking->sub_route_id])->first()->pointA; $to = \App\Models\SubRoute::where(['id' => $booking->sub_route_id])->first()->pointB; echo $to; } @endphp @php $agent = \App\Models\Agent::where(['id' => $booking->agent_id])->first()->name; echo $agent; @endphp {{$booking->booking_date}} {{number_format($booking->fare, 0)}} @php $amount = \App\Models\SubRoute::where(['id' => $booking->sub_route_id])->first()->fare; $commission = (int)(abs(0.0151 * $amount)); $price = (abs($amount - $commission)); echo number_format($price, 2); @endphp
{{$i+1}} {{$booking->fullname}} {{ \App\Models\BusSeat::where(['id' => $booking->seat_id])->first()->naming }} {{$booking->reference}} {{$booking->msisdn}} {{ $booking->date }} @php if($booking->sub_route_id == null){ $pA = \App\Models\Route::where(['id' => $booking->schedule->route_id])->first()->start_point; $pB = \App\Models\Route::where(['id' => $booking->schedule->route_id])->first()->end_point; $pointA = \App\Models\Cities::where(['id' => $pA])->first()->city; $pointB = \App\Models\Cities::where(['id' => $pB])->first()->city; echo $pointA; }else{ $from = \App\Models\SubRoute::where(['id' => $booking->sub_route_id])->first()->pointA; $to = \App\Models\SubRoute::where(['id' => $booking->sub_route_id])->first()->pointB; echo $from; } @endphp @php if($booking->sub_route_id == null){ $pA = \App\Models\Route::where(['id' => $booking->schedule->route_id])->first()->start_point; $pB = \App\Models\Route::where(['id' => $booking->schedule->route_id])->first()->end_point; $pointA = \App\Models\Cities::where(['id' => $pA])->first()->city; $pointB = \App\Models\Cities::where(['id' => $pB])->first()->city; echo $pointB; }else{ $from = \App\Models\SubRoute::where(['id' => $booking->sub_route_id])->first()->pointA; $to = \App\Models\SubRoute::where(['id' => $booking->sub_route_id])->first()->pointB; echo $to; } @endphp @php $agent = \App\Models\Agent::where(['id' => $booking->agent_id])->first()->name; echo $agent; @endphp {{$booking->booking_date}} {{number_format($booking->fare, 0)}}--}} {{-- @php--}} {{-- $price = \App\Models\SubRoute::where(['id' => $booking->sub_route_id])->first()->price;--}} {{-- echo number_format($price, 2);--}} {{-- @endphp--}} {{-- {{-- @php--}} {{-- $is_agent_commissioned = \App\Models\AgentCompany::where(['agent' => $booking->agent_id])--}} {{-- ->where(['company' => $booking->company])->first()->type;--}} {{-- if($is_agent_commissioned == 1){--}} {{-- echo number_format($booking->fare, 2);--}} {{-- }else if($is_agent_commissioned == 2){--}} {{-- $price = \App\Models\SubRoute::where(['id' => $booking->sub_route_id])->first()->price;--}} {{-- echo number_format($price, 2);--}} {{-- }--}} {{-- @endphp--}}
No Record for this Particular Date Entries !
https://www.aboodbus.co.tz