<?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">Tugas Akhir</h5>
						</div>

						<div class="row row-cols-1 row-cols-md-2 g-4">
							
							<?php if ($kompre_eligible): ?>
								<div class="col">
									<div class="border rounded d-flex gap-3 p-4">
										<i class="bi bi-file-earmark-font m-0 rounded-pill rounded-icon"></i>
										<div class="text-start">
											<h6 class="mb-1 fw-bold">Kompre</h6>
											<div class="text-muted small text-opacity-50 mb-3">Registrasi Komprehensif</div>
											<a class="fw-bold text-danger text-decoration-none text-uppercase" href="/dashboard/mahasiswa-reg-kompre">Open</a>
										</div>
										<i class="bi bi-check-circle-fill ms-auto"></i>
									</div>
								</div>
							<?php endif; ?>

							<div class="col">
								<div class="border rounded d-flex gap-3 p-4">
									<i class="bi bi-file-earmark-font m-0 rounded-pill rounded-icon"></i>
									<div class="text-start">
										<h6 class="mb-1 fw-bold">Proposal</h6>
										<div class="text-muted small text-opacity-50 mb-3">Form Pengajuan Proposal</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>

							<div class="col">
								<div class="border rounded d-flex gap-3 p-4">
									<i class="bi bi-file-earmark-font m-0 rounded-pill rounded-icon"></i>
									<div class="text-start">
										<h6 class="mb-1 fw-bold">Skripsi</h6>
										<div class="text-muted small text-opacity-50 mb-3">Form Pengajuan Skripsi</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>

						</div>
					</div>
				</div>
				<!-- Akhir isi konten -->

				<!-- Modal dummy (nanti bisa diganti) -->
				<div class="modal fade" id="trashpop" tabindex="-1" aria-labelledby="trashpopLabel" aria-hidden="true">
				  <div class="modal-dialog">
					<div class="modal-content">
					  <div class="modal-header">
						<h5 class="modal-title">Coming Soon</h5>
						<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
					  </div>
					  <div class="modal-body">
						Fitur pengajuan proposal dan skripsi sedang dalam pengembangan.
					  </div>
					  <div class="modal-footer">
						<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Tutup</button>
					  </div>
					</div>
				  </div>
				</div>


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

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

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