lernschiff/config/sidebar.php

81 lines
2.4 KiB
PHP

<?php
/**
* Sidebar Navigation Konfiguration — Single Source of Truth.
*
* Struktur:
* groups[]
* label — Sektionstitel
* items[]
* key — Active-State-Kennung (matched via Sidebar :active="...")
* route — Route-Name (Laravel route())
* label — Display-Text
* icon — Heroicon-Name (ohne `heroicon-o-` Prefix)
* badge — optional, numerisch oder string, in Pill rendert
* roles — optional, Array; wenn gesetzt nur für User mit einer dieser Rollen
*/
return [
'groups' => [
[
'label' => 'Hauptmenü',
'items' => [
[
'key' => 'dashboard',
'route' => 'dashboard',
'label' => 'Startseite',
'icon' => 'home',
],
[
'key' => 'subjects',
'route' => 'subjects',
'label' => 'Meine Fächer',
'icon' => 'book-open',
],
[
'key' => 'tasks',
'route' => 'tasks',
'label' => 'Aufgaben',
'icon' => 'clipboard-document-check',
'badge' => 4,
],
[
'key' => 'photo',
'route' => 'photo',
'label' => 'Foto-Hilfe',
'icon' => 'camera',
],
[
'key' => 'rewards',
'route' => 'rewards',
'label' => 'Belohnungen',
'icon' => 'trophy',
],
[
'key' => 'progress',
'route' => 'progress',
'label' => 'Fortschritt',
'icon' => 'chart-bar',
],
],
],
[
'label' => 'Mehr',
'items' => [
[
'key' => 'notifications',
'route' => 'notifications',
'label' => 'Mitteilungen',
'icon' => 'bell',
],
[
'key' => 'settings',
'route' => 'settings',
'label' => 'Einstellungen',
'icon' => 'cog-6-tooth',
],
],
],
],
];