@if (!count($airlineHours))

@lang("content.found") 0 @lang("content.records")

@else

@lang("content.list")

@php $i = 0 @endphp @foreach(/**@var App\Classes\Staff\Report\FlightStaffHours $dailyReport */ $dailyReport["data"] as $flightId => $each) @php $depDate = getFlightDepartureDate($each->flight) @endphp @php $depType = getFlightDepartureTimeType($each->flight, true) @endphp @php $depInitDate = getFlightDepartureInitialDate($each->flight) @endphp @php $depInitialType = getFlightDepartureInitialTimeType($each->flight) @endphp @php $arrDate = getFlightArrivalDate($each->flight) @endphp @php $arrType = getFlightArrivalTimeType($each->flight, true) @endphp @php $arrInitDate = getFlightArrivalInitialDate($each->flight) @endphp @php $arrInitialType = getFlightArrivalInitialTimeType($each->flight) @endphp @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 $flightNumber = $each->flight->flightNumber @endphp @php $airline = $flightNumber ? $flightNumber->airline : null @endphp @php $route = $flightNumber ? getSector($flightNumber) : null @endphp @php $serviceType = $each->serviceType @endphp @php $service_type = $serviceType == ARRIVAL_SERVICE ? "arrival_service" : "departure_service" @endphp @php $serviceData = \App\Models\Flight::getFlightsStaffServiceData($each->flight, null, true) @endphp @if ($serviceType == ARRIVAL) {{-- --}} {{-- --}} @else {{-- --}} {{-- --}} @endif @foreach($serviceData["services"] as $airlineService) @if ($airlineService->service_timings == 1) @if ($airlineService->service[$service_type] != 1) @continue @endif @php $obj = $airlineService->service @endphp @else @if ($airlineService[$service_type] != 1) @continue @endif @php $obj = $airlineService @endphp @endif @if ($serviceData["serviceType"] == DEPARTURE_SERVICE) @php $req = "dep_staff_req" @endphp @else @php $req = "arr_staff_req" @endphp @endif @php $sla = $obj->service ? $obj->service->abbr : $obj->abbr @endphp @php $k = 0 @endphp @foreach(/**@var App\Classes\Staff\Report\StaffHours $staffHours */ $each->staffList as $staffHours) @php $user = $staffHours->user @endphp @php $service = $staffHours->service @endphp @if ($service->abbr == $sla) @endif @endforeach @endforeach @endforeach {{-- @php $obj = $airlineHours["total"] @endphp --}} {{-- @php $excessClass = actualTimeAccess($obj->pTotalTime, $obj->totalTime) @endphp --}}
No @lang("content.flight_number") @lang("content.sector") @lang("content.service_type") @lang("content.type") @lang("content.date_time")
{{ ++$i }} {{ ($flightNumber ? getAirlineCode($airline)."-".$flightNumber->flight_number : "-") }} {{ ($route ? " (".$route.")" : "" ) }} @if ($serviceType == ARRIVAL) {{ $serviceType }} @else {{ $serviceType }} @endif {!! $arrInitialSpan !!} {{ $arrInitDate ? baseDateFormat($arrInitDate, true) : "" }}{!! $arrSpan !!}{{ baseDateFormat($arrDate, true) }}{!! $depInitialSpan !!} {{ $depInitDate ? baseDateFormat($depInitDate, true) : ""}} {!! $depSpan !!}{{ baseDateFormat($depDate, true) }}
{{ $sla }}-{{ $obj->{$req} }}
id}/edit") }}"> {{ ++$k.".". \App\Models\User::getStation($user)."-".$user->first_name ." ". $user->last_name }}
@endif