<?php require_once __DIR__ . '/includes/admin_bootstrap.php'; $news=count(ugfx_news()); $events=count(ugfx_events()); $djs=count(ugfx_djs()); $schedule=ugfx_schedule(); ugfx_admin_header('Underground FX Admin Dashboard'); ?>
<div class="glass-panel admin-hero">
  <div class="row g-4 align-items-center">
    <div class="col-xl-8">
      <div class="eyebrow">STUDIO COMMAND</div>
      <h1 class="display-5 fw-bold mb-2">Underground FX control room</h1>
      <p class="mb-0">A stronger admin shell for content, schedule, talent, requests, and station updates — styled to match the public flagship feel without losing the working feature stack underneath.</p>
    </div>
    <div class="col-xl-4 text-xl-end"><a class="btn btn-neon" href="../index.php" target="_blank">Open live site</a></div>
  </div>
</div>
<div class="admin-grid mt-4">
  <div class="admin-card"><div class="metric-label">DJs</div><div class="metric-value"><?= $djs ?></div></div>
  <div class="admin-card"><div class="metric-label">News posts</div><div class="metric-value"><?= $news ?></div></div>
  <div class="admin-card"><div class="metric-label">Events</div><div class="metric-value"><?= $events ?></div></div>
  <div class="admin-card"><div class="metric-label">Schedule days</div><div class="metric-value"><?= count($schedule) ?></div></div>
</div>
<div class="row g-4 mt-1">
  <div class="col-xl-8"><div class="admin-card h-100"><h2 class="h4">Live-ready priorities</h2><ul class="list-clean"><li>Underground image-first shell active on public and admin.</li><li>Correct stream target set to <code>http://radio.undergroundfxradio.com:9000/stream</code>.</li><li>Now playing endpoint refreshes through <code>api/nowplaying.php</code>.</li><li>News and events stay image-driven on both homepage and full pages.</li><li>HomeTime-style routes remain inside the project as the working feature stack.</li></ul></div></div>
  <div class="col-xl-4"><div class="admin-card h-100"><h2 class="h4">Quick launch</h2><div class="d-grid gap-2"><a class="btn btn-darkglass" href="news.php">Manage news</a><a class="btn btn-darkglass" href="events.php">Manage events</a><a class="btn btn-darkglass" href="djs.php">Manage DJs</a><a class="btn btn-darkglass" href="schedule.php">Manage schedule</a></div></div></div>
</div>
<?php ugfx_admin_footer(); ?>