WuYongJie 9595267ee7
Some checks failed
Tests / PHP 8.1 (push) Has been cancelled
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
chore: 导入 Akaunting 初始源码与团队协作规则
2026-07-20 18:20:25 +08:00

21 lines
975 B
PHP

<nav class="mb-6 flex flex-wrap items-center gap-3 rounded-xl border border-gray-200 bg-white p-3 shadow-sm" aria-label="系统设置">
@foreach ([
['system-settings.users.index', '用户管理', 'people'],
['system-settings.sidebar.edit', '侧边栏管理', 'menu'],
] as [$routeName, $label, $icon])
@php $active = request()->routeIs(Str::beforeLast($routeName, '.') . '.*'); @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',
'bg-purple text-white' => $active,
'text-gray-600 hover:bg-lilac-100 hover:text-purple' => ! $active,
])
@if ($active) aria-current="page" @endif
>
<span class="material-icons-outlined text-lg" aria-hidden="true">{{ $icon }}</span>
{{ $label }}
</a>
@endforeach
</nav>