LuminaWebsite/dashboard.php
Maaxxs 5811019908 Redesign the logged-in area with a left icon sidebar layout
Replaces the top navbar with a fixed vertical sidebar (brand, nav
links with inline SVG icons, active-link highlighting, user info and
logout pinned to the bottom) for a more modern dashboard feel. Public
pages (login, install, logged-out landing) keep the simple top bar.
Collapses to an icon-only horizontal bar under 860px since there's no
JS toggle. Dashboard quick-links get matching icon badges.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-18 06:52:19 +02:00

43 lines
1.5 KiB
PHP

<?php
require_once __DIR__ . '/includes/bootstrap.php';
require_permission('dashboard.view');
$user = current_user();
$canViewUsers = user_has_permission('users.view');
$canManageRoles = user_has_permission('roles.manage');
$pageTitle = 'Dashboard';
include __DIR__ . '/includes/header.php';
?>
<div class="panel">
<h1>Willkommen, <?= e($user['display_name'] !== '' ? $user['display_name'] : $user['username']) ?>!</h1>
<p class="text-muted">Dies ist dein Mitgliederbereich. Die eigentliche Gilden-Homepage folgt hier spaeter.</p>
</div>
<?php if ($canViewUsers || $canManageRoles): ?>
<div class="panel">
<h2>Administration</h2>
<div class="card-grid">
<?php if ($canViewUsers): ?>
<div class="panel stat-card">
<div class="icon-badge"><?= icon('users') ?></div>
<div>
<h3>Benutzerverwaltung</h3>
<p class="text-muted"><a href="/admin/users.php">Mitglieder anlegen, bearbeiten, deaktivieren</a></p>
</div>
</div>
<?php endif; ?>
<?php if ($canManageRoles): ?>
<div class="panel stat-card">
<div class="icon-badge"><?= icon('shield') ?></div>
<div>
<h3>Berechtigungsgruppen</h3>
<p class="text-muted"><a href="/admin/roles.php">Rollen und Berechtigungen verwalten</a></p>
</div>
</div>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<?php include __DIR__ . '/includes/footer.php'; ?>