用户可访问页面
@include('system_settings.partials.navigation')
优先按分组设置页面。同一用户的多个分组权限合并,用户单独配置覆盖分组;主管理员始终拥有全部页面权限。
@csrf @method('PATCH') @if ($errors->any())
@foreach ($errors->all() as $error)

{{ $error }}

@endforeach
@endif

{{ $subjects[$subject] }}

{{ $source }}

@if ($canInherit && $configured)

当前为用户自定义权限,分组变化不会覆盖此配置。

@endif
@foreach ($navigation as $section)
{{ $section['icon'] }} {{ $section['title'] }} 点击展开二级目录 expand_more
@if (! empty($section['pages']))
@foreach (collect($section['pages'])->flatMap(fn ($entry) => empty($entry['children']) ? [$entry] : $entry['children']) as $page) @php $pageKey = $section['slug'] . '/' . $page['slug']; @endphp @endforeach
@else

此一级目录没有二级目录。

@endif
@endforeach
@if ($canInherit && $configured) @endif