Account Statement / Journals
Account: {{ $account->title }} ({{ $account->code }})
Type: {{ $account->type }} | Category: {{ $account->category ?? 'N/A' }}
Type: {{ $account->type }} | Category: {{ $account->category ?? 'N/A' }}
| Date | Reference | Description | Debit | Credit |
|---|---|---|---|---|
| {{ $entry->created_at->format('Y-m-d H:i') }} | {{ $entry->journal ? $entry->journal->reference : 'N/A' }} | {{ $entry->description ?? ($entry->journal ? $entry->journal->description : 'N/A') }} | @if($entry->type == 'debit') {{ number_format($entry->amount, 2) }} @else - @endif | @if($entry->type == 'credit') {{ number_format($entry->amount, 2) }} @else - @endif |
| Total | {{ number_format($entries->where('type', 'debit')->sum('amount'), 2) }} | {{ number_format($entries->where('type', 'credit')->sum('amount'), 2) }} | ||
| Closing Balance | ₦ {{ number_format($account->balance(), 2) }} | |||