@if ($airline)
@php $depAirport = $flightNumber->departureAirport @endphp
@php $arrAirport = $flightNumber->arrivalAirport @endphp
@php $sector = !$depAirport && !$arrAirport ? null : ($depAirport ? ($depAirport->iata ?? $depAirport->icao) : "")." - ".($arrAirport ? ($arrAirport->iata ?? $arrAirport->icao) : "") @endphp
@php $to = \request("dateTo") ? \request("dateTo") : date("Y-m-d") @endphp
@php $from = date("Y-m-d", strtotime("-1 months", strtotime($to))) @endphp
| {{ $j }} |
id}&dateFrom={$from}&dateTo={$to}") }}">
{{ $flightNumber ? getAirlineCode($airline)."-".$flightNumber->flight_number.($sector ? " (".$sector.")" : "" ) : "-" }}
|
@else
{{ ++$j }} |
|
@endif
@php $excessClass = actualTimeAccess($each->pTotalTime, $each->totalTime) @endphp
{{-- PLN | --}}
{{ $each->pTotalTime ? $each->pTotalTime : "-" }} |
{{--{!! $each->pTotalSalary ? " ".$each->pTotalSalary : "-" !!} | --}}
{{-- @foreach($periodUnique as $item)--}}
{{-- {{ isset($each->pTotalByMonthTime[$item]) ? $each->pTotalByMonthTime[$item] : "-" }} | --}}
{{--{!! isset($each->pTotalSalaryByMonth[$month]) ? " ".$each->pTotalSalaryByMonth[$month] : "-" !!} | --}}
{{-- @endforeach--}}
{{-- ACT | --}}
{{ $each->totalTime ? $each->totalTime : "-" }} |
{{--{!! $each->totalSalary ? " ".$each->totalSalary : "-" !!} | --}}
{{-- @foreach($periodUnique as $item)--}}
{{-- {{ isset($each->totalByMonthTime[$item]) ? $each->totalByMonthTime[$item] : "-" }} | --}}
{{--{!! isset($each->totalSalaryByMonth[$month]) ? " ".$each->totalSalaryByMonth[$month] : "-" !!} | --}}
{{-- @endforeach--}}