<?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">

                <div class="tab-pane fade show active" id="v-pills-profile" role="tabpanel" aria-labelledby="v-pills-profile-tab">

                  <?php if (!$pegawai): ?>
                    <div class="alert alert-danger">Data Pegawai tidak ditemukan.</div>
                  <?php else: ?>
                  <div class="p-4">
                    <div class="mb-4">
                      <h5 class="mb-0 fw-bold">Profile Anda</h5>
                    </div>
                    <div class="row row-cols-1 row-cols-md-1 g-4">
                      <div class="col-md-3 d-none d-md-block"></div>
                      <div class="col-md-6 d-md-block">
                        <div class="offer-box position-relative bg-light rounded-3 shadow-sm p-4">
                          <small class="offer-box-title fw-bold text-white">
                            <img src="/assets/img/team1.jpg" alt="" class="img-fluid rounded-circle bg-light h-40">
                          </small>

                          <div class="d-flex align-items-center gap-3 mb-3">
                            <i class="bi bi-fingerprint m-0 rounded-pill rounded-icon"></i>
                            <div>
                              <div class="text-uppercase text-success fw-bold">Nama</div>
                              <p class="text-muted small mb-0"><?= htmlspecialchars($pegawai['nama']) ?></p>
                            </div>
                          </div>
                          <div class="d-flex align-items-center gap-3 mb-3">
                            <i class="bi bi-card-heading m-0 rounded-pill rounded-icon"></i>
                            <div>
                              <div class="text-uppercase text-success fw-bold">NIY</div>
                              <p class="text-muted small mb-0"><?= htmlspecialchars($pegawai['username']) ?></p>
                            </div>
                          </div>
 
                        </div>
                      </div>
                      <div class="col">
                        <div class="border rounded d-flex gap-3 p-4">
 
                        </div>
                      </div>
                    </div>
                  </div>
                  <?php endif; ?>

                </div>

              </div>
            </div>

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