用户可访问页面
@include('system_settings.partials.navigation')
先选择权限身份或指定用户,再勾选可访问页面。指定用户配置优先于角色配置;主管理员拥有全部页面权限。
@csrf @method('PATCH') @if ($errors->any())
@foreach ($errors->all() as $error)

{{ $error }}

@endforeach
@endif

{{ $subjects[$subject] }}

{{ $configured ? '当前正在使用自定义权限。' : '当前未单独配置,默认显示全部目录。保存后将启用自定义权限。' }}

@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