{!! Form::select("period", ["" => "Select", "default" => "Roster + 28 Days", "planned" => "Current Roster", "last7days" => "Last 7 Days", "last28days" => "Last 28 Days", "last90days"=>"Last 90 Days", "last365days" => "Last 365 Days"], \request("period"), ["class"=>"form-control singleselect marginRight"]) !!}
{!! Form::label('dateFrom', trans("content.from")) !!} {!! Form::text('dateFrom', \request("dateFrom"), ['class' => 'form-control dateFrom inputDateSmall']) !!} {!! Form::label('dateTo', trans("content.to")) !!} {!! Form::text('dateTo', \request("dateTo"), ['class' => 'form-control dateTo inputDateSmall']) !!} {!! Form::submit("Submit", ["class" => "btn btn-primary btn-sm"]) !!} {!! Form::hidden("id", \request("id")) !!}
@if (!count($userFlights))

No Results!

Not found any flight for this user

@else
@if ($rosterAndLast28Days) @php $i = 0; @endphp @foreach ($fdpPlannedFlights as $i => $fdp) @php $fdpClass = $i % 2 == 0 ? "fdp-alter" : "" @endphp @if (isset($lastReleaseTime) && $fdp->getReportTime()) @php $restTime = Calculate_Duration($lastReleaseTime, $fdp->getReportTime()) @endphp @if ($restTime) @endif @endif @foreach($fdp->getFlights() as $flight) @php $flightNumber = getFlightNumber($flight) @endphp @php $sector = getSector($flight->flightNumber) @endphp @php $class = $flight->is_standby ? 'Standby' : ($flight->is_dhc ? 'DHC' : '') @endphp @if (in_array($authUser->user_role_id, [ROLE_DEPARTMENT_ADMIN, ROLE_ADMIN, ROLE_SUPER_ADMIN]) || $authUser->edit_crew_profile) @else @endif @if ($flight->atd && $flight->atd != EMPTY_DATETIME && $flight->ata && $flight->ata != EMPTY_DATETIME) @else @endif @endforeach @php $limitCrossed = $fdp->getCurrentFdpTime() > $fdp->getMaxFdpTime() ? "fdp-crossed" : "color-green" @endphp @php $limitCrossed = "color-green" @endphp {{----}} @php $lastReleaseTime = $fdp->getReleaseTime() @endphp @endforeach {{----}} @endif {{----}} @php $j = 0; @endphp @if (!(isset($userFlights) && $userFlights->count()))

No Results!

Not found any flight for this user

