<?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">Daftar Ajuan</h5>
						</div>
						<div class="row row-cols-1 row-cols-md-2 g-4">
							<!-- Static Items -->
							<!-- SKL -->
							<div class="col">
								<div class="border rounded d-flex gap-3 p-4">
									<i class="bi bi-card-text m-0 rounded-pill rounded-icon"></i>
									<div class="text-start">
										<h6 class="mb-1 fw-bold">Keterangan Kuliah</h6>
										<div class="text-muted small text-opacity-50 mb-3">Form Pengajuan SKL</div>
										<a data-bs-toggle="modal" data-bs-target="#trashpop" class="fw-bold text-danger text-decoration-none text-uppercase" href="#">Open</a>
									</div>
									<i class="bi bi-check-circle-fill ms-auto"></i>
								</div>
							</div>

							<!-- Observasi -->
							<div class="col">
								<div class="border rounded d-flex gap-3 p-4">
									<i class="bi bi-binoculars m-0 rounded-pill rounded-icon"></i>
									<div class="text-start">
										<h6 class="mb-1 fw-bold">Izin Observasi</h6>
										<div class="text-muted small text-opacity-50 mb-3">Form Pengajuan Izin Observasi</div>
										<a data-bs-toggle="modal" data-bs-target="#trashpop" class="fw-bold text-danger text-decoration-none text-uppercase" href="#">Open</a>
									</div>
									<i class="bi bi-check-circle-fill ms-auto"></i>
								</div>
							</div>

							<!-- Penelitian -->
							<div class="col">
								<div class="border rounded d-flex gap-3 p-4">
									<i class="bi bi-graph-down m-0 rounded-pill rounded-icon"></i>
									<div class="text-start">
										<h6 class="mb-1 fw-bold">Izin Penelitian</h6>
										<div class="text-muted small text-opacity-50 mb-3">Form Pengajuan Izin Penelitian</div>
										<a data-bs-toggle="modal" data-bs-target="#trashpop" class="fw-bold text-danger text-decoration-none text-uppercase" href="#">Open</a>
									</div>
									<i class="bi bi-check-circle-fill ms-auto"></i>
								</div>
							</div>

							<!-- Cuti -->
							<div class="col">
								<div class="border rounded d-flex gap-3 p-4">
									<i class="bi bi-clipboard2-pulse-fill m-0 rounded-pill rounded-icon"></i>
									<div class="text-start">
										<h6 class="mb-1 fw-bold">Cuti Kuliah</h6>
										<div class="text-muted small text-opacity-50 mb-3">Form Pengajuan Cuti</div>
										<a data-bs-toggle="modal" data-bs-target="#trashpop" class="fw-bold text-danger text-decoration-none text-uppercase" href="#">Open</a>
									</div>
									<i class="bi bi-check-circle-fill ms-auto"></i>
								</div>
							</div>

							<!-- Dynamic Items -->
							<?php if ($show_pplk): ?>
							<div class="col">
								<div class="border rounded d-flex gap-3 p-4">
									<i class="bi bi-clipboard2-pulse-fill m-0 rounded-pill rounded-icon"></i>
									<div class="text-start">
										<h6 class="mb-1 fw-bold">Daftar PPLK</h6>
										<div class="text-muted small text-opacity-50 mb-3">Form Pendaftaran PPLK</div>
										<a class="fw-bold text-danger text-decoration-none text-uppercase" href="/dashboard/mahasiswa-daftarpplk">Open</a>
									</div>
									<i class="bi bi-check-circle-fill ms-auto"></i>
								</div>
							</div>
							<?php endif; ?>

							<?php if ($show_kkn): ?>
							<div class="col">
								<div class="border rounded d-flex gap-3 p-4">
									<i class="bi bi-clipboard2-pulse-fill m-0 rounded-pill rounded-icon"></i>
									<div class="text-start">
										<h6 class="mb-1 fw-bold">Daftar KKN</h6>
										<div class="text-muted small text-opacity-50 mb-3">Form Pendaftaran KKN</div>
										<a class="fw-bold text-danger text-decoration-none text-uppercase" href="/dashboard/mahasiswa-daftarkkn">Open</a>
									</div>
									<i class="bi bi-check-circle-fill ms-auto"></i>
								</div>
							</div>
							<?php endif; ?>

							<?php if ($show_skripsi): ?>
							<div class="col">
								<div class="border rounded d-flex gap-3 p-4">
									<i class="bi bi-blockquote-left m-0 rounded-pill rounded-icon"></i>
									<div class="text-start">
										<h6 class="mb-1 fw-bold">Daftar Sidang</h6>
										<div class="text-muted small text-opacity-50 mb-3">Form Pendaftaran Sidang Skripsi</div>
										<a class="fw-bold text-danger text-decoration-none text-uppercase" href="/dashboard/mahasiswa-daftarskripsi">Open</a>
									</div>
									<i class="bi bi-check-circle-fill ms-auto"></i>
								</div>
							</div>
							<?php endif; ?>

							<?php if ($show_yudisium): ?>
							<div class="col">
								<div class="border rounded d-flex gap-3 p-4">
									<i class="bi bi-exclude m-0 rounded-pill rounded-icon"></i>
									<div class="text-start">
										<h6 class="mb-1 fw-bold">Daftar Yudisium</h6>
										<div class="text-muted small text-opacity-50 mb-3">Form Pendaftaran Yudisium</div>
										<a class="fw-bold text-danger text-decoration-none text-uppercase" href="/dashboard/mahasiswa-daftaryudisium">Open</a>
									</div>
									<i class="bi bi-check-circle-fill ms-auto"></i>
								</div>
							</div>
							<?php endif; ?>

							<?php if ($show_wisuda): ?>
							<div class="col">
								<div class="border rounded d-flex gap-3 p-4">
									<i class="bi bi-mortarboard m-0 rounded-pill rounded-icon"></i>
									<div class="text-start">
										<h6 class="mb-1 fw-bold">Daftar Wisuda</h6>
										<div class="text-muted small text-opacity-50 mb-3">Form Pendaftaran Wisuda</div>
										<a class="fw-bold text-danger text-decoration-none text-uppercase" href="/dashboard/mahasiswa-daftarwisuda">Open</a>
									</div>
									<i class="bi bi-check-circle-fill ms-auto"></i>
								</div>
							</div>
							<?php endif; ?>

							<?php if ($show_transkip): ?>
							<div class="col">
								<div class="border rounded d-flex gap-3 p-4">
									<i class="bi bi-award m-0 rounded-pill rounded-icon"></i>
									<div class="text-start">
										<h6 class="mb-1 fw-bold">Transkip</h6>
										<div class="text-muted small text-opacity-50 mb-3">Cetak Transkip Sementara</div>
										<a class="fw-bold text-danger text-decoration-none text-uppercase" href="/dashboard/mahasiswa-cetak_trskp_smtr?nim=<?php echo htmlspecialchars($nim, ENT_QUOTES, 'UTF-8'); ?>">Open</a>
									</div>
									<i class="bi bi-check-circle-fill ms-auto"></i>
								</div>
							</div>
							<?php endif; ?>
						</div>
					</div>
				</div>
				<!-- akhir isi konten -->

              </div> <!-- end tab-content -->
            </div> <!-- end col-9 -->

          </div> <!-- end row -->
        </div> <!-- end p-0 -->
      </div> <!-- end shadow-sm -->
    </div> <!-- end col -->
  </div> <!-- end row -->
</div> <!-- end container -->


<div class="modal fade" id="trashpop" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-hidden="true">
<div class="modal-dialog modal-sm modal-dialog-centered">
<div class="modal-content border-0 shadow overflow-hidden">
<div class="modal-body p-4 text-center">
<i class="bi bi-bezier2 display-1 mb-4"></i>
<h5 class="m-0">Coming soon, </h5><small>Fitur dalam masa pengembangan</small>
</div>
<div class="border-top d-flex">
<button type="button" class="w-100 btn btn-lg py-3 border-0 btn-outline-danger rounded-0" data-bs-dismiss="modal">Close</button>
<button type="button" class="w-100 btn btn-lg py-3 border-0 btn-danger rounded-0" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>

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