{{-- ✅ ORGANIZATION LOGO --}}

SAVINGS ACCOUNT STATEMENT

Account Number: {{ $account->account_number }}
Client Name: {{ $account->client->surname ?? 'N/A' }} {{ $account->client->first_name ?? 'N/A' }} {{ $account->client->other_names ?? 'N/A' }}
Period: {{ $request->from }} to {{ $request->to }}

@foreach($transactions as $trx) @endforeach
Date Type Remarks Debit Credit Balance
{{ $trx->created_at->format('d-m-Y') }} {{ strtoupper(str_replace('_',' ', $trx->type)) }} {{ $trx->remarks }} {{ in_array($trx->type, ['withdrawal','loan_repayment']) ? number_format($trx->amount,2) : '0.00' }} {{ in_array($trx->type, ['deposit','interest_credit']) ? number_format($trx->amount,2) : '0.00' }} {{ number_format($trx->balance_after,2) }}

Generated: {{ now() }}