@php $level = $level ?? 1; $hasChildren = $node->children && $node->children->count(); $isRoot = is_null($node->parent_account_id); @endphp
  • {{-- Toggle --}} @if($hasChildren) @else @endif {{-- Main --}}
    {{ $node->name }} {{-- Root/Child --}} @if($isRoot) رئيسي @else فرعي @endif {{-- Status --}} @if($node->status) نشط @else غير نشط @endif
    الحالي: {{ number_format((float)($node->current_balance ?? 0), 2) }} @if($node->type) {{ $node->type->name }} @endif {{-- ✅ المسار: يوضح تبع مين بشكل نهائي --}} @if(!$isRoot) المسار: {{ $node->path }} @endif
    {{-- Actions --}}
    {{-- Children --}} @if($hasChildren) @endif