@foreach($items as $item)
@if($item->type === \App\Models\MenuItem::TYPE_DIVIDER)
@else
@endif
@foreach($item->childs as $child)
-
@empty($child->url)
{{ $child->title ?? $child->divider_title }}
@continue;
@endempty
@if(\Illuminate\Support\Str::contains($child->url, 'app/pages'))
@if(!request()->user()->site_scope || request()->user()->site_scope & division(\Illuminate\Support\Str::of($child->url)->substr(10)))
{{ $child->title }}
@endif
@else
{{ $child->title }}
@endif
@endforeach
@endforeach
{{--@foreach($items as $divider)
@foreach($divider->menu_items as $item)
@if($item->childs->isEmpty())
@if(\Illuminate\Support\Str::contains($item->url, 'app/pages'))
@if(!request()->user()->site_scope || request()->user()->site_scope & division(\Illuminate\Support\Str::of($item->url)->substr(10)))
-
{{ $item->title }}
@endif
@else
-
{{ $item->title }}
@endif
@else
--}}{{--- childs as $child)
@if (Request::is(ltrim($child->url,'/').'*'))
class="mm-active"
@break
@endif
@endforeach
>
{{ $item->title }}
--}}{{--
@endif
@endforeach
@endforeach--}}