@extends('layouts.master') @section('page_title', 'Trial Balance Report') @section('content')
| Account Code | Account Name | Account Type | Debit Balance | Credit Balance |
|---|---|---|---|---|
| {{ $account->code }} | {{ $account->name }} | {{ $account->accountType->name ?? 'N/A' }} | @if(($account->debit_balance ?? 0) > 0) {{ number_format($account->debit_balance, 2) }} @else - @endif | @if(($account->credit_balance ?? 0) > 0) {{ number_format($account->credit_balance, 2) }} @else - @endif |
| No accounts found | ||||
| TOTALS | {{ number_format($totalDebits, 2) }} | {{ number_format($totalCredits, 2) }} | ||
| DIFFERENCE | {{ number_format($totalDebits - $totalCredits, 2) }} @if(abs($totalDebits - $totalCredits) < 0.01) @else @endif | |||