getCurrentUser() : null; $lang = I18n::getLanguage(); $base = $adminBase ?? ''; // Prefix bis zum admin/-Ordner $rootBase = $base === '' ? '../' : ''; // Prefix bis zum Projekt-Root /** Navigation als Datenstruktur – Reihenfolge = Darstellung. */ $navGroups = [ 'nav_group_overview' => [ ['dashboard', 'index.php', 'fa-chart-pie', 'nav_dashboard'], ['reports', 'reports.php', 'fa-chart-line', 'nav_reports'], ['audit_log', 'audit_log.php', 'fa-clock-rotate-left','nav_audit_log'], ], 'nav_group_manage' => [ ['vouchers', 'vouchers.php', 'fa-ticket', 'nav_vouchers'], ['templates', 'templates.php', 'fa-layer-group', 'nav_templates'], ['import', 'import.php', 'fa-file-arrow-up', 'nav_import'], ['sites', 'sites.php', 'fa-location-dot', 'nav_sites'], ['users', 'users.php', 'fa-users', 'nav_users'], ], 'nav_group_system' => [ ['settings', 'settings.php', 'fa-sliders', 'nav_settings'], ['integrations', 'integrations.php', 'fa-plug', 'nav_integrations'], ['api_keys', 'api_keys.php', 'fa-key', 'nav_api_keys'], ['security', 'security.php', 'fa-shield-halved','nav_security'], ['backup', 'backup.php', 'fa-database', 'nav_backup'], ['update', 'update.php', 'fa-rotate', 'nav_update'], ], ]; /** Aktuellen Seitentitel für die Breadcrumb finden. */ $currentLabel = __('nav_dashboard'); foreach ($navGroups as $items) { foreach ($items as $item) { if ($item[0] === $currentPage) { $currentLabel = __($item[3]); } } } ?>
$items): ?>
  • >
/
$label): ?>