@foreach($childs as $key => $child)
@if($child->node_name != 'leaf')
  <option  value="{{ $child->id }}">
     {{ $child->text }}
   
      @if(count($child->childs) )
        <optgroup label="{{ $child->text }}">
          @include('procurement.work-order.child-layout.manage-child',['childs' => $child->childs])
       </optgroup>
      @endif

  </option>
@endif
@endforeach