@if (session()->has('success'))
{{ session('success') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif

درخت سازمانی

@forelse($nodes as $node) @if($node->level == 1)
{{ $this->getNodeTypeLabel($node->type) }} {{ $node->name }} ({{ $node->code }})
@php $children = $nodes->where('parent_id', $node->id); @endphp @foreach($children as $child)
{{ $this->getNodeTypeLabel($child->type) }} {{ $child->name }} ({{ $child->code }})
@php $grandChildren = $nodes->where('parent_id', $child->id); @endphp @foreach($grandChildren as $gc)
{{ $this->getNodeTypeLabel($gc->type) }} {{ $gc->name }} ({{ $gc->code }})
@endforeach
@endforeach
@endif @empty

هیچ گره سازمانی تعریف نشده است.

@endforelse
@if($showModal)

{{ $editMode ? 'ویرایش گره' : 'افزودن گره جدید' }}

@error('nodeForm.name') {{ $message }} @enderror
@error('nodeForm.code') {{ $message }} @enderror
@endif