| Date |
Document |
Description |
Type |
Credit (Invoice) |
Debit (Payment) |
Balance After |
Actions |
@forelse($ledgerEntries as $entry)
| {{ $entry->entry_date?->format('d-m-Y') }} |
{{ $entry->document_number }} |
{{ $entry->description }} |
{{ $entry->entry_type === 'supplier_invoice_posting' ? 'Invoice' : 'Payment' }}
|
{{ $entry->credit_amount > 0 ? number_format($entry->credit_amount, 2) : '—' }}
|
{{ $entry->debit_amount > 0 ? number_format($entry->debit_amount, 2) : '—' }}
|
{{ number_format($entry->balance_after, 2) }}
|
@if($entry->supplierInvoice)
@endif
|
@empty
| No ledger entries found for the selected period. |
@endforelse
@if($ledgerEntries->isNotEmpty())
| Totals |
{{ number_format($totalCredit, 2) }} |
{{ number_format($totalDebit, 2) }} |
{{ number_format($closingBalance, 2) }}
|
|
@endif
@if($ledgerEntries->hasPages())
{{ $ledgerEntries->links() }}
@endif