{{--
--}}
@php $menuItems = MPCMS::getMenuItems('header-menu'); @endphp @foreach ($menuItems as $menuItem) @php $menuItem->alias = str_replace('-', '_', $menuItem->alias); $routeName = $menuItem->alias; $routeUrl = route($routeName); @endphp
{{ $menuItem->title }}
@if (!empty($menuItem->children))
@foreach ($menuItem->children as $menu) @php $menuRouteName = $menuItem->alias . '.' . $menu->alias; $menuRouteUrl = route($menuRouteName); @endphp
{{ $menu->title }}
@endforeach
@endif
@endforeach
Demands