@extends('master.app') @section('title', 'Journal Summary') @section('body')
Journal Summary
From current tables (no ChartAccount link). Click group row to show details.
{{-- Summary cards --}}
@foreach(['Asset','Liability','Equity','Income','Expense'] as $t)
{{ $t }}
{{ number_format((float)($totals[$t]['balance'] ?? 0), 2) }}
Dr {{ number_format((float)($totals[$t]['debit'] ?? 0), 0) }} • Cr {{ number_format((float)($totals[$t]['credit'] ?? 0), 0) }}
@endforeach
{{-- Filters --}}
Reset
{{-- Table --}}
@forelse($groups as $g) @php $h = $g->header; $lang = $filters['lang'] ?? 'en'; $hname = $lang==='ps' ? ($h->title_ps ?: $h->title_en) : ($lang==='dr' ? ($h->title_dr ?: $h->title_en) : ($h->title_en ?: $h->title_ps)); @endphp @foreach($g->children as $c) @php $cname = $lang==='ps' ? ($c->title_ps ?: $c->title_en) : ($lang==='dr' ? ($c->title_dr ?: $c->title_en) : ($c->title_en ?: $c->title_ps)); @endphp @endforeach @empty @endforelse
# Name Type Debit Credit Balance
+ {{ $hname }} {{ $h->type }} {{ number_format((float)$h->debit, 2) }} {{ number_format((float)$h->credit, 2) }} {{ number_format((float)$h->balance, 2) }}
No data found.
@endsection