@foreach($items as $item)
@if($item->type === \App\Models\MenuItem::TYPE_DIVIDER)
@elseif($item->type === \App\Models\MenuItem::TYPE_ITEM)
-
{{ $item->title }}
@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