add reporting submenus to navbar

This commit is contained in:
Gregor Vostrak
2024-11-04 15:19:35 +01:00
committed by Constantin Graf
parent 2560619c15
commit 9c82efdf07
4 changed files with 156 additions and 32 deletions

View File

@@ -114,13 +114,27 @@ const page = usePage<{
<NavigationSidebarItem
title="Reporting"
:icon="ChartBarIcon"
:sub-items="[
{
title: 'Overview',
route: 'reporting',
},
{
title: 'Detailed',
route: 'reporting.detailed',
},
{
title: 'Shared',
route: 'reporting.shared',
},
]"
:current="
route().current('reporting') ||
route().current('reporting.detailed')
route().current('reporting.detailed') ||
route().current('reporting.shared')
"
:href="
route('reporting')
"></NavigationSidebarItem>
:href="route('reporting')">
</NavigationSidebarItem>
</ul>
</nav>