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

Chart of Accounts

@can('create accounts') Add Account @endcan
@foreach($accountTypes as $type) @endforeach
@forelse($accounts as $account) @empty @endforelse
Account Code Account Name Account Type Parent Account Status Actions
{{ $account->account_code }} {{ $account->account_name }} {{ $account->accountType->name }} {{ $account->parentAccount?->account_name ?? '-' }} {{ $account->is_active ? 'Active' : 'Inactive' }} @can('edit accounts') @endcan @can('delete accounts')
@csrf @method('DELETE')
@endcan
No accounts found.
@endsection