@extends('layouts.app') @section('title','General Ledger') @section('content')
@if($accountId && $ledger->count())
@php $runDebit=0;$runCredit=0; @endphp @foreach($ledger as $line) @php $runDebit+=$line->debit;$runCredit+=$line->credit; @endphp @endforeach
DateVoucherNarrationDebitCredit
{{ $line->journalEntry->posting_date->format('d M Y') }} {{ $line->journalEntry->voucher_number }} {{ $line->journalEntry->narration ?? $line->description }} {{ $line->debit > 0 ? '৳'.number_format($line->debit,2) : '' }} {{ $line->credit > 0 ? '৳'.number_format($line->credit,2) : '' }}
Totals ৳{{ number_format($runDebit,2) }} ৳{{ number_format($runCredit,2) }}
@elseif($accountId)
No transactions found for selected account in this period.
@endif @endsection