<aside class="main-sidebar" style="position: fixed;"> 
   <section class="sidebar">

      <div class="user-panel">
        <div class="pull-left image">
          <img src="css/smk.jpg" class="img-circle" alt="User Image" style="height: 45px; width: 45px; object-fit: cover;">
        </div>
        <div class="pull-left info">
          <p><?= $_SESSION['nama'] ?></p>
          <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
        </div>
      </div>

      <ul class="sidebar-menu" data-widget="tree">
        <li class="header">MAIN NAVIGATION</li>
        
        <li class="<?= ($_GET['hal']=='dashboard')?'active':'' ?>">
            <a href="?hal=dashboard">
                <i class="fa fa-dashboard"></i> <span>Dashboard</span>
            </a>
        </li>

        <li class="<?= ($_GET['hal']=='pelanggaran')?'active':'' ?>">
            <a href="?hal=pelanggaran">
                <i class="fa fa-gavel"></i> <span>Input Pelanggaran</span>
            </a>
        </li>

        <li class="<?= ($_GET['hal']=='siswa')?'active':'' ?>">
            <a href="?hal=siswa">
                <i class="fa fa-users"></i> <span>Data Siswa</span>
            </a>
        </li>

        <li class="<?= ($_GET['hal']=='pebus')?'active':'' ?>">
            <a href="?hal=pebus">
                <i class="fa fa-list-ul"></i> <span>Macam Tebusan</span>
            </a>
        </li>

        <li class="header">REPORTS / RIWAYAT</li>

        <li class="<?= ($_GET['hal']=='riwayat')?'active':'' ?>">
            <a href="?hal=riwayat">
                <i class="fa fa-history"></i> <span>Log Pelanggaran</span>
            </a>
        </li>

        <li class="<?= ($_GET['hal']=='tebus')?'active':'' ?>">
            <a href="?hal=tebus">
                <i class="fa fa-heartbeat"></i> <span>Log Penebusan</span>
            </a>
        </li>

        <li class="header">UTILITIES</li>

        <li>
            <a href="https://indrafaruq.github.io/panduan/" target="_blank">
                <i class="fa fa-book"></i> <span>Panduan Penggunaan</span>
            </a>
        </li>

        <li style="background-color: #d73925;">
            <a href="logout.php" onclick="return confirm('Yakin ingin keluar?')">
                <i class="fa fa-sign-out" style="color: white;"></i> <span style="color: white;">Keluar Sistem</span>
            </a>
        </li>

      </ul>
      </section>
    </aside>