@php use Illuminate\Support\Str; @endphp
Manage Tree Structure
@foreach ($chartOfAccounts as $index => $account) {{ $chartOfAccounts->firstItem() + $index }} {{ $account->account_code }} {{ Str::limit($account->account_name, 80) }} {{ $account->accountType->type_name ?? '-' }} {{ $account->currency->currency_code ?? '-' }} {{ $account->normal_balance }} {{ $account->is_group ? 'Group' : 'Posting' }} {{ $account->is_active ? 'Active' : 'Inactive' }} @if ($account->parent) {{ $account->parent->account_code }} ยท {{ Str::limit($account->parent->account_name, 40) }} @else - @endif
@can('chart-of-account-edit') @endcan
@endforeach