{{-- Account Details --}}
{{-- Totals --}}
@php
$totalDebit = $account->lines->sum('debit');
$totalCredit = $account->lines->sum('credit');
@endphp
{{-- Journal Entries --}}
{{-- Journal Modal --}}
{{-- Line Template --}}
Account Details
Back{{ $account->code }}
{{ $account->name }}
{{ ucfirst($account->type) }}
{{ $account->parent?->full_name ?: '—' }}
Current Account Totals
Total Debit: {{ number_format($totalDebit) }} |
Total Credit: {{ number_format($totalCredit) }} |
Balance: {{ number_format($totalDebit - $totalCredit) }}
Journal Entries
@if(empty($accountLines))
@endif
No journal entries found.
@else| Date | Reference | Memo | Debit | Credit | Balance |
|---|---|---|---|---|---|
| {{ optional($line->entry_date)->format('Y-m-d') ?? '—' }} | {{ $line->reference ?? '—' }} | {{-- ✅ SHOW MEMO --}}{{ $line->memo ?? '—' }} | {{ number_format($line->debit) }} | {{ number_format($line->credit) }} | {{ number_format($line->running_balance) }} |