{{-- LOGO --}}
{{-- REPORT TITLE --}}

CLIENT STATEMENT


Client: {{ $client->surname }} {{ $client->first_name }}
Account Number: {{ $client->account_number }}
Period: {{ \Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $from)->format('d M Y') }} - {{ \Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $to)->format('d M Y') }}

@foreach($report as $section)

Account Type: {{ strtoupper($section['account']->account_type) }}

Opening Balance: {{ number_format($section['openingBalance'], 2) }}

@foreach($section['transactions'] as $t) @endforeach
Date Type Reference Method Debit Credit Balance
{{ \Carbon\Carbon::parse($t['date'])->format('d-m-Y') }} {{ $t['type'] }} {{ $t['ref'] }} {{ $t['payment_method'] }} {{ $t['debit'] > 0 ? number_format($t['debit'], 2) : '-' }} {{ $t['credit'] > 0 ? number_format($t['credit'], 2) : '-' }} {{ number_format($t['balance'], 2) }}

Closing Balance: {{ number_format($section['closingBalance'], 2) }}


@endforeach