@if(!$profit['missing_rate'])

Combined Profit & Loss — USD Equivalent

IncomeUSD {{ number_format($profit['combined']['revenue'],2) }}
ExpensesUSD {{ number_format($profit['combined']['cost']+$profit['combined']['expenses'],2) }}
Net ProfitUSD {{ number_format($profit['combined']['profit'],2) }}
@endif @foreach(['USD','SSP'] as $currency)@php($values=$profit['native'][$currency])

Profit & Loss Statement — {{ $currency }}

Income{{ $currency }} {{ number_format($values['revenue'],2) }}
Expenses{{ $currency }} {{ number_format($values['cost']+$values['expenses'],2) }}
Net Profit{{ $currency }} {{ number_format($values['profit'],2) }}
@forelse($profit['accounts'] as $account)@if(abs($account[$currency])>0.001)@endif @empty@endforelse
AccountTypeAmount ({{ $currency }})
{{ $account['name'] }}{{ $account['type'] }}{{ number_format($account[$currency],2) }}
No posted income or expenses in this period.
Total Income{{ number_format($values['revenue'],2) }}
Total Expenses{{ number_format($values['cost']+$values['expenses'],2) }}
Net Profit / (Loss){{ number_format($values['profit'],2) }}
@endforeach @if($profit['missing_rate'])
Combined USD totals are unavailable because some SSP entries have no recorded exchange rate. The separate currency statements above remain available.
@else
Combined USD figures use each transaction’s saved exchange rate. The currency statements retain the original amounts.
@endif