{!!Form::open(['method' => 'GET', 'url' => url("crew/report?reportType=FDP"), 'class'=>"form-inline", 'id' => 'formFDP' ]) !!} {{-- {!! Form::hidden('reportType', 'FDP') !!}--}} {!! Form::label('dateFrom', trans("content.from")) !!} {!! Form::text('dateFrom', \request("dateFrom") ? \request("dateFrom") : date('Y-m-d'), ['class' => 'form-control dateFrom inputDateSmall', 'required' => true]) !!} {!! Form::label('dateFrom', trans("content.to")) !!} {!! Form::text('dateTo', \request("dateTo") ? \request("dateTo") : date('Y-m-d'), ['class' => 'form-control dateTo inputDateSmall', 'required' => true]) !!} {!! Form::label('perPage', trans("content.per_page")) !!} {!! Form::select('perPage', [10 => 10, 20 => 20, 50 => 50, '' => 'All'], \request("perPage") ? \request("perPage") : 20, ['class' => 'form-control']) !!} {!! Form::submit('Submit', ['class' => 'btn btn-primary']) !!} {!! Form::close() !!}
@lang("content.within_limits") @lang("content.above_limits") {{--Apply Filter--}}
@if (count($flights))
@if ( isset($pagination ) && isset($pagination['pagination']))

@lang("content.list")

{{----}} {{----}} @php $currentPage = \request("page") ? \request("page") - 1 : 0 @endphp @php $perPage = \request("perPage") ? \request("perPage") : count($flights) @endphp @php $j = 0 @endphp @foreach($pagination['pagination'] as $i => $flight) @if ($i >= $currentPage * $perPage && $i < $currentPage * $perPage + $perPage) @php $dep = getFlightDepartureInitialDate($flight) @endphp {{--ETD Manipulate--}} @if ($flight->arrivalType == ATA) @else @endif @php $estimateCrossed = $flight->fdpEstimate && $flight->fdpEstimate > $flight->fdpMaxFlightCrew ? "color-red" : "" @endphp @php $actualCrossed = $flight->fdpActual && $flight->fdpActual > $flight->fdpMaxFlightCrew ? "color-red" : "" @endphp @php $j++ @endphp @if (isset($flight->flightWithRest) && $flight->flightWithRest) @php $flightWithRest = $flight->flightWithRest @endphp @php $restDep = getFlightDepartureInitialDate($flightWithRest) @endphp {{--ETD Manipulate--}} @if ($flightWithRest->arrivalType == ATA) @else @endif @php $estimateCrossed = $flightWithRest->fdpEstimate && $flightWithRest->fdpEstimate > $flightWithRest->fdpMaxFlightCrew ? "color-red" : "" @endphp @php $actualCrossed = $flightWithRest->fdpActual && $flightWithRest->fdpActual > $flightWithRest->fdpMaxFlightCrew ? "color-red" : "" @endphp @php $j++ @endphp @endif @endif @endforeach
No @lang("content.dept") @lang("content.ac") @lang("content.flight_number") @lang("content.route") @lang("content.departure") @lang("content.departure") @lang("content.arrival") FDP @lang("content.flight_crew") @lang("content.cabin_crew")DelayActions
@lang("content.user_defined") STD @lang("content.start") @lang("content.plan") @lang("content.est") @lang("content.act") @lang("content.calc") @lang("content.min") @lang("content.act") FDP @lang("content.min") @lang("content.act") FDP
{{ $j + 1 }} {{ date('d M y', strtotime($dep)) }} {{ $flight->aircraft ? $flight->aircraft->name : "" }} id}") }}">{{ $fltNo = $CURRENT_IATA_CODE.' '.$flight->flightNumber->flight_number }} @if ($flight->flightChild) @php $childFltNo = $flight->flightChild->flightNumber->flight_number @endphp flightChild->id}") }}">{{ '/ '.$childFltNo }} @php $fltNo .= '/ '.$childFltNo @endphp @endif @php $fltNo @endphp {{ $sector = getSector($flight->flightNumber) }} @if ($flight->flightChild) @php $sectorChild = getSector($flight->flightChild->flightNumber) @endphp {{ '-'.$routeChild }} @php $route .= "-".$routeChild @endphp @endif {{ 'LANDED' }}

{{ "" }}

{{ date('d M y, H:i', strtotime($dep)) }}

{{ date('d M y, H:i', strtotime($flight->departure)) }}

{!! departureArrivalTypeSpan($flight->departureType) !!}

{{ date('d M y, H:i', strtotime($flight->arrival)) }}

{!! departureArrivalTypeSpan($flight->arrivalType) !!}

{{ date('d M y, H:i', strtotime($flight->fdpStart)) }}

{{ $flight->fdpPlanned ? hoursToTime($flight->fdpPlanned, true) : "" }}

{{ $flight->fdpEstimate ? hoursToTime($flight->fdpEstimate, true) : "" }}

{{ $flight->fdpActual ? hoursToTime($flight->fdpActual, true) : "" }}

{{ getMinFCM($flight) }}

{{ $flight->flightCrewCounter }}

{{ hoursToTime($flight->fdpMaxFlightCrew, true) }}

{{ getMinCCM($flight) }}

{{ $flight->cabinCrewCounter }}

{{ hoursToTime($flight->fdpMaxCabinCrew, true) }}

{{ $j +1 }} {{ date('d M y', strtotime($restDep)) }} {{ $flightWithRest->aircraft ? $flightWithRest->aircraft->name : "" }} id}") }}">{{ $fltNo = $CURRENT_IATA_CODE.' '.$flightWithRest->flightNumber->flight_number }} @if ($flightWithRest->flightChild) @php $childFltNo = $flightWithRest->flightChild->flightNumber ? $flightWithRest->flightChild->flightNumber->flight_number : "" @endphp flightChild->id}") }}">{{ '/ '.$childFltNo }} @php $fltNo .= '/ '.$childFltNo @endphp @endif @php $fltNo @endphp {{ $route = getSector($flightWithRest->flightNumber) }} @if ($flightWithRest->flightChild) @php $routeChild = $flightWithRest->flightChild->flightNumber->arrival_airport @endphp {{ '-'.$routeChild }} @php $route .= '-'.$routeChild @endphp @endif @php $route @endphp {{ 'LANDED' }}

{{ "" }}

{{ date('d M y, H:i', strtotime($restDep)) }}

{{ date('d M y, H:i', strtotime($flightWithRest->departure)) }}

{!! departureArrivalTypeSpan($flightWithRest->departureType) !!}

{{ date('d M y, H:i', strtotime($flightWithRest->arrival)) }}

{!! departureArrivalTypeSpan($flightWithRest->arrivalType) !!}

{{ date('d M y, H:i', strtotime($flightWithRest->fdpStart)) }}

{{ $flightWithRest->fdpPlanned ? hoursToTime($flightWithRest->fdpPlanned, true) : "" }}

{{ $flightWithRest->fdpEstimate ? hoursToTime($flightWithRest->fdpEstimate, true) : "" }}

{{ $flightWithRest->fdpActual ? hoursToTime($flightWithRest->fdpActual, true) : "" }}

{{ getMinFCM($flightWithRest) }}

{{ $flightWithRest->flightCrewCounter }}

{{ hoursToTime($flightWithRest->fdpMaxFlightCrew, true) }}

{{ getMinCCM($flightWithRest) }}

{{ $flightWithRest->cabinCrewCounter }}

{{ hoursToTime($flightWithRest->fdpMaxCabinCrew, true) }}

{!! $pagination['pagination']->appends(request()->all())->render() !!} @endif
@endif