@if (count($groupedByFlights)) {{----}} @if ($crewType == FCM_CREW) @else @endif @foreach($groupedByFlights as $i => $each) @php $flight = $each[FLT] @endphp @if ($flight) @if ($flight->ptd && $flight->pta) @php $departure = $flight->ptd @endphp @php $arrival = $flight->pta @endphp @else @php $departure = $flight->std @endphp @php $arrival = $flight->sta @endphp @endif @endif @php $aircraft = $flight && $flight->aircraft ? $flight->aircraft : null @endphp @php $aircraftType = $aircraft && $aircraft->type ? $aircraft->type : null @endphp @if ($crewType == FCM_CREW) @php $policy = $aircraftType ? $aircraftType->policy_fcm : null @endphp @php $min = $aircraftType ? $aircraftType->min_fcm : null @endphp @else @php $policy = $aircraftType ? $aircraftType->policy_ccm : null @endphp @php $min = $aircraftType ? $aircraftType->min_ccm : null @endphp @endif @php $flightNumber = $flight ? $each[FLT]->flightNumber : null @endphp @php $depAirport = $flightNumber ? $flightNumber->departureAirport : null @endphp @php $arrAirport = $flightNumber ? $flightNumber->arrivalAirport : null @endphp @php $sector = $depAirport && $arrAirport ? $depAirport->iata."-".$arrAirport->iata : "-" @endphp {{----}} @if ($crewType == FCM_CREW)
No @lang("content.flight") @lang("content.sector") Departure Time Arrival Time FCM Requirement Crew Names
Pol MinReqActCAPT #1 CAPT #2 F/O #1 F/O #2PSR CC #2 CC #3 CC #4 CC #5 CC #6 CC #7 CC #8
{{ $i + 1 }} {{ $flightNumber->flight_number }} {{ $sector }} {{ $departure ? baseDateFormat($departure, true) : "-" }} {{ $arrival ? baseDateFormat($arrival, true) : "-" }} {{ $policy ? $policy : "-" }} {{ $min ? $min : "-" }}{{ $each[TOTAL] }}