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

General Ledger

Export PDF Export Excel
@forelse($accounts as $account)
{{ $account['code'] }} — {{ $account['name'] }}
@foreach($account['lines'] as $line) @endforeach
DateVoucherNarrationDebitCreditBalance
{{ $line['date'] }}{{ $line['voucher_number'] }}{{ $line['narration'] }} {{ number_format($line['debit'], 2) }}{{ number_format($line['credit'], 2) }} {{ number_format($line['balance'], 2) }}
Total{{ number_format($account['total_debit'], 2) }}{{ number_format($account['total_credit'], 2) }}{{ number_format($account['closing_balance'], 2) }}
@empty

No posted entries in this period.

@endforelse @endsection