@php $amountColumnCount = empty($columnPeriods) ? 1 : count($columnPeriods) + 1; $tableColumnSpan = 1 + $amountColumnCount; @endphp
| @foreach($columnPeriods as $period) | {{ $period['label'] }} | @endforeachTotal |
|---|---|---|
| Gross Profit | @include('reports.profit-loss._pdf-period-amount-cells', [ 'amounts' => $totals['periods']['gross_profit'] ?? $totals['gross_profit'], 'total' => $totals['gross_profit'], ])||
| Net Operating Income | @include('reports.profit-loss._pdf-period-amount-cells', [ 'amounts' => $totals['periods']['operating_income'] ?? $totals['operating_income'], 'total' => $totals['operating_income'], ])||
| Net Income | @include('reports.profit-loss._pdf-period-amount-cells', [ 'amounts' => $totals['periods']['net_income'] ?? $totals['net_income'], 'total' => $totals['net_income'], ])