@foreach($childs as $child)
@if(count($child->categories) > 0)
@if(!in_array($child->id, $ignore_ids))
@include('partials.manage.subcategories-edit-select', ['childs' => $child->categories, 'space'=>$space+1, 'ignore_ids'=>$ignore_ids, 'id'=>$id])
@endif
@else
@if(!in_array($child->id, $ignore_ids))
@endif
@endif
@endforeach