@extends('layouts.master') @section('title', $title) @section('content') @include($view . '.create')
{{ $title }} {{ __('list') }}
@can($access . '-create') Add new @endcan Refresh
@foreach ($chartAccounts as $acctype => $chartAccount) @php $counter = 0; @endphp

{{ $acctype }}

@foreach ($chartAccount as $row) @foreach ($row?->childrenRecursive as $it) @include('admin.accounting.chartOfAccount.child', [ 'item' => $it, "space" => 56 ]) @endforeach @endforeach
# Code Name Type Parent Status Action
{{ ++$counter }} {{ $row->code }} {{ $row->name }} {{ !empty($row->subType) ? $row->subType->name : '-' }} {{ $row?->prnt?->name }} @if ($row->status == 'Enabled') {{ __('Enabled') }} @else {{ __('Disabled') }} @endif
@can($access . '-update') @endcan @can($access . '-delete') @endcan
@endforeach
@endsection @section('page_js') @endsection