@php $profitTone = $totals['profit_cents'] < 0 ? 'is-danger' : 'is-success'; $query = request()->only(['period', 'from', 'to']); @endphp
Incoming {{ $accounts->money($totals['incoming_cents']) }} {{ $totals['orders_count'] }} paid order{{ $totals['orders_count'] === 1 ? '' : 's' }}@if($totals['other_income_cents']) + {{ $accounts->money($totals['other_income_cents']) }} other @endif Outgoing {{ $accounts->money($totals['outgoing_cents']) }} Order costs + expenses Expenses {{ $accounts->money($totals['expenses_cents']) }} {{ count($totals['expenses_by_category']) }} categor{{ count($totals['expenses_by_category']) === 1 ? 'y' : 'ies' }} {{ $totals['profit_cents'] < 0 ? 'Loss' : 'Profit' }} {{ $accounts->money($totals['profit_cents']) }} {{ $totals['margin_bps'] === null ? 'No income yet' : number_format($totals['margin_bps'] / 100, 1).'% of incoming' }}