<div class="sidebar" data-background-color="dark">
  <div class="sidebar-logo">
    <div class="logo-header" data-background-color="dark">
      <a href="dashboard" class="logo">
        <img
          src="assets/img/logo__aura-gaming.png"
          alt="navbar brand"
          class="navbar-brand"
          height="20" />
      </a>
      <div class="nav-toggle">
        <button class="btn btn-toggle toggle-sidebar">
          <i class="gg-menu-right"></i>
        </button>
        <button class="btn btn-toggle sidenav-toggler">
          <i class="gg-menu-left"></i>
        </button>
      </div>
      <button class="topbar-toggler more">
        <i class="gg-more-vertical-alt"></i>
      </button>
    </div>
  </div>
  <div class="sidebar-wrapper scrollbar scrollbar-inner">
    <div class="sidebar-content">
      <ul class="nav nav-secondary">
        <li class="nav-item active">
          <a href="dashboard"">
            <i class=" fas fa-tachometer-alt"></i>
            <p>Dashboard</p>
          </a>
        </li>
        
        <li class="nav-section">
          <span class="sidebar-mini-icon">
            <i class="fa fa-user-cog"></i>
          </span>
          <h4 class="text-section">Informasi Pengguna</h4>
        </li>
        
        <?php if (isset($_SESSION['admin_id']) && isset($admin['level'])): ?>
          <?php if ($admin['level'] === 'developer' || $admin['level'] === 'admin'): ?>
            <li class="nav-item">
              <a href="user">
                <i class="fas fa-users"></i>
                <p>Info Pengguna</p>
              </a>
            </li>
          <?php endif; ?>
        <?php endif; ?>
        
        <li class="nav-item">
          <a href="balance">
            <i class="fas fa-wallet"></i>
            <p>Saldo Pengguna</p>
          </a>
        </li>

        <?php if (isset($_SESSION['admin_id']) && isset($admin['level'])): ?>
          <?php if ($admin['level'] === 'developer' || $admin['level'] === 'admin'): ?>
        <li class="nav-section">
          <span class="sidebar-mini-icon">
            <i class="fa fa-exchange-alt"></i>
          </span>
          <h4 class="text-section">Transaksi</h4>
        </li>
        <li class="nav-item">
          <a data-bs-toggle="collapse" href="#deposit">
            <i class="fas fa-coins"></i>
            <p>Setoran</p>
            <span class="caret"></span>
          </a>
          <div class="collapse" id="deposit">
            <ul class="nav nav-collapse">
              <li>
                <a href="deposit">
                  <span class="sub-item">Permintaan Setoran</span>
                </a>
              </li>
              <li>
                <a href="deposit-history">
                  <span class="sub-item">Riwayat Setoran</span>
                </a>
              </li>
            </ul>
          </div>
        </li>
        <li class="nav-item">
          <a data-bs-toggle="collapse" href="#withdrawal">
            <i class="fas fa-hand-holding-usd"></i>
            <p>Penarikan</p>
            <span class="caret"></span>
          </a>
          <div class="collapse" id="withdrawal">
            <ul class="nav nav-collapse">
              <li>
                <a href="withdrawal">
                  <span class="sub-item">Permintaan Penarikan</span>
                </a>
              </li>
              <li>
                <a href="withdrawal-history">
                  <span class="sub-item">Riwayat Penarikan</span>
                </a>
              </li>
            </ul>
          </div>
        </li>
          <?php endif; ?>
        <?php endif; ?>

        <?php if (isset($_SESSION['admin_id']) && isset($admin['level'])): ?>
          <?php if ($admin['level'] === 'developer' || $admin['level'] === 'admin'): ?>
        <li class="nav-section">
          <span class="sidebar-mini-icon">
            <i class="fa fa-cog"></i>
          </span>
          <h4 class="text-section">Pengaturan</h4>
        </li>

        <li class="nav-item">
          <a href="admin">
            <i class="fas fa-user-shield"></i>
            <p>Informasi Admin</p>
          </a>
        </li>

        <li class="nav-item">
          <a data-bs-toggle="collapse" href="#general">
            <i class="fas fa-cogs"></i>
            <p>Pengaturan</p>
            <span class="caret"></span>
          </a>
          <div class="collapse" id="general">
            <ul class="nav nav-collapse">
              <li>
                <a href="website">
                  <span class="sub-item">Website</span>
                </a>
              </li>
              <li>
                <a href="bank">
                  <span class="sub-item">Bank Setoran</span>
                </a>
              </li>
            </ul>
          </div>
        </li>

        <li class="nav-item">
          <a data-bs-toggle="collapse" href="#content">
            <i class="fas fa-file-alt"></i>
            <p>Konten</p>
            <span class="caret"></span>
          </a>
          <div class="collapse" id="content">
            <ul class="nav nav-collapse">
              <li>
                <a href="banner">
                  <span class="sub-item">Gambar Slide</span>
                </a>
              </li>
              <li>
                <a href="promo">
                  <span class="sub-item">Promosi</span>
                </a>
              </li>
            </ul>
          </div>
        </li>
        <?php endif; ?>
        <?php endif; ?>

        <li class="nav-section">
          <span class="sidebar-mini-icon">
            <i class="fa fa-plug"></i>
          </span>
          <h4 class="text-section">Integrasi</h4>
        </li>
        <li class="nav-item">
          <a data-bs-toggle="collapse" href="#api">
            <i class="fas fa-code"></i>
            <p>API</p>
            <span class="caret"></span>
          </a>
          <div class="collapse" id="api">
            <ul class="nav nav-collapse">
              <li>
                <a href="#">
                  <span class="sub-item">Informasi</span>
                </a>
              </li>
              <li>
                <a href="#">
                  <span class="sub-item">Daftar Putih IP</span>
                </a>
              </li>
            </ul>
          </div>
        </li>
        <li class="nav-item">
          <a href="#">
            <i class="fas fa-file"></i>
            <p>Dokumentasi</p>
          </a>
        </li>
      </ul>
    </div>
  </div>
</div>