<?php
session_start();
include __DIR__ . '/includes/admin_header.php';
?>
<section class="content-card center-text">
  <h1 class="admin-title">🛡 Admin Dashboard</h1>
  <p style="opacity:.85;margin-top:-6px;">
    Logged in as <strong><?= htmlspecialchars($_SESSION['user'] ?? '') ?></strong>
    (role: <?= htmlspecialchars($_SESSION['role'] ?? '') ?>)
    • <a href="/admin/logout.php" class="admin-btn" style="margin-left:8px;">Logout</a>
  </p>
</section>

<section class="content-card">
  <div class="admin-grid">
    <a class="admin-card-link" href="/admin/about.php">ℹ️ About</a>
    <a class="admin-card-link" href="/admin/news.php">📰 News</a>
    <a class="admin-card-link" href="/admin/schedule.php">📅 Schedule</a>
    <a class="admin-card-link" href="/admin/djs.php">🎙️ DJs</a>
    <a class="admin-card-link" href="/admin/friends.php">🤝 Friends</a>

    <a class="admin-card-link" href="/admin/requests.php">🎶 Requests</a>
    <a class="admin-card-link" href="/admin/applications.php">📝 Applications</a>
    <a class="admin-card-link" href="/admin/contact.php">📨 Contact</a>

    <a class="admin-card-link" href="/admin/comments.php">💬 Comments</a>
    <a class="admin-card-link" href="/admin/poll.php">📊 Poll</a>

    <a class="admin-card-link" href="/admin/radiostats.php">📡 Radio Stats</a>

    <?php if (($_SESSION['role'] ?? '') === 'admin'): ?>
      <a class="admin-card-link" href="/admin/users.php">👤 User Management</a>
    <?php endif; ?>
  </div>
</section>

<?php include __DIR__ . '/includes/admin_footer.php'; ?>
