@php $amountColumnCount = empty($columnPeriods) ? 1 : count($columnPeriods) + 1; $tableColumnSpan = 1 + $amountColumnCount; @endphp Profit & Loss
{{ $companyName }}
Profit & Loss
{{ $periodLabel }}
@if(!empty($columnPeriods)) @foreach($columnPeriods as $period) @endforeach @endif @foreach(['income', 'cost_of_goods_sold'] as $section) @include('reports.profit-loss._pdf-section', ['group' => $groups[$section]]) @endforeach @include('reports.profit-loss._pdf-period-amount-cells', [ 'amounts' => $totals['periods']['gross_profit'] ?? $totals['gross_profit'], 'total' => $totals['gross_profit'], ]) @include('reports.profit-loss._pdf-section', ['group' => $groups['expenses']]) @include('reports.profit-loss._pdf-period-amount-cells', [ 'amounts' => $totals['periods']['operating_income'] ?? $totals['operating_income'], 'total' => $totals['operating_income'], ]) @foreach(['other_income', 'other_expense'] as $section) @include('reports.profit-loss._pdf-section', ['group' => $groups[$section]]) @endforeach @include('reports.profit-loss._pdf-period-amount-cells', [ 'amounts' => $totals['periods']['net_income'] ?? $totals['net_income'], 'total' => $totals['net_income'], ])
{{ $period['label'] }}Total
Gross Profit
Net Operating Income
Net Income