@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
هیچ گره سازمانی تعریف نشده است.