@extends('layouts.app')
@section('title', 'Ledgers')
@section('subtitle', 'Principal books grouped by account')
@section('content')
| Account | Debits | Credits | Balance |
|---|---|---|---|
| {{ $account->code }} — {{ $account->name }} @unless ($account->is_active)Inactive@endunless | {{ $row['debit'] > 0 ? money($row['debit']) : '—' }} | {{ $row['credit'] > 0 ? money($row['credit']) : '—' }} | {{ money(abs($balance)) }} {{ $account->isDebitNormal() ? 'Dr' : 'Cr' }} |