@else @foreach ($fdpFlights as $i => $fdp) @php $fdpClass = $i % 2 == 0 ? "fdp-alter" : "" @endphp @if (isset($lastReportTime) && $fdp->getReleaseTime()) @php $restTime = Calculate_Duration($fdp->getReleaseTime(), $lastReportTime) @endphp @if ($restTime) @endif @endif @foreach($fdp->getFlights() as $flight) @php $class = $flight->is_standby ? 'Standby' : ($flight->is_dhc ? 'DHC' : '') @endphp @php $flightNumber = getFlightNumber($flight) @endphp @php $sector = getFlightSector($flight) @endphp @if (in_array($authUser->user_role_id, [ROLE_DEPARTMENT_ADMIN, ROLE_ADMIN, ROLE_SUPER_ADMIN]) || $authUser->edit_crew_profile) @else @endif @if ($flight->atd && $flight->atd != EMPTY_DATETIME && $flight->ata && $flight->ata != EMPTY_DATETIME) @php $diff = CalculateDifference($flight->std, $flight->atd) @endphp @php $actualClass = "success" @endphp @if ($diff > 3) @php $actualClass = "danger" @endphp @endif @php $diff = CalculateDifference($flight->std, $flight->atd) @endphp @php $actualClass = "success" @endphp @if ($diff > 3) @php $actualClass = "danger" @endphp @endif @else @endif @endforeach @php $limitCrossed = $fdp->getCurrentFdpTime() > $fdp->getMaxFdpTime() ? "fdp-crossed" : "color-green" @endphp @php $limitCrossed = "color-green" @endphp {{----}} @php $lastReportTime = $fdp->getReportTime() @endphp @endforeach @endif
No. @lang("content.status") @lang("content.aircraft") @lang("content.flight") @lang("content.route") @lang("content.report_datetime") @lang("content.departure_datetime") @lang("content.arrival_datetime") @lang("content.release_datetime") @lang("content.duration") @lang("content.hours")
@lang("content.other") @lang("content.block_hours") @lang("content.flight_hours") FDP @lang("content.total")
@lang("content.rest_period") {{ hoursToDayHourTime($restTime, true) }}
{{ ++$i}} {!! $class !!}aircraft_id}/edit" }}">{{ $flight->aircraft_name }} id}") }}">{{ $flightNumber }}{{ $flight->aircraft_name }} {{ $flightNumber }}{{ $sector }} {{ $flight->id == $fdp->getFirstFlight()->id ? dmy_format($fdp->getReportTime(), 'time') : "" }}ATD{{ dmy_format($flight->atd, 'time') }} ATA{{ dmy_format($flight->ata, 'time') }}STD{{ dmy_format($flight->std, 'time') }} STA{{ dmy_format($flight->sta, 'time') }}{{ $flight->id == $fdp->getLastFlight()->id ? dmy_format($fdp->getReleaseTime(), 'time') : "" }} {{ $flight->other_time == 0 ? "-" : hoursToTime($flight->other_time, true) }} {{ $flight->flight_time == 0 ? "-" : hoursToTime($flight->flight_time, true) }} {{ $flight->flying_time == 0 ? "-" : hoursToTime($flight->flying_time, true) }}
FDP @lang("content.total") {{ hoursToTime($fdp->getOtherTime(), true) }} {{ hoursToTime($fdp->getFlightTime(), true) }} {{ hoursToTime($fdp->getFlyingTime(), true) }} {{ hoursToTime($fdp->getCurrentFdpTime(), true) }}{{ hoursToTime($fdp->getMaxFdpTime(), true) }}
PLANNED ROSTER @lang("content.total") {{ $fdpPlannedFlightsTotal->other_time == 0 ? "-" : hoursToTime($fdpPlannedFlightsTotal->other_time, true) }} {{ $fdpPlannedFlightsTotal->flight_time == 0 ? "-" : hoursToTime($fdpPlannedFlightsTotal->flight_time, true) }} {{ $fdpPlannedFlightsTotal->flying_time == 0 ? "-" : hoursToTime($fdpPlannedFlightsTotal->flying_time, true) }} {{ $fdpPlannedFlightsTotal->fdp_total_time == 0 ? "-" : hoursToTime($fdpPlannedFlightsTotal->fdp_total_time, true) }}{{ $fdpPlannedFlightsTotal->fdp_max_time == 0 ? "-" : hoursToTime($fdpFlightsTotal->fdp_max_time, true) }}
{{$label}} {{ $fdpFlightsTotal->other_time == 0 ? "-" : hoursToTime($fdpFlightsTotal->other_time, true) }} {{ $fdpFlightsTotal->flight_time == 0 ? "-" : hoursToTime($fdpFlightsTotal->flight_time, true) }} {{ $fdpFlightsTotal->flying_time == 0 ? "-" : hoursToTime($fdpFlightsTotal->flying_time, true) }} {{ $fdpFlightsTotal->fdp_total_time == 0 ? "-" : hoursToTime($fdpFlightsTotal->fdp_total_time, true) }}{{ $fdpFlightsTotal->fdp_max_time == 0 ? "-" : hoursToTime($fdpFlightsTotal->fdp_max_time, true) }}
@lang("content.rest_period") {{ hoursToDayHourTime($restTime, true) }}
{{ ++$j}} {!! $class !!}aircraft_id}/edit" }}">{{ $flight->aircraft_name }} id}") }}">{{ $flightNumber }}{{ $flight->aircraft_name }} {{ $flightNumber }}{{ $sector }} {{ $flight->id == $fdp->getFirstFlight()->id ? dmy_format($fdp->getReportTime(), 'time') : "" }}ATD{{ dmy_format($flight->atd, 'time') }}ATA{{ dmy_format($flight->ata, 'time') }}STD{{ dmy_format($flight->std, 'time') }} STA{{ dmy_format($flight->sta, 'time') }}{{ $flight->id == $fdp->getLastFlight()->id ? dmy_format($fdp->getReleaseTime(), 'time') : "" }} {{ $flight->other_time == 0 ? "-" : hoursToTime($flight->other_time, true) }} {{ $flight->flight_time == 0 ? "-" : hoursToTime($flight->flight_time, true) }} {{ $flight->flying_time == 0 ? "-" : hoursToTime($flight->flying_time, true) }}
FDP @lang("content.total") {{ hoursToTime($fdp->getOtherTime(), true) }} {{ hoursToTime($fdp->getFlightTime(), true) }} {{ hoursToTime($fdp->getFlyingTime(), true) }} {{ hoursToTime($fdp->getCurrentFdpTime(), true) }}{{ hoursToTime($fdp->getMaxFdpTime(), true) }}
@endif