{{ $accountHead->name }} Details
Account Summary
Opening Balance: {{ number_format($openingBalance, 2) }}
Total Debit: {{ number_format($totalDebit, 2) }}
Total Credit: {{ number_format($totalCredit, 2) }}
Closing Balance: {{ number_format($closingBalance, 2) }}
@foreach($transactions as $transaction) @endforeach
Date Voucher No Description Reference Debit Credit Balance
{{ $transaction->voucher->date->format('Y-m-d') }} {{ $transaction->voucher->voucher_no }} {{ $transaction->note }} {{ $transaction->reference }} {{ $transaction->entry_type === 'debit' ? number_format($transaction->amount, 2) : '-' }} {{ $transaction->entry_type === 'credit' ? number_format($transaction->amount, 2) : '-' }} {{ number_format($transaction->running_balance, 2) }}