31 lines
1.6 KiB
PHP
31 lines
1.6 KiB
PHP
@include('system_settings.partials.styles')
|
|
@include('system_settings.partials.navigation-script')
|
|
@include('system_settings.partials.workflow-reviewers-script')
|
|
<nav class="mb-6 flex flex-wrap items-center gap-3 border-b border-gray-200 bg-white p-3" aria-label="系统设置">
|
|
@php
|
|
$items = [
|
|
['system-settings.users.index', '用户管理', 'people'],
|
|
['system-settings.dingtalk-bindings.index', '钉钉绑定', 'admin_panel_settings'],
|
|
['system-settings.permissions.index', '权限管理', 'admin_panel_settings'],
|
|
['system-settings.workflow-reviewers.index', '流程审核权限', 'fact_check'],
|
|
['system-settings.databases.index', '数据库管理', 'storage'],
|
|
];
|
|
@endphp
|
|
|
|
@foreach ($items as [$routeName, $label, $icon])
|
|
@php $active = request()->routeIs(Str::beforeLast($routeName, '.') . '.*') || ($routeName === 'system-settings.permissions.index' && request()->routeIs('system-settings.sidebar.*')) || ($routeName === 'system-settings.users.index' && request()->routeIs('system-settings.groups.*')); @endphp
|
|
<a
|
|
href="{{ route($routeName) }}"
|
|
@class([
|
|
'inline-flex items-center gap-2 rounded-lg px-4 py-2.5 text-sm font-semibold transition-colors',
|
|
'settings-nav-active' => $active,
|
|
'text-gray-600 settings-nav-hover' => ! $active,
|
|
])
|
|
@if ($active) aria-current="page" @endif
|
|
>
|
|
<span class="material-icons-outlined text-lg" aria-hidden="true">{{ $icon }}</span>
|
|
{{ $label }}
|
|
</a>
|
|
@endforeach
|
|
</nav>
|