@include('modules.reports.partials.pdf-company-details')

{{ $reportData['company_name'] }}

CASHBOOK REPORT

Cashbook: {{ $reportData['cashbook']->name }} ({{ $reportData['cashbook']->account_number }})
Period: {{ $reportData['date_from'] }} - {{ $reportData['date_to'] }}
Generated: {{ $reportData['generated_at'] }}
Currency: {{ $reportData['currency']->currency_name ?? 'N/A' }} ({{ $reportData['currency']->currency_code ?? ($reportData['cashbook']->currency ?? 'N/A') }})
SUMMARY
Opening Balance {{ number_format($reportData['opening_balance'], 2) }}
Total Receipts {{ number_format($reportData['total_receipts'], 2) }}
Total Payments/Transfers {{ number_format($reportData['total_payments'], 2) }}
Closing Balance {{ number_format($reportData['closing_balance'], 2) }}
TRANSACTIONS
@forelse($reportData['transactions'] as $txn) @empty @endforelse
Date Description Ref In Out Balance
{{ $txn['date'] }}
{{ $txn['description'] }}
Type: {{ ucfirst($txn['transaction_type']) }} | Client: {{ $txn['client'] }} | Matter: {{ $txn['matter'] }}
{{ $txn['reference'] }} {{ $txn['in'] > 0 ? number_format($txn['in'], 2) : '' }} {{ $txn['out'] > 0 ? number_format($txn['out'], 2) : '' }} {{ number_format($txn['balance'], 2) }}
No transactions found.
PERIOD TOTALS {{ number_format($reportData['period_totals']['in'], 2) }} {{ number_format($reportData['period_totals']['out'], 2) }}