= e((string) $flashSuccess) ?>
= e((string) $flashError) ?>
get('auth'); $tenant = $tenant ?? null; $currentPath = current_path(); $tenantSlug = is_array($tenant) && isset($tenant['slug']) ? (string) $tenant['slug'] : ''; $tenantRole = is_array($authState) ? (string) ($authState['tenant_role'] ?? '') : ''; $hasTenantAccess = $tenantSlug !== '' && is_array($authState) && (($authState['tenant_slug'] ?? null) === $tenantSlug); $isTenantAdmin = in_array($tenantRole, ['owner', 'admin'], true); $configuredName = trim((string) ($config['name'] ?? '')); $brandName = $configuredName !== '' ? $configuredName : 'Kaffeeliste'; ?>