@php
$grandTotalOpening = 0;
$grandTotalDr = 0;
$grandTotalCr = 0;
$grandTotalClosing = 0;
@endphp
@foreach($transactionData as $typeId => $typeData)
@if(count($typeData['accounts']) > 0)
{{ $typeData['type']->type_code }} - {{ $typeData['type']->type_name }}
@foreach($typeData['accounts'] as $accountId => $accountData)
{{ $accountData['account']->code }} - {{ $accountData['account']->account_name }}
| Date |
Description |
Reference |
DR |
CR |
Balance |
| Opening Balance: |
{{ number_format($accountData['opening_balance'], 2) }} |
@foreach($accountData['transactions'] as $row)
| {{ $row['date'] }} |
{{ $row['description'] }} |
{{ $row['reference'] }} |
{{ number_format($row['dr'], 2) }} |
{{ number_format($row['cr'], 2) }} |
{{ number_format($row['balance'], 2) }} |
@endforeach
| Account Totals: |
{{ number_format($accountData['total_dr'], 2) }} |
{{ number_format($accountData['total_cr'], 2) }} |
{{ number_format($accountData['closing_balance'], 2) }} |
@endforeach
| Account Type Totals: |
{{ number_format($typeData['total_dr'], 2) }} |
{{ number_format($typeData['total_cr'], 2) }} |
{{ number_format($typeData['total_closing'], 2) }} |
@php
$grandTotalOpening += $typeData['total_opening'];
$grandTotalDr += $typeData['total_dr'];
$grandTotalCr += $typeData['total_cr'];
$grandTotalClosing += $typeData['total_closing'];
@endphp
@endif
@endforeach
| Grand Totals: |
{{ number_format($grandTotalDr, 2) }} |
{{ number_format($grandTotalCr, 2) }} |
{{ number_format($grandTotalClosing, 2) }} |
Copyright © Melsoft (Private) Limited