<aside class="sidebar">
  <div class="logo">
    <i class="fa-solid fa-shield-dog"></i>
    <span>BDMA</span>
  </div>

  <?php
    $page = $_GET['page'] ?? 'dashboard';
  ?>

  <ul class="menu">
    <li class="<?= ($page === 'dashboard') ? 'active' : '' ?>">
      <a href="index.php?page=dashboard">
        <i class="fa-solid fa-grid"></i> Dashboard
      </a>
    </li>

    <li class="<?= ($page === 'reports') ? 'active' : '' ?>">
      <a href="index.php?page=reports">
        <i class="fa-solid fa-table"></i> Reports
      </a>
    </li>

    <li class="<?= ($page === 'analytics') ? 'active' : '' ?>">
      <a href="index.php?page=analytics">
        <i class="fa-solid fa-chart-line"></i> Analytics
      </a>
    </li>

    <li class="<?= ($page === 'earnings') ? 'active' : '' ?>">
      <a href="index.php?page=earnings">
        <i class="fa-solid fa-dollar-sign"></i> Earnings
      </a>
    </li>

    <li class="<?= ($page === 'ip-analysis') ? 'active' : '' ?>">
      <a href="index.php?page=ip-analysis">
        <i class="fa-solid fa-network-wired"></i> IP Analysis
      </a>
    </li>
    <li class="<?= ($page === 'commands') ? 'active' : '' ?>">
      <a href="index.php?page=commands">
        <i class="fa-solid fa-command"></i> All Commands
      </a>
    </li>
 

    <li class="<?= ($page === 'settings') ? 'active' : '' ?>">
      <a href="index.php?page=settings">
        <i class="fa-solid fa-gear"></i> Settings
      </a>
    </li>

    <li>
      <a href="logout.php">
        <i class="fa-solid fa-right-from-bracket"></i> Logout
      </a>
    </li>
  </ul>
</aside>
