@extends('layouts.app') @section('title', 'Chart of Accounts') @section('content')

Chart of Accounts

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@forelse ($tree as $root) {{-- Parent row --}} {{-- Child rows --}} @foreach ($root->childAccounts ?? [] as $child) @endforeach @empty @endforelse
Code Account Name Type Balance System Status Actions
{{ $root->account_code }} {{ $root->account_name }} {{ ucfirst($root->account_type) }} ৳ {{ number_format($root->balance, 2) }} {!! $root->is_system ? '' : '' !!} {{ $root->is_active ? 'Active' : 'Inactive' }}
@csrf
↳ {{ $child->account_code }} {{ $child->account_name }} {{ ucfirst($child->account_type) }} ৳ {{ number_format($child->balance, 2) }} {!! $child->is_system ? '' : '' !!} {{ $child->is_active ? 'Active' : 'Inactive' }}
@csrf
No accounts found.
{{-- Add Account Modal --}} @endsection