@php use App\OtherModel\Menu; $menus = Menu::getMenuParent(); @endphp @foreach($menus as $menu) @if( Menu::havePermission($menu->id) == 1)
  • {{ ucwords($menu->title) }} @if(count($menu->childs))
      @include('layouts.menusub',['childs' => $menu->childs])
    @endif
  • @endif @endforeach