@extends('layouts.admin') @section('title', 'Chart of Accounts') @section('page-title', 'Chart of Accounts') @section('header-actions') add New Account @endsection @section('content')
@forelse($accounts as $account) @empty @endforelse
Code Name Type Category Balance Status Actions
{{ $account->code }} {{ $account->name }} {{ ucfirst($account->type) }} {{ $account->category ?? '-' }} {{ number_format($account->current_balance, 2) }} {{ $account->is_active ? 'Active' : 'Inactive' }}
edit @if(!$account->is_system)
@csrf @method('DELETE')
@endif
account_tree

No accounts found

@if($accounts->hasPages())
{{ $accounts->links() }}
@endif
@endsection