@php $logoWidth = $airlineModule ? 32 : 64 @endphp @foreach($data as $i => $flight) @php $fltType = $flight->type @endphp @php $flightNumber = $flight->flightNumber @endphp @php $airline = $flightNumber ? $flightNumber->airline : null @endphp @php $dcs3 = showDCS3($airline); @endphp @php list($fn1, $fn2, $fn3) = getFlightNumberStrings($flight) @endphp @php $childDiff = false @endphp @if ($flight->flightChild) @php $childDiff = strtotime(getFlightDepartureDate($flight->flightChild)) > strtotime(getFlightDepartureDate($flight)) @endphp @endif @php $depAP = getFlightDepartureAirport($flight) @endphp @php $dep = $depAP ? getAirportIataIcao($depAP) : "" @endphp @php $arrAP = getFlightArrivalAirport($flight) @endphp @php $arr = $arrAP ? getAirportIataIcao($arrAP) : "" @endphp @php $depType = getFlightDepartureTimeType($flight, true) @endphp @php $depInitialType = getFlightDepartureInitialTimeType($flight, true) @endphp @php $arrType = getFlightArrivalTimeType($flight, true) @endphp @php $arrInitialType = getFlightArrivalInitialTimeType($flight, true) @endphp @php $fnReady = $fn3 ? $fn3 : $fn2 @endphp @php $sectorReady = " | ".$dep."-".$arr."" @endphp {{--DETAILS--}} @php $ac = getFlightAircraft($flight) @endphp @php $acType = getFlightAircraftType($flight) @endphp @php $capReady = getFlightCapacityReadyString($flight) @endphp @php $bookedPaxReady = getFlightBookedPaxReadyString($flight) @endphp @php $actualPaxReady = getFlightActualPaxReadyString($flight) @endphp @php $aircraftDetails = $acType.($ac ? " | ".$ac : "") @endphp @php $fltDepDetails = $aircraftDetails." | ".$capReady.($bookedPaxReady ? " | ".$bookedPaxReady : "").($actualPaxReady ? " | ".$actualPaxReady : "") @endphp @php $fltArrDetails = $aircraftDetails." | ".$capReady.($actualPaxReady ? " | ".$actualPaxReady : "") @endphp {{--END--}} @php $flightRadarLink = ($airline ? $airline->iata ? $airline->iata : ($airline->icao ? $airline->icao : "") : "") .ltrim($flightNumber->flight_number, "0") @endphp @php $flightStatus = getFlightClassNameStrict($flight, $airline, $fltType) @endphp @php list($delayCodes, $delayTimes) = getFlightDelays($flight, true) @endphp @if (isset($isMobile) && $isMobile) @php $depSpan = departureArrivalTypeSpan($depType, null, "inline-block", "22px !important") @endphp @php $depInitialSpan = departureArrivalTypeSpan($depInitialType, null, "inline-block", "22px !important") @endphp @php $arrSpan = departureArrivalTypeSpan($arrType, null, "inline-block", "22px !important") @endphp @php $arrInitialSpan = departureArrivalTypeSpan($arrInitialType, null, "inline-block", "22px !important") @endphp @php $depInitialTxt = $depInitialSpan . "" . baseDateFormat(getFlightDepartureInitialDate($flight), true, " ", true, false, "") . "" @endphp @php $depTxt = $depSpan . "" . baseDateFormat(getFlightDepartureDate($flight), true, " ", true, false, "") . "" @endphp @php $arrInitialTxt = $arrInitialSpan . "" . baseDateFormat(getFlightArrivalInitialDate($flight), true, " ", true, false, "") . "" @endphp @php $arrTxt = $arrSpan . "" . baseDateFormat(getFlightArrivalDate($flight), true, " ", true, false, ""). "" @endphp @if ($fltType == DEPARTURE) @else @endif @else @php $depSpan = departureArrivalTypeSpan($depType, null) @endphp @php $depInitialSpan = departureArrivalTypeSpan($depInitialType, null) @endphp @php $arrSpan = departureArrivalTypeSpan($arrType, null) @endphp @php $arrInitialSpan = departureArrivalTypeSpan($arrInitialType, null) @endphp @php $depInitialTxt = $depInitialSpan . "" . baseDateFormat(getFlightDepartureInitialDate($flight), true, " ", true, false, "") . "" @endphp @php $depTxt = $depSpan . "" . baseDateFormat(getFlightDepartureDate($flight), true, " ", true, false, "") . "" @endphp @php $arrInitialTxt = $arrInitialSpan . "" . baseDateFormat(getFlightArrivalInitialDate($flight), true, " ", true, false, "") . "" @endphp @php $arrTxt = $arrSpan . "" . baseDateFormat(getFlightArrivalDate($flight), true, " ", true, false, ""). "" @endphp @endif @endforeach
Flight Details
@if ($headFltType == CANCELLED || $flight->cancelled_at)
FLIGHT CANCELLED
@endif @if (!$airlineModule)
@php $icon = strtolower($fltType)."64.png" @endphp
@endif
{{--

{{ $fn1 }}

--}}
@php $addStyles = strlen($fnReady) >= 7 ? "font-size:30px; padding: 2px 0;" : "" @endphp

{{ $fnReady }}

{{ $sectorReady }}

| {{ $aircraftDetails }}

@if ($airlineModule)

{!! $depInitialTxt." ".$depTxt ." ". $arrTxt !!} {{-- {{ $delayCodes ? "*DL ".$delayCodes : ""}}--}}

@else @if ($fltType == DEPARTURE)

{!! ($depType == $depInitialType ? "" : $depInitialTxt) ." ". $depTxt !!}

@else

{!! ($arrType == $arrInitialTxt ? "" : $arrInitialTxt) ." ". $arrTxt !!}

@endif @endif
@if ($headFltType == CANCELLED || $flight->cancelled_at)
FLIGHT CANCELLED
@endif @if (!$airlineModule)
@php $icon = strtolower($fltType)."32.png" @endphp
@endif
@php $addStyles = strlen($fnReady) >= 7 ? "font-size:15px; padding: 2px 0;" : "" @endphp

{{ $fnReady }}

{{ $sectorReady }}

| {{ $aircraftDetails }}
@if ($airlineModule)
{!! $depInitialTxt." ".$depTxt." ". $arrTxt !!} {{ $delayCodes ? "*DL ".$delayCodes : ""}}
@else @if ($fltType == DEPARTURE)
{!! ($depType == $depInitialType ? "" : $depInitialTxt) ." ". $depTxt !!}
@else
{!! ($arrType == $arrInitialType ? "" : $arrInitialTxt) ." ". $arrTxt !!}
@endif @endif