@php $grandTotal = 0 @endphp
@php /** @var \App\Classes\OperationReports\AirlineReport\PeriodData[] $data */ @endphp
@foreach($data as $periodData)
|
|
{{ $periodData->getPeriod() }} |
|
|
|
@php $j = 0; $total = 0; @endphp
@foreach($periodData->getRecords() as $each)
@php $total += $each->getCounter() @endphp
@php $airline = $each->getAirline() @endphp
@php $picture = $airline->picture ? asset("storage/airlines/img/{$airline->picture}") : asset("/assets/img/default-airline-picture.png") @endphp
{{ ++$j }} |
id}") }}" class="">
|
id}") }}" class="">{{ $airline->airline }}
|
{{ $airline->iata }} |
{{ $airline->icao }} |
{{ $each->getCounter() }} |
@endforeach
|
|
|
|
TOTAL |
{{ $total }} |
@php $grandTotal += $total @endphp
@endforeach
@if ($grandTotal)
|
|
|
|
GRAND TOTAL |
{{ $grandTotal }} |
@endif