@extends('dashboard.layouts.app') @section('content')
Account Details: {{ $account->title }}
Code: {{ $account->code }}
Account Name Arabic: {{ $account->title }}
Account Name English: {{ $account->name_en ?: '-' }}
Slug: {{ $account->slug }}
Status: {{ $account->status }}
Parent Account: {{ $account->parent ? $account->parent->title : 'Root' }}
Account Type: {{ \App\Services\ChartOfAccountService::ACCOUNT_TYPES[$account->account_type] ?? 'Not set' }}
Account Subtype: {{ \App\Services\ChartOfAccountService::ACCOUNT_SUBTYPES[$account->account_subtype] ?? 'Not set' }}
Account Nature: {{ \App\Services\ChartOfAccountService::ACCOUNT_NATURES[$account->account_nature] ?? 'Not set' }}
Nature Inherited: {{ $account->is_nature_inherited ? 'Yes' : 'No' }}
Child Accounts: {{ $account->children_count }}
Created By: {{ $account->creator ? $account->creator->name : 'System' }}
Created At: {{ $account->created_at }}
@if($account->children->count() > 0)
Child Accounts
@foreach($account->children as $child) {{ $child->code }} {{ $child->title }} {{ \App\Services\ChartOfAccountService::ACCOUNT_SUBTYPES[$child->account_subtype] ?? 'Not set' }} {{ \App\Services\ChartOfAccountService::ACCOUNT_NATURES[$child->account_nature] ?? 'Not set' }} {{ $child->status }} @endforeach @endif
@endsection