@if (isset($flights) && count($flights->lines))

@lang("content.list")

{{----}} @foreach ($flights->lines as $k => $line) @php $items = $line->getFlights() @endphp @php $depFlight = $depFn = $depAp = $arrAp = $depAC = null @endphp @if (count($items) == 2) @php $depFlight = $items[1] @endphp @php $depAp = getFlightDepartureAirport($depFlight, false, true) @endphp @php $arrAp = getFlightArrivalAirport($depFlight, false, true) @endphp @php $depSTD = $depFlight->std && $depFlight->std != EMPTY_DATETIME ? baseDateFormat($depFlight->std, true) : null @endphp @php $depSTDDate = $depSTD ? date("Y-m-d", strtotime($depSTD)) : null @endphp @php $depFn = getFlightNumberFull($depFlight->flightNumber) @endphp @php $depAC = getFlightAircraft($depFlight) @endphp @php $depACType = getFlightAircraftType($depFlight) @endphp @php $arrFlight = $items[0] @endphp @php $arrFN = getFlightNumberFull($arrFlight->flightNumber) @endphp @php $arrDepAp = getFlightDepartureAirport($arrFlight, false, true) @endphp @php $arrSTA = $arrFlight->sta && $arrFlight->sta != EMPTY_DATETIME ? baseDateFormat($arrFlight->sta, true) : null @endphp @php $arrSTADate = $arrSTA ? date("Y-m-d", strtotime($arrSTA)) : null @endphp {{--Departure Flight--}} {{--Arrival Flight--}} {{--Arrival flight ATA--}} {{--Departure flight ATD--}} {{--DELAYS OUT--}} @php list($codes, $times) = getFlightDelays($depFlight) @endphp @if (count($codes)) @else @endif {{--- PAX IN---}} {{--- PAX OUT---}} {{--- Baggage IN---}} {{-- --}} {{-- --}} {{--- Baggage OUT---}} {{-- --}} {{-- --}} {{--- Cargo IN---}} {{-- --}} {{-- --}} {{--- Cargo OUT---}} {{-- --}} {{-- --}} {{--Counters--}} @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 {{----}} {{--Departure Flight--}} {{--Departure Flight--}} {{--Arrival Flight--}} {{--Arrival flight ATA--}} {{--Departure flight ATD--}} @php list($codes, $times) = getFlightDelays($flight) @endphp @if (count($codes)) @else @endif {{--- PAX IN---}} {{--- PAX OUT---}} {{--- BAGGAGE IN---}} {{-- --}} {{-- --}} {{--- BAGGAGE OUT---}} {{-- --}} {{-- --}} {{--- Cargo IN---}} {{-- --}} {{-- --}} {{--- Cargo OUT---}} {{-- --}} {{-- --}} {{--Counters--}} @endif @endif @endforeach
No@lang("content.date") @lang("content.station") DEP
FLT No
TO STD ARR
FLT No
FROM STA A/C Reg A/C Type ATA ATD DL Code PAX FHR
Code Time IN INF OUT INF
{{ getFlightDepartureInitialDate($depFlight, true)}}{{ $depAp }} {{ $depFn }} {{ $arrAp }} {{ baseTimeFormat($depSTD) }}{{ $arrFN }} {{ $arrDepAp }} {{ ($depSTDDate != $arrSTADate ? $arrSTADate." " : ""). baseTimeFormat($arrSTA) }} {{ $depAC }} {{ $depACType }}{{ $arrFlight->ata && $arrFlight->ata != EMPTY_DATETIME ? baseTimeFormat($arrFlight->ata) : "" }}{{ $depFlight->atd && $depFlight->atd != EMPTY_DATETIME ? baseTimeFormat($depFlight->atd) : "" }}DL {{ implode("/", $codes) }} {{ implode("/", $times) }} {{ getFlightPaxTotal($arrFlight, true) }} {{ $arrFlight->pax_inf_actual }}{{ getFlightPaxTotal($depFlight, true) }} {{ $depFlight->pax_inf_actual }}{{ $arrFlight->baggage_pcs }}{{ $arrFlight->baggage }}{{ $depFlight->baggage_pcs }}{{ $depFlight->baggage }}{{ $arrFlight->cargo_pcs }}{{ $arrFlight->cargo }}{{ $depFlight->cargo_pcs }}{{ $depFlight->cargo }} id}") }}" target="_blank">FHR
{{ $k + 1 }}{{ getFlightDepartureInitialDate($flight, true) }}{{ $depAp }} {{ $fn }} {{ $arrAp }}{{ $flight->std && $flight->std != EMPTY_DATETIME ? baseTimeFormat($flight->std) : "" }} {{ $ac }} {{ $acType }}{{ $flight->atd && $flight->atd != EMPTY_DATETIME ? baseTimeFormat($flight->atd) : "" }}DL {{ implode("/", $codes) }} {{ implode("/", $times) }} {{ getFlightPaxTotal($flight, true) }} {{ $flight->pax_inf_actual }}{{ $flight->baggage_pcs }}{{ $flight->baggage }}{{ $flight->cargo_pcs }}{{ $flight->cargo }} id}") }}" target="_blank"> {{-- --}} FHR
@endif