@foreach($menus as $menuItem) @if(!$menuItem->children->isEmpty())
{{ $menuItem->name }}
{{ $subMenuItem->name }}