{{ __('Back') }}
@foreach($types as $type) @endforeach @foreach(($months ?? range(1, 12)) as $m) @php $rowTotal = 0; foreach ($types as $t) { $rowTotal += (float) ($monthly[$m][$t] ?? 0); } @endphp @foreach($types as $type) @endforeach @endforeach @foreach($types as $type) @endforeach
{{ __('Month') }}{{ $type }}{{ __('Month Total') }}
{{ \Carbon\Carbon::create(2000, $m, 1)->format('F') }}{{ number_format((float) ($monthly[$m][$type] ?? 0), 2) }}{{ number_format($rowTotal, 2) }}
{{ __('Total') }}{{ number_format((float) ($columnTotals[$type] ?? 0), 2) }}{{ number_format($grandTotal, 2) }}