@foreach($childs as $key => $child) @if($child->node_name != 'leaf') {{ $child->text }} @if(count($child->childs) ) @include('procurement.work-order.child-layout.manage-child-edit',['childs' => $child->childs , 'parent' => $parent]) @endif @endif @endforeach