@foreach($childs as $child) @if($child->is_active)
  • {{$child->name}} @if($child->categories()->where('show_in_menu', true)->count()) @include('partials.front.sub-categories',['childs' => $child->categories()->where('show_in_menu', true)->orderBy('priority', 'asc')->get()]) @endif
  • @endif @endforeach