@if($isBalanced)
✓ Trial Balance is Balanced! Total Debits ({{ number_format($totalDebits) }}) = Total Credits ({{ number_format($totalCredits) }})
@else
⚠ Trial Balance is NOT Balanced! Difference: {{ number_format(abs($totalDebits - $totalCredits)) }}
@endif
Trial Balance
@foreach($trialBalance as $item) @endforeach
Account Code Account Name Debit (UGX) Credit (UGX)
{{ $item['name'] }} {{ $item['debit'] > 0 ? number_format($item['debit']) : '-' }} {{ $item['credit'] > 0 ? number_format($item['credit']) : '-' }}
TOTALS: {{ number_format($totalDebits) }} {{ number_format($totalCredits) }}