{{ $company ?? 'Medical Center' }}
Trial Balance Report
Period: {{ $data['period']['start'] ?? 'N/A' }} to {{ $data['period']['end'] ?? 'N/A' }}
@foreach($data['accounts'] ?? [] as $account) @php $accountData = (array)$account; @endphp @endforeach
Account Code Account Name Opening Debit Opening Credit Period Debit Period Credit Closing Debit Closing Credit
{{ $accountData['account_code'] ?? '-' }} {{ $accountData['account_name'] ?? '-' }} {{ number_format($accountData['opening_debit'] ?? 0, 2) }} {{ number_format($accountData['opening_credit'] ?? 0, 2) }} {{ number_format(($accountData['total_debit'] ?? 0) - ($accountData['opening_debit'] ?? 0), 2) }} {{ number_format(($accountData['total_credit'] ?? 0) - ($accountData['opening_credit'] ?? 0), 2) }} {{ number_format($accountData['closing_debit'] ?? 0, 2) }} {{ number_format($accountData['closing_credit'] ?? 0, 2) }}
TOTALS {{ number_format($data['totals']['opening_debit'] ?? 0, 2) }} {{ number_format($data['totals']['opening_credit'] ?? 0, 2) }} {{ number_format(($data['totals']['period_debit'] ?? 0) - ($data['totals']['opening_debit'] ?? 0), 2) }} {{ number_format(($data['totals']['period_credit'] ?? 0) - ($data['totals']['opening_credit'] ?? 0), 2) }} {{ number_format($data['totals']['closing_debit'] ?? 0, 2) }} {{ number_format($data['totals']['closing_credit'] ?? 0, 2) }}