@if($account['children'] !== [])
{{ $account['id'] }}
{{ $account['code'] }}
▼{{ $account['name'] }}
{{ $account['parent_name'] ?? '—' }}
{{ __($account['type']) }}
{{ $account['is_user_associated'] ? __('Yes') : __('No') }}
{{ $account['is_stock_associated'] ? __('Yes') : __('No') }}
@foreach($account['children'] as $child)
@include('accounting.subaccounts._node', ['account' => $child, 'depth' => $depth + 1])
@endforeach
@else
{{ $account['id'] }}
{{ $account['code'] }}
{{ $account['name'] }}
{{ $account['parent_name'] ?? '—' }}
{{ __($account['type']) }}
{{ $account['is_user_associated'] ? __('Yes') : __('No') }}
{{ $account['is_stock_associated'] ? __('Yes') : __('No') }}
@endif