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