@foreach($menu_items as $key=>$item) @php $class = ""; if($item->id == $parent || $cur_url == $item->route) $class .= 'mm-active '; if($depth>0 && !isset($item->children)) $class .= 'nav-item '; @endphp @if(auth('admin')->user()->can($item->permission_name))
  • children)) href="#" @else href="{{route($item->route)}}" @endif @if($depth>0) class="nav-link" @endif> {!! stripslashes($item->icon) !!}{{$item->name}} @if(isset($item->children)) @endif @if(isset($item->children)) @endif
  • @endif @endforeach