@extends('layouts.app') @section('title', 'Account Ledger') @section('breadcrumb')
Transaction history for each account
No transactions in this period.
| Date | Reference | Type | Description | Credit (In) | Debit (Out) | Balance | By |
|---|---|---|---|---|---|---|---|
| Opening Balance | ৳{{ number_format($openingBalance, 2) }} | ||||||
| {{ $txn->trans_date->format('d M Y') }} |
{{ $txn->reference ?? '—' }}
|
@php $badge = match($txn->type) { 'income' => 'success', 'expense' => 'danger', 'transfer' => 'info', 'sale_payment' => 'primary', 'purchase_payment' => 'warning', default => 'secondary', }; @endphp {{ $types[$txn->type] ?? $txn->type }} | {{ $txn->description ?? '—' }} | @if($txn->entry_type === 'credit') ৳{{ number_format($txn->amount, 2) }} @endif | @if($txn->entry_type === 'debit') ৳{{ number_format($txn->amount, 2) }} @endif | ৳{{ number_format($runningBalance, 2) }} | {{ $txn->creator?->name ?? 'System' }} |
| Closing Balance | ৳{{ number_format($totalCredits, 2) }} | ৳{{ number_format($totalDebits, 2) }} | ৳{{ number_format($closingBalance, 2) }} | ||||
Select an account above to view its ledger.