@include('reporting.income_statement._section', ['sec'=>$revenue, 'role'=>'revenue', 'meta'=>$roleMeta('revenue'), 'name'=>$name])
@include('reporting.income_statement._section', ['sec'=>$cogs, 'role'=>'cogs', 'meta'=>$roleMeta('cogs'), 'name'=>$name])
@include('reporting.income_statement._section', ['sec'=>$opex, 'role'=>'opex', 'meta'=>$roleMeta('opex'), 'name'=>$name])
@include('reporting.income_statement._section', ['sec'=>$taxes, 'role'=>'tax', 'meta'=>$roleMeta('tax'), 'name'=>$name])
Summary
{{ $net>=0 ? 'Profit' : 'Loss' }}
Revenue
{{ $fmt($totals['revenue'] ?? 0) }}
COGS
{{ $fmt($totals['cogs'] ?? 0) }}
Gross Profit
{{ $fmt($totals['gross'] ?? 0) }}
Operating Expenses
{{ $fmt($totals['opex'] ?? 0) }}
Operating Profit
{{ $fmt($totals['op_profit'] ?? 0) }}
Taxes
{{ $fmt($totals['tax'] ?? 0) }}
Net Profit / Loss
{{ $fmt($totals['net'] ?? 0) }}
Notes: COGS from customer_bill_items.cost_total.