<?php include('includes/header.php'); ?>
<?php include('includes/menu.php'); ?>

<main class="page-content">
  <h2>📻 Weekly Programs</h2>
  <?php
  $schedule = json_decode(file_get_contents('data/schedule.json'), true);
  foreach ($schedule as $slot) {
    $start = date("g:i A", strtotime($slot['start']));
    $end = date("g:i A", strtotime($slot['end']));
    echo "<div class='schedule-slot'><strong>{$slot['dj']}</strong> – {$slot['show']} ({$start} to {$end})</div>";
  }
  ?>
</main>

<?php include('includes/footer.php'); ?>
