{{--
{{ $company }}--}} Address: P.O Box 127 Morogoro, TanzaniaTel: +255 (0) 23 2613 851 / 589 Fax: +255 (0) 23 2603 039 Email: info@aboodgroup.com Website: www.aboodbus.co.tz TIN: 100-756-927 |
|
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 ! |