Group the main menu into role-aware popover groups
Replace the flat link row with disclosure groups (Työt, Oma kirjaus, Asiakkaat ja myynti, Hallinto, Ylläpito) built by App\View\MainMenu from Gate abilities, and add menu links for new job, quick sales list and workflow templates. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
{{-- Main menu link. The current page is marked with aria-current and an underline, not colour alone. --}}
|
||||
@php($current = request()->routeIs(...(array) $pattern))
|
||||
|
||||
<a
|
||||
href="{{ route($route) }}"
|
||||
wire:navigate
|
||||
@if ($current) aria-current="page" @endif
|
||||
@class([
|
||||
'rounded-md px-3 py-2 text-sm font-medium focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700',
|
||||
'text-zinc-900 underline decoration-2 underline-offset-8 dark:text-white' => $current,
|
||||
'text-zinc-600 hover:bg-zinc-100 hover:text-zinc-900 dark:text-zinc-300 dark:hover:bg-zinc-700 dark:hover:text-white' => ! $current,
|
||||
])
|
||||
>
|
||||
{{ $label }}
|
||||
</a>
|
||||
Reference in New Issue
Block a user