Opening Balance
{{ $transactions->isNotEmpty() ? number_format($openingBalance, 2) : number_format(0, 2) }}
Total Allocated (Credit)
{{ number_format($transactions->sum('credit_amount'), 2) }}
Total Withdrawn (Debit)
{{ number_format($transactions->sum('debit_amount'), 2) }}
Closing Balance
{{ $transactions->isNotEmpty() ? number_format($transactions->last()->running_balance ?? 0, 2) : number_format(0, 2) }}
Transaction Details
Period: {{ date('d-m-Y', strtotime($startDate)) }} to {{ date('d-m-Y', strtotime($endDate)) }}
| # | Date | Transaction Type | Description | Debit (Withdrawal) | Credit (Allocation) | Running Balance |
|---|---|---|---|---|---|---|
| {{ $counter++ }} | {{ date('d-m-Y', strtotime($transaction->transaction_date)) }} | @if($transaction->transaction_type == 'Allocation') Allocation @elseif($transaction->transaction_type == 'Withdrawal') Withdrawal @elseif($transaction->transaction_type == 'Adjustment') Adjustment @else {{ $transaction->transaction_type }} @endif | {{ $transaction->description ?? '-' }} | @if($transaction->debit_amount > 0) {{ number_format($transaction->debit_amount, 2) }} @else - @endif | @if($transaction->credit_amount > 0) {{ number_format($transaction->credit_amount, 2) }} @else - @endif | {{ number_format($runningBalance, 2) }} |
| No transactions found for the selected period. | ||||||
| Totals: | {{ number_format($transactions->sum('debit_amount'), 2) }} | {{ number_format($transactions->sum('credit_amount'), 2) }} | {{ number_format($runningBalance, 2) }} | |||