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

    <li class="nav-item <?= $sub_menu == 'dash' ? 'active' : '' ?>">
      <a class="nav-link" href="../brandproducts/home.php">
        <i class="mdi mdi-home menu-icon"></i>
        <span class="menu-title">Home</span>
      </a>
    </li>

    <li class="nav-item  <?= $sub_menu == 'instock' ? 'active' : '' ?>">
      <a class="nav-link" href="../brandproducts/instock">
        <i class="mdi mdi-warehouse menu-icon"></i>
        <span class="menu-title">In Stock Inventory</span>
      </a>
    </li>

    <li class="nav-item  <?= $menu == 'disposal' ? 'active' : '' ?>">
      <a class="nav-link" data-bs-toggle="collapse" href="#ui-disposal" aria-expanded="false" aria-controls="ui-disposal">
        <i class="menu-icon mdi mdi-trash-can"></i>
        <span class="menu-title">Needs Rework</span>
        <i class="menu-arrow"></i>
      </a>
      <div class="collapse" id="ui-disposal">
        <ul class="nav flex-column sub-menu">
          <li class="nav-item  <?= $sub_menu == 'dis-pending' ? 'active' : '' ?>">
            <a class="nav-link" href="../brandproducts/dispend">PENDING</a>
          </li>
          <li class="nav-item  <?= $sub_menu == 'dis-complete' ? 'active' : '' ?>">
            <a class="nav-link" href="../brandproducts/discomplete">COMPLETED</a>
          </li>
        </ul>
      </div>
    </li>

    

    <li class="nav-item  <?= $menu == 'reimb' ? 'active' : '' ?>">
      <a class="nav-link" data-bs-toggle="collapse" href="#ui-reim" aria-expanded="false" aria-controls="ui-reim">
        <i class="menu-icon mdi mdi-floor-plan"></i>
        <span class="menu-title">Reimbursements</span>
        <i class="menu-arrow"></i>
      </a>
      <div class="collapse" id="ui-reim">
        <ul class="nav flex-column sub-menu">
          <li class="nav-item  ">
            <a class="nav-link <?= $sub_menu == 'reim-pending' ? 'active' : '' ?>" href="../brandproducts/pending">PENDING</a>
          </li>
          <li class="nav-item">
            <a class="nav-link  <?= $sub_menu == 'reim-filed' ? 'active' : '' ?>" href="../brandproducts/filed">FILED</a>
          </li>
          <li class="nav-item ">
            <a class="nav-link <?= $sub_menu == 'reim-complete' ? 'active' : '' ?>" href="../brandproducts/completed">COMPLETED</a>
          </li>
        </ul>
      </div>
    </li>

    <li class="nav-item <?= $sub_menu == 'pendfba' ? 'active' : '' ?>">
      <a class="nav-link" href="../brandproducts/pendfba">
        <i class="mdi mdi-truck-fast menu-icon"></i>
        <span class="menu-title">Pending FBA</span>
      </a>
    </li>
    
    <li class="nav-item <?= $sub_menu == 'fbaout' ? 'active' : '' ?>">
      <a class="nav-link" href="../brandproducts/fbaout">
        <i class="mdi mdi-truck-cargo-container menu-icon"></i>
        <span class="menu-title">FBA Outbound</span>
      </a>
    </li>

    <li class="nav-item  <?= $menu == 'reports' ? 'active' : '' ?>">
      <a class="nav-link" data-bs-toggle="collapse" href="#ui-reports" aria-expanded="false">
        <i class="menu-icon mdi mdi-chart-bar"></i>
        <span class="menu-title">Reports</span>
        <i class="menu-arrow"></i>
      </a>
      <div class="collapse" id="ui-reports">
        <ul class="nav flex-column sub-menu">
          
          <li class="nav-item  <?= $sub_menu == 'byasin' ? 'active' : '' ?>">
            <a class="nav-link " href="../brandproducts/byasin.php">BY FNSKU</a>
          </li>
          
          
        </ul>
      </div>
    </li>
    <?php
                    if ($_SESSION["usertype"] == 1) {
                    ?>
    <li class="nav-item <?= $sub_menu == 'users' ? 'active' : '' ?>">
      <a class="nav-link" href="../users/users">
        <i class="mdi mdi-account-group menu-icon"></i>
        <span class="menu-title">USERS</span>
      </a>
    </li>
    <?php
                    }
                    ?>

  </ul>
</nav>