{{ getFlightDepartureInitialDate($depFlight, true)}} |
{{--Departure Flight--}}
{{ $depAp }} |
@if ($depFlight->cancelled_at)
{{ $depFn }}
(Cancelled)
@else
{{ $depFn }}
@endif
|
{{ $depAC }} |
{{-- {{ $depFlight->parent_id }} | --}}
{{ $depACType }} |
{{--Arrival flight ATA--}}
@if ($arrFlight->cancelled_at)
{{ $arrFN }}
(Cancelled)
@else
{{ $arrFN }}
@endif
|
{{ $arrFlight->ata && $arrFlight->ata != EMPTY_DATETIME ? baseTimeFormat($arrFlight->ata) : "" }} |
{{--Departure flight ATD--}}
{{ $depFlight->atd && $depFlight->atd != EMPTY_DATETIME ? baseTimeFormat($depFlight->atd) : "" }} |
{{--DELAYS OUT--}}
@php list($codes, $times, $dlTotal) = getFlightDelays($depFlight) @endphp
@if (count($codes))
DL {{ implode("/", $codes) }} |
{{ implode("/", $times) }} |
{{ $dlTotal }} |
@else
|
|
|
@endif
{{--- PAX IN---}}
{{ $in = getFlightPaxTotal($arrFlight, true) }} |
{{ $inInf = $arrFlight->pax_inf_actual }} |
{{--- PAX OUT---}}
{{ $out = getFlightPaxTotal($depFlight, true) }} |
{{ $outInf = $depFlight->pax_inf_actual }} |
{{-- {{ $arrAp }} | --}}
{{-- {{ baseTimeFormat($depSTD) }} | --}}
{{--Arrival Flight--}}
{{-- {{ $arrFN }} | --}}
{{-- {{ $arrDepAp }} | --}}
{{-- {{ ($depSTDDate != $arrSTADate ? $arrSTADate." " : ""). baseTimeFormat($arrSTA) }} | --}}
{{--SSR--}}
@foreach($ssrList as $ssr)
{{--IN--}}
@if ($arrFlight->ssr_ready && isset($arrFlight->ssr_ready[$ssr]))
@php $s = $arrFlight->ssr_ready[$ssr] @endphp
{{ $s }} |
@if (!isset($ssrTotalsArr[$ssr]))
@php $ssrTotalsArr[$ssr] = 0 @endphp
@endif
@php $ssrTotalsArr[$ssr] += $s @endphp
@else
|
@endif
{{--OUT--}}
@if ($depFlight->ssr_ready && isset($depFlight->ssr_ready[$ssr]))
@php $s = $depFlight->ssr_ready[$ssr] @endphp
{{ $s }} |
@if (!isset($ssrTotalsDep[$ssr]))
@php $ssrTotalsDep[$ssr] = 0 @endphp
@endif
@php $ssrTotalsDep[$ssr] += $s @endphp
@else
|
@endif
@endforeach
{{--Counters--}}
@if ($depFlight->ckin_num)
{{ $depFlight->ckin_num }}
@endif
@if ($arrFlight->ckin_num)
/ {{ $arrFlight->ckin_num }}
@endif
|
{{ $depFlight->sla }} |
{{ $depFlight->remark }} |
@if ($depFlight->cancelled_at)
{{ getUserName($depFlight->updatedBy) }} |
{{ date("Y-m-d H:i", strtotime($depFlight->cancelled_at)) ?? "" }} |
{{ date("Y-m-d H:i", strtotime($depFlight->cancellation_received_at)) ?? "" }} |
{{ $depFlight->remark }} |
@else
|
|
|
|
@endif
@php $totalFlights++ @endphp
@else
@php $flight = $items[0] @endphp
@php $fn = getFlightNumberFull($flight->flightNumber) @endphp
@if ($flight->type == DEPARTURE)
@php $ac = getFlightAircraft($flight) @endphp
@php $acType = getFlightAircraftType($flight) @endphp
@php $depAp = getFlightDepartureAirport($flight, false, true) @endphp
@php $arrAp = getFlightArrivalAirport($flight, false, true) @endphp
{{--{{ $k + 1 }} | --}}
{{ getFlightDepartureInitialDate($flight, true) }} |
{{--Departure Flight--}}
{{ $depAp }} |
@if ($flight->cancelled_at)
{{ $fn }}
(Cancelled)
@else
{{ $fn }}
@endif
|
{{-- {{ $arrAp }} | --}}
{{ $ac }} |
{{ $acType }} |
{{-- | {{ $flight->parent_id }} | --}}
{{--Arrival flight ATA--}}
|
|
{{--Departure flight ATD--}}
{{ $flight->atd && $flight->atd != EMPTY_DATETIME ? baseTimeFormat($flight->atd) : "" }} |
{{--Departure Flight--}}
{{-- {{ $flight->std && $flight->std != EMPTY_DATETIME ? baseTimeFormat($flight->std) : "" }} | --}}
@php list($codes, $times, $dlTotal) = getFlightDelays($flight) @endphp
@if (count($codes))
DL {{ implode("/", $codes) }} |
{{ implode("/", $times) }} |
{{ $dlTotal }} |
@else
|
|
|
@endif
{{--- PAX IN---}}
|
|
{{--- PAX OUT---}}
{{ $out = getFlightPaxTotal($flight, true) }} |
{{ $outInf = $flight->pax_inf_actual }} |
@foreach($ssrList as $ssr)
{{--IN--}}
|
{{--OUT--}}
@if ($flight->ssr_ready && isset($flight->ssr_ready[$ssr]))
@php $s = $flight->ssr_ready[$ssr] @endphp
{{ $s }} |
@if (!isset($ssrTotalsDep[$ssr]))
@php $ssrTotalsDep[$ssr] = 0 @endphp
@endif
@php $ssrTotalsDep[$ssr] += $s @endphp
@else
|
@endif
@endforeach
{{--Counters--}}
{{ $flight->ckin_num }} |
{{ $flight->sla }} |
{{ $flight->remark }} |
@if ($flight->cancelled_at)
{{ getUserName($flight->updatedBy) }} |
{{ date("Y-m-d H:i", strtotime($flight->cancelled_at)) ?? "" }} |
{{ date("Y-m-d H:i", strtotime($flight->cancellation_received_at)) ?? "" }} |
{{ $flight->remark }} |
@else
|
|
|
|
@endif
@php $totalFlights++ @endphp
@else
{{-- {{ debug("unmatched flight: {$fn} ". getFlightArrivalInitialDate($flight)) }}--}}
@endif
@endif
@php $paxIn += ($in ? $in : 0) @endphp
@php $paxInInf += ($inInf ? $inInf : 0) @endphp
@php $paxOut += ($out ? $out : 0) @endphp
@php $paxOutInf += ($outInf ? $outInf : 0) @endphp
@php $delayTotal += ($dlTotal ? doubleval($dlTotal) : 0) @endphp
@endforeach