@props([ 'lines', 'openingBalance' => 0, 'closingBalance' => 0, 'emptyMessage' => 'No journal entries found.', 'tableId' => 'account-ledger-table', ]) @php use App\Support\AccountingAmounts; @endphp @if($lines->isEmpty())
{{ $emptyMessage }}
@else| Date | Reference | Memo | Debit (−) | Credit (+) | Amount | Balance | |
|---|---|---|---|---|---|---|---|
| Opening balance | {{ AccountingAmounts::formatSigned($openingBalance) }} | ||||||
| {{ optional($line->entry_date)->format('Y-m-d') ?? '—' }} | @if($line->is_general_journal) {{ $line->reference ?: '—' }} @else {{ $line->reference ?: '—' }} @endif | {{ $line->memo ?: '—' }} | {{ AccountingAmounts::formatDebit($line->debit) }} | {{ AccountingAmounts::formatCredit($line->credit) }} | {{ AccountingAmounts::formatSigned($line->signed_amount) }} | {{ AccountingAmounts::formatSigned($line->running_balance) }} | |
| Closing balance | {{ AccountingAmounts::formatSigned($closingBalance) }} | ||||||