<?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">
                <!-- awal isi konten -->
				<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">Soal UTS/UAS</h5>
						</div>
					   
						<div class="col">
						</br>
						</div>
						<div class="row row-cols-1 row-cols-md-1 g-4">
							<div class="col">
								<div class="border rounded d-flex gap-3 p-4">
									<div class="table table-responsive">
									
										<?php if (isset($_SESSION['error'])): ?>
											<div class="alert alert-danger"><?= $_SESSION['error']; unset($_SESSION['error']); ?></div>
										<?php endif; ?>

										<form action="/dashboard/mahasiswa-soal/verifikasi-token" method="POST">
											<div class="mb-3">
												<label for="token" class="form-label">Masukkan Token Ujian</label>
												<input type="text" name="token" id="token" class="form-control" required>
											</div>
											<button type="submit" class="btn btn-primary">Verifikasi Token</button>
										</form>

										<script>
											// Jika ada pesan error, sembunyikan setelah 2 detik
											const errorMessage = document.getElementById('error-message');
											if (errorMessage) {
												setTimeout(() => {
													errorMessage.style.display = 'none';
												}, 2000); // 2000 ms = 2 detik
											}
										</script>
										

									</div>
								</div>
						
							</div>
						</div>
						
						 
						 
						
					</div>
				</div>
				<!-- batas isi konten -->
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div> <?php include_once __DIR__ . '/../layouts/footer.php'; ?>