'dashboard', 'label' => 'Dashboard', 'href' => $appBaseUrl . '/admin/dashboard.php'], ['id' => 'settings', 'label' => 'API & Tabellen', 'href' => $appBaseUrl . '/admin/settings.php'], ['id' => 'users', 'label' => 'Userverwaltung', 'href' => $appBaseUrl . '/admin/users.php'], ['id' => 'profile', 'label' => 'Mein Konto', 'href' => $appBaseUrl . '/admin/profile.php'], ]; $navActive = $navActive ?? null; $headerTabs = isset($headerTabs) ? (string)$headerTabs : ''; $hasHeaderTabs = trim($headerTabs) !== ''; $showNavLinks = !$hasHeaderTabs && !empty($navLinks); ?>