<?php
include '../config/koneksi.php';
include 'templates/header.php';
$data = mysqli_query($conn, "SELECT * FROM persyaratan ORDER BY nomor ASC");
?>

<main id="main">
  <section class="section">
    <div class="container" data-aos="fade-up">
      <div class="section-title text-center">
          <br><br><br><br>
        <h2>Persyaratan Pendaftaran</h2>
        <p>Berikut ini adalah persyaratan yang harus dipenuhi oleh calon peserta didik:</p>
      </div>
      <ul class="list-group list-group-flush">
        <?php foreach ($data as $row): ?>
          <li class="list-group-item">
            <strong><?= $row['nomor'] ?>.</strong> <?= htmlspecialchars($row['isi']) ?>
          </li>
        <?php endforeach; ?>
      </ul>
    </div>
  </section>
</main>

<?php include 'templates/footer.php'; ?>