{{-- # ────────────── lee_gwena ────────────── # Code by: ashley_gwena # Created: 2026-03-12 # Notes: GL accounts index with hierarchy # ─────────────────────────────────────── --}} @extends('layouts.master') @section('title', 'GL Accounts') @section('content')

GL Accounts

Hierarchical GL accounts with business flags and search.

{{ isset($accounts) ? count($accounts) : 0 }}
Records
@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@endif
Reset
Code
Name
Type
Financial Category
Trust
Business
Subaccounts
Actions
@forelse($accounts as $account) @php $hasChildren = !empty($childCounts[$account->id] ?? 0); $isParent = $hasChildren; @endphp
{{ $account->account_code }}
{{ $account->account_name }}
{{ $account->accountType?->name ?? '—' }}
{{ $account->financial_category ? ucwords(str_replace('_', ' ', $account->financial_category)) : '—' }}
{{ $account->is_trust_account ? 'Yes' : 'No' }}
{{ $account->is_business ? 'Yes' : 'No' }}
Subaccounts →
View Edit
@csrf @method('DELETE')
@empty
No accounts found.
@endforelse
@endsection