@extends('layouts.master') @section('page_title', 'Account Type Details') @section('content')

Account Type Details

Back to List Edit

{{ $accountType->id }}

{{ $accountType->name }}

{{ $accountType->code ?? 'N/A' }}

{{ ucfirst($accountType->category ?? 'N/A') }}

{{ ucfirst($accountType->normal_balance ?? 'N/A') }}

@if(isset($accountType->is_active) && $accountType->is_active) Active @else Inactive @endif

{{ $accountType->parent->name ?? 'None' }}

{{ $accountType->created_at?->format('M d, Y H:i') ?? 'N/A' }}

{{ $accountType->description ?? 'No description provided.' }}

@if($accountType->children && $accountType->children->count() > 0)
Sub Account Types
@foreach($accountType->children as $child) @endforeach
Code Name Status Actions
{{ $child->code }} {{ $child->name }} @if($child->is_active) Active @else Inactive @endif View
@endif @if($accountType->accounts && $accountType->accounts->count() > 0)
Related Accounts
@foreach($accountType->accounts as $account) @endforeach
Code Name Current Balance Actions
{{ $account->account_code }} {{ $account->name }} {{ number_format($account->current_balance ?? 0, 2) }} View
@endif
@endsection