{{__('text.passenger')}}
@php
$passenger = \App\Models\BookingHistory::where(['id' => $ticket->id])->first()->fullname;
echo $passenger;
@endphp
{{__('text.from')}}
@php
$schedule = \App\Models\BookingHistory::where(['id' => $ticket->id])->first()->schedule_id;
$route = \App\Models\Schedule::where(['id' => $schedule])->first()->route_id;
$pA = \App\Models\Route::where(['id' => $route])->first()->start_point;
$pB = \App\Models\Route::where(['id' => $route])->first()->end_point;
$cA = \App\Models\Cities::where(['id' => $pA])->first()->city;
$cB = \App\Models\Cities::where(['id' => $pB])->first()->city;
echo $cA;
@endphp
{{__('text.to')}}
@php
$schedule = \App\Models\BookingHistory::where(['id' => $ticket->id])->first()->schedule_id;
$route = \App\Models\Schedule::where(['id' => $schedule])->first()->route_id;
$pA = \App\Models\Route::where(['id' => $route])->first()->start_point;
$pB = \App\Models\Route::where(['id' => $route])->first()->end_point;
$cA = \App\Models\Cities::where(['id' => $pA])->first()->city;
$cB = \App\Models\Cities::where(['id' => $pB])->first()->city;
echo $cB;
@endphp
{{__('text.date')}}
@php
$schedule = \App\Models\BookingHistory::where(['id' => $ticket->id])->first()->schedule_id;
$tDate = \App\Models\Schedule::where(['id' => $schedule])->first()->trip_date;
echo $tDate;
@endphp
{{__('text.time')}}
@php
$schedule = \App\Models\BookingHistory::where(['id' => $ticket->id])->first()->schedule_id;
$departure = \App\Models\Schedule::where(['id' => $schedule])->first()->departure;
echo $departure;
@endphp
{{__('text.bus')}}
@php
$schedule = \App\Models\BookingHistory::where(['id' => $ticket->id])->first()->schedule_id;
$bus = \App\Models\Schedule::where(['id' => $schedule])->first()->bus_id;
$busReg = \App\Models\Bus::where(['id' => $bus])->first()->bus_reg_no;
echo $busReg;
@endphp
{{__('text.seat')}}
@php
$seat = \App\Models\BookingHistory::where(['id' => $ticket->id])->first()->seat_id;
$sn = \App\Models\BusSeat::where(['id' => $seat])->first()->naming;
echo $sn;
@endphp
{{__('text.boarding_begin')}}
{{__('text.non_refund')}} • @php
$schedule = \App\Models\BookingHistory::where(['id' => $ticket->id])->first()->schedule_id;
$route = \App\Models\Schedule::where(['id' => $schedule])->first()->route_id;
$comp = \App\Models\Route::where(['id' => $route])->first()->company;
$company = \App\Models\Company::where(['id' => $comp])->first()->name;
echo $company;
@endphp
{{--
--}}
@php
$reference = \App\Models\BookingHistory::where(['id' => $ticket->id])->first()->reference;
echo $reference;
@endphp
@php
$schedule = \App\Models\BookingHistory::where(['id' => $ticket->id])->first()->schedule_id;
$route = \App\Models\Schedule::where(['id' => $schedule])->first()->route_id;
$comp = \App\Models\Route::where(['id' => $route])->first()->company;
$company = \App\Models\Company::where(['id' => $comp])->first()->name;
echo $company;
@endphp
{{__('text.to')}}
@php
$schedule = \App\Models\BookingHistory::where(['id' => $ticket->id])->first()->schedule_id;
$route = \App\Models\Schedule::where(['id' => $schedule])->first()->route_id;
$pA = \App\Models\Route::where(['id' => $route])->first()->start_point;
$pB = \App\Models\Route::where(['id' => $route])->first()->end_point;
$cA = \App\Models\Cities::where(['id' => $pA])->first()->city;
$cB = \App\Models\Cities::where(['id' => $pB])->first()->city;
echo $cB;
@endphp
{{__('text.from')}}
@php
$schedule = \App\Models\BookingHistory::where(['id' => $ticket->id])->first()->schedule_id;
$route = \App\Models\Schedule::where(['id' => $schedule])->first()->route_id;
$pA = \App\Models\Route::where(['id' => $route])->first()->start_point;
$pB = \App\Models\Route::where(['id' => $route])->first()->end_point;
$cA = \App\Models\Cities::where(['id' => $pA])->first()->city;
$cB = \App\Models\Cities::where(['id' => $pB])->first()->city;
echo $cA;
@endphp
{{__('text.date')}}
@php
$schedule = \App\Models\BookingHistory::where(['id' => $ticket->id])->first()->schedule_id;
$tDate = \App\Models\Schedule::where(['id' => $schedule])->first()->trip_date;
echo $tDate;
@endphp
{{__('text.time')}}
@php
$schedule = \App\Models\BookingHistory::where(['id' => $ticket->id])->first()->schedule_id;
$departure = \App\Models\Schedule::where(['id' => $schedule])->first()->departure;
echo $departure;
@endphp
@php
$reference = \App\Models\BookingHistory::where(['id' => $ticket->id])->first()->reference;
echo $reference;
@endphp