@lang("content.list")

@foreach($dataPeriods as $each) @endforeach @php $grandTotal = 0; $j = 0; $periodTotal = [] @endphp @php /** @var \App\Classes\OperationReports\AirlineReport\AirlineData[] $data */ @endphp @foreach($data as $airlineData) @php $airline = $airlineData->getAirline() @endphp @php $picture = $airline->picture ? asset("storage/airlines/img/{$airline->picture}") : asset("/assets/img/default-airline-picture.png") @endphp @php $grandTotal += $airlineData->getTotalFlights() @endphp {{-- --}} {{-- --}} {{-- --}} {{-- --}} @foreach($dataPeriods as $each) @endforeach {{-- @php $k = 0 @endphp--}} @foreach($airlineData->getRecords() as $ap => $item) {{-- --}} @foreach($dataPeriods as $each) @php $total = $airlineData->getFlightsByStationPeriod($ap, $each) @endphp @if (!isset($periodTotal[$each])) @php $periodTotal[$each] = 0 @endphp @endif @php $periodTotal[$each] += $total @endphp @endforeach @endforeach @endforeach @if ($grandTotal) @foreach($dataPeriods as $each) @endforeach @endif
No Airline Airport Total Flights{{ $each }}
{{ ++$j }}--}} {{-- id}") }}" class="">--}} {{-- --}} {{-- --}} {{-- --}} {{-- id}") }}" class="">{{ $airline->airline }}--}} {{-- {{ $airline->airline }} - {{ $airline->iata }}/{{ $airline->icao }} {{ $airline->iata }}{{ $airline->icao }}{{ $airlineData->getTotalFlights() }}
{{ ++$k }}{{ $item->station }} {{ $item->getCounter() }}{{ $total }}
TOTAL {{ $grandTotal }}{{ isset($periodTotal[$each]) ? $periodTotal[$each] : 0 }}