<?php include_once __DIR__ . '/../layouts/head.php'; ?>
    <div class="container py-4" style="max-width: 1350px; width: 100%;">
      <div class="row">
        <div class="col-lg-12">
          <div class="shadow-sm bg-white rounded overflow-hidden border">
            <div class="p-0">
              <div class="row px-0 m-0">
			
				<?php include_once __DIR__ . '/../layouts/menu_body.php'; ?>
				
					<div class="col-12 col-md-9 px-0">
						<div class="tab-content" id="v-pills-tabContent">
						
							<!-- wates -->
							<div class="tab-pane fade show active" id="v-pills-home" role="tabpanel" aria-labelledby="v-pills-home-tab">
								<div class="p-4">
									<div class="mb-4">
										<h5 class="mb-0 fw-bold">Seting Ujian</h5>
									</div>

<div class="mb-3">
    <small class="text-muted">* Klik tombol ceklis untuk mengaktifkan salah satu jenis soal</small>
</div>

<table class="table table-bordered">
    <thead>
        <tr>
            <th>No</th>
            <th>Jenis Soal</th>
            <th>Status</th>
            <th>Aksi</th>
        </tr>
    </thead>
    <tbody>
        <?php $no = 1; ?>
        <?php foreach ($jenis_jenis as $jenis): ?>
            <tr>
                <td><?= $no++ ?></td>
                <td><?= htmlspecialchars($jenis['jenis_soal']) ?></td>
                <td><?= htmlspecialchars($jenis['status']) ?></td>
                <td>
                    <?php if ($jenis['status'] === 'Aktif'): ?>
                        <button class="btn btn-success" disabled>
                            <i class="bi bi-check2-all"></i>
                        </button>
                    <?php else: ?>
                        <a href="/dashboard/pegawai-set_ujian?edit=<?= $jenis['id_jenis_s'] ?>" class="btn btn-primary">
                            <i class="bi bi-check2"></i>
                        </a>
                    <?php endif; ?>
                </td>
            </tr>
        <?php endforeach; ?>
    </tbody>
</table>



								</div>
							</div>
						</div>
					</div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
	
<?php include_once __DIR__ . '/../layouts/footer.php'; ?>