@extends('layouts.app') @section('title','General Ledger') @section('content')

General ledger

Posted journal activity with running account balance.

@php $running=0; @endphp @forelse($lines as $line) @php $running+=(float)$line->debit-(float)$line->credit; @endphp @empty@endforelse
DateJournalReferenceDescriptionDebitCreditBalance
{{ $line->journalEntry->entry_date->format('d M Y') }}{{ $line->journalEntry->journal_no }}{{ $line->journalEntry->reference_number }}{{ $line->description }}{{ number_format((float)$line->debit,2) }}{{ number_format((float)$line->credit,2) }}{{ number_format($running,2) }}
No posted activity for this account.
@endsection