@php($page = 'accounts') {{env('APP_NAME')}} | Chart of Accounts
@include("components.navbar")
@include("components.sidebar")
{{-- stats card --}}

Total Accounts

{{ number_format($data['total_accounts']) }}

Active Accounts

{{ number_format($data['active_accounts']) }}

Inactive Accounts

{{ number_format($data['inactive_accounts']) }}

{{-- filter --}}
{{-- table --}}

Chart of Accounts

@forelse ($accounts as $account) @empty @endforelse
Code Title Type Category Parent Account Balance Status Action
{{ $account->code }} @if($account->parent_id) @endif {{ $account->title }} {{ $account->type }} {{ $account->category ?? 'N/A' }} {{ $account->parent ? $account->parent->title : '-' }} ₦ {{ number_format($account->balance(), 2) }} @if($account->status == 'Active') Active @else Inactive @endif
No accounts found.
{{ $accounts->links() }}
@include("components.footer")