<?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/fans.php">⭐ Fans</a>
    <a class="admin-card-link" href="/admin/pages.php">🧩 Pages</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/chat.php">💬 Live Chat</a>
    <a class="admin-card-link" href="/admin/events.php">🎉 Events</a>
    <a class="admin-card-link" href="/admin/media.php">🖼️ Media Library</a>
    <a class="admin-card-link" href="/admin/backup.php">🧰 Backup/Restore</a>
    <a class="admin-card-link" href="/admin/poll.php">📊 Poll</a>

    <a class="admin-card-link" href="/admin/westats.php">📈 Web Stats</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; ?>
  

    <a class="admin-card-link" href="http://cr3.broadcasturself.com:1982/status.xsl" target="_blank" rel="noopener">📈 Icecast Status</a>
    <a class="admin-card-link" href="https://broadcasturself.com" target="_blank" rel="noopener">🌐 Broadcasturself</a>
</div>
</section>

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