@extends('layouts.app') @section('content')
| Code | Account Name | Type | Debit Balance | Credit Balance |
|---|---|---|---|---|
| {{ $account->code }} | {{ $account->name }} | {{ $account->type }} | @if($account->debit_balance > 0) {{ number_format($account->debit_balance, 2) }} @else - @endif | @if($account->credit_balance > 0) {{ number_format($account->credit_balance, 2) }} @else - @endif |
| No account balances found | ||||
| Total: | {{ number_format($totalDebit, 2) }} | {{ number_format($totalCredit, 2) }} | ||
| Difference: | {{ number_format(abs($totalDebit - $totalCredit), 2) }} @if(abs($totalDebit - $totalCredit) < 0.01) Balanced @else Not Balanced @endif | |||