<?php
function setActive($current_page, $menu_page)
{
  return $current_page == $menu_page ? 'nav-link' : 'nav-link collapsed';
}
?>

<aside id="sidebar" class="sidebar">
  <ul class="sidebar-nav" id="sidebar-nav">

    <!-- <li class="nav-item">
      <a class="<?php echo setActive($activeMenu, 'dashboard'); ?>" href="index.php">
        <i class="uil uil-apps"></i>
        <span>Dashboard</span>
      </a>
    </li> -->
    <!-- End Dashboard Nav -->
    
    <li class="nav-item">
      <a class="<?php echo setActive($activeMenu, 'target'); ?>" href="target.php">
        <i class="uil uil-crosshairs"></i>
        <span>Target</span>
      </a>
    </li><!-- End Target Nav -->

    <li class="nav-item">
      <a class="<?php echo setActive($activeMenu, 'achievement'); ?>" href="achievement.php">
        <i class="uil uil-chart"></i>
        <span>Achievement</span>
      </a>
    </li><!-- End Achievement Nav -->

    <!-- <li class="nav-item">
      <a class="<?php echo setActive($activeMenu, 'claim'); ?>" href="claim.php">
        <i class="uil uil-coins"></i>
        <span>Claim</span>
      </a>
    </li> -->
    <!-- End claim Nav -->

    <li class="nav-item">
      <a class="<?php echo setActive($activeMenu, 'productivity'); ?>" href="productivity.php">
        <i class="uil uil-tachometer-fast-alt"></i>
        <span>Productivity</span>
      </a>
    </li><!-- End Productivity Nav -->

    <li class="nav-item">
      <a class="<?php echo setActive($activeMenu, 'stock'); ?>" href="stock.php">
        <i class="uil uil-cube"></i>
        <span>Stock</span>
      </a>
    </li><!-- End Stock Nav -->

    <li class="nav-item">
      <a class="<?php echo setActive($activeMenu, 'export_api'); ?>" href="export_api.php">
        <i class="uil uil-file-export"></i>
        <span>Export API</span>
      </a>
    </li><!-- End Stock Nav -->

  </ul>
</aside><!-- End Sidebar -->