@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) @php $total = $airlineData->getFlightsByPeriod($each) @endphp @if (!isset($periodTotal[$each])) @php $periodTotal[$each] = 0 @endphp @endif @php $periodTotal[$each] += $total @endphp @endforeach @endforeach @if ($grandTotal) @foreach($dataPeriods as $each) @endforeach @endif
No Logo Airline IATA ICAO Total Flights{{ $each }}
{{ ++$j }} id}") }}" class=""> id}") }}" class="">{{ $airline->airline }} {{ $airline->iata }} {{ $airline->icao }} {{ $airlineData->getTotalFlights() }}{{ $total }}
TOTAL {{ $grandTotal }}{{ isset($periodTotal[$each]) ? $periodTotal[$each] : 0 }}