
		<!-- partial:partials/_sidebar.html -->
		<nav class="sidebar">
      <div class="sidebar-header">
        <a href="{{ route('dashboard') }}" class="sidebar-brand">
          ERP<span>Nova</span>
        </a>
        <div class="sidebar-toggler">
          <span></span>
          <span></span>
          <span></span>
        </div>
      </div>
      <div class="sidebar-body">
        <ul class="nav" id="sidebarNav">
          {{-- <li class="nav-item nav-category">Main</li> --}}
          <li class="nav-item">
            <a href="{{ route('dashboard') }}" class="nav-link {{ request()->is('dashboard') ? 'active' : '' }}">
              <i class="link-icon" data-feather="box"></i>
              <span class="link-title">Dashboard</span>
            </a>
          </li>

          <li class="nav-item nav-category">Product Management</li>
          <li class="nav-item">
            <a href="{{ route('item-categories.index') }}" class="nav-link {{ request()->is('item-categories*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="layers"></i>
              <span class="link-title">Item Categories</span>
            </a>
          </li>
          <li class="nav-item">
            <a href="{{ route('items.index') }}" class="nav-link {{ request()->is('items*') && !request()->is('items/*/variations*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="package"></i>
              <span class="link-title">Items</span>
            </a>
          </li>
          {{-- <li class="nav-item">
            <a href="{{ route('variations.index') }}" class="nav-link {{ request()->is('variations*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="git-branch"></i>
              <span class="link-title">Item Variations</span>
            </a>
          </li> --}}
          {{-- <li class="nav-item">
            <a href="{{ route('uoms.index') }}" class="nav-link {{ request()->is('uoms*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="ruler"></i>
              <span class="link-title">Units of Measure</span>
            </a>
          </li> --}}
          {{-- <li class="nav-item">
            <a href="{{ route('item-suppliers.index') }}" class="nav-link {{ request()->is('item-suppliers*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="link"></i>
              <span class="link-title">Item Suppliers</span>
            </a>
          </li> --}}
          {{-- <li class="nav-item">
            <a href="{{ route('wms.demo') }}" class="nav-link {{ request()->is('wms-demo*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="warehouse"></i>
              <span class="link-title">WMS Demo</span>
            </a>
          </li> --}}

          {{-- <li class="nav-item nav-category">Warehouse Management</li>
          <li class="nav-item">
            <a href="{{ route('stock-ledgers.index') }}" class="nav-link {{ request()->is('stock-ledgers*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="file-text"></i>
              <span class="link-title">Stock Ledger</span>
            </a>
          </li> --}}

          <li class="nav-item nav-category">Warehouse Management</li>
          <li class="nav-item">
            <a href="{{ route('warehouses.index') }}" class="nav-link {{ request()->is('warehouses*') && !request()->is('warehouses/current-stock*') && !request()->is('warehouses/stock-history*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="home"></i>
              <span class="link-title">Warehouses</span>
            </a>
          </li>
          {{-- <li class="nav-item">
            <a href="{{ route('warehouses.current-stock') }}" class="nav-link {{ request()->is('warehouses/current-stock') ? 'active' : '' }}">
              <i class="link-icon" data-feather="package"></i>
              <span class="link-title">Current Stock (All)</span>
            </a>
          </li> --}}
          <li class="nav-item">
            <a href="{{ route('warehouses.current-stock-finished-goods') }}" class="nav-link {{ request()->is('warehouses/current-stock-finished-goods*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="check-circle"></i>
              <span class="link-title">Current Stock - FG</span>
            </a>
          </li>
          <li class="nav-item">
            <a href="{{ route('warehouses.current-stock-raw-materials') }}" class="nav-link {{ request()->is('warehouses/current-stock-raw-materials*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="layers"></i>
              <span class="link-title">Current Stock - RM</span>
            </a>
          </li>
          {{-- <li class="nav-item">
            <a href="{{ route('warehouses.stock-history') }}" class="nav-link {{ request()->is('warehouses/stock-history') ? 'active' : '' }}">
              <i class="link-icon" data-feather="file-text"></i>
              <span class="link-title">Stock History (All)</span>
            </a>
          </li> --}}
          {{-- <li class="nav-item">
            <a href="{{ route('warehouses.stock-history-finished-goods') }}" class="nav-link {{ request()->is('warehouses/stock-history-finished-goods*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="trending-up"></i>
              <span class="link-title">Stock History - FG</span>
            </a>
          </li>
          <li class="nav-item">
            <a href="{{ route('warehouses.stock-history-raw-materials') }}" class="nav-link {{ request()->is('warehouses/stock-history-raw-materials*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="trending-down"></i>
              <span class="link-title">Stock History - RM</span>
            </a>
          </li> --}}
          {{-- <li class="nav-item">
            <a href="{{ route('warehouses.bom-pick-list.index') }}" class="nav-link {{ request()->is('warehouses/bom-pick-list*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="clipboard"></i>
              <span class="link-title">BOM Pick Lists</span>
            </a>
          </li>
          <li class="nav-item">
            <a href="{{ route('warehouse-pieces.index') }}" class="nav-link {{ request()->is('warehouse-pieces*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="grid"></i>
              <span class="link-title">Warehouse Pieces</span>
            </a>
          </li> --}}
          {{-- <li class="nav-item">
            <a href="{{ route('warehouse-bins.index') }}" class="nav-link {{ request()->is('warehouse-bins*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="grid"></i>
              <span class="link-title">Warehouse Bins</span>
            </a>
          </li> --}}
          {{-- <li class="nav-item">
            <a href="{{ route('locations.index') }}" class="nav-link {{ request()->is('locations*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="map-pin"></i>
              <span class="link-title">Locations</span>
            </a>
          </li> --}}
          {{-- <li class="nav-item">
            <a href="{{ route('stock-transfers.index') }}" class="nav-link {{ request()->is('stock-transfers*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="repeat"></i>
              <span class="link-title">Stock Transfers</span>
            </a>
          </li> --}}

          <li class="nav-item nav-category">Manufacturing</li>
          <li class="nav-item">
            <a href="{{ route('manufacturing.boms.index') }}" class="nav-link {{ request()->is('manufacturing/boms*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="clipboard"></i>
              <span class="link-title">BOMs</span>
            </a>
          </li>
          <li class="nav-item">
            <a href="{{ route('manufacturing.start') }}" class="nav-link {{ request()->is('manufacturing/start*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="play"></i>
              <span class="link-title">Start Manufacturing</span>
            </a>
          </li>
          <li class="nav-item">
            <a href="{{ route('manufacturing.runs.index') }}" class="nav-link {{ request()->is('manufacturing/runs*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="list"></i>
              <span class="link-title">Manufacturing Runs</span>
            </a>
          </li>
          {{-- <li class="nav-item">
            <a href="{{ route('manufacturing.cost-of-production.index') }}" class="nav-link {{ request()->is('manufacturing/cost-of-production*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="dollar-sign"></i>
              <span class="link-title">Cost of Production</span>
            </a>
          </li>
          <li class="nav-item">
            <a href="{{ route('reports.piece-production') }}" class="nav-link {{ request()->is('reports*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="bar-chart-2"></i>
              <span class="link-title">Piece Reports</span>
            </a>
          </li>
          <li class="nav-item">
            <a href="{{ route('manufacturing.index') }}" class="nav-link {{ request()->is('manufacturing*') && !request()->is('manufacturing/boms*') && !request()->is('manufacturing/start*') && !request()->is('manufacturing/runs*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="tool"></i>
              <span class="link-title">Work Orders</span>
            </a>
          </li> --}}
          {{-- <li class="nav-item">
            <a href="{{ route('manufacturing.demo') }}" class="nav-link {{ request()->is('manufacturing/demo*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="play"></i>
              <span class="link-title">Manufacturing Demo</span>
            </a>
          </li> --}}

          <li class="nav-item nav-category">Procurement</li>
          {{-- <li class="nav-item">
            <a href="{{ route('contacts.index') }}" class="nav-link {{ request()->is('contacts*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="phone"></i>
              <span class="link-title">Contacts</span>
            </a>
          </li> --}}
          <li class="nav-item">
            <a href="{{ route('customers.index') }}" class="nav-link {{ request()->is('customers*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="users"></i>
              <span class="link-title">Customers</span>
            </a>
          </li>
          <li class="nav-item">
            <a href="{{ route('suppliers.index') }}" class="nav-link {{ request()->is('suppliers*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="truck"></i>
              <span class="link-title">Suppliers</span>
            </a>
          </li>
          <li class="nav-item">
            <a href="{{ route('purchase-requests.index') }}" class="nav-link {{ request()->is('purchase-requests*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="file-plus"></i>
              <span class="link-title">Purchase Requests</span>
            </a>
          </li>
          <li class="nav-item">
            <a href="{{ route('purchase-orders.index') }}" class="nav-link {{ request()->is('purchase-orders*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="shopping-cart"></i>
              <span class="link-title">Purchase Orders</span>
            </a>
          </li>

          <li class="nav-item nav-category">HR Management</li>
          <li class="nav-item">
            <a href="{{ route('employees.index') }}" class="nav-link {{ request()->is('employees*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="users"></i>
              <span class="link-title">Employees</span>
            </a>
          </li>

          <li class="nav-item nav-category">Warehouse & Logistics</li>
          <li class="nav-item">
            <a href="{{ route('shops.index') }}" class="nav-link {{ request()->is('shops*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="store"></i>
              <span class="link-title">Shops</span>
            </a>
          </li>
          {{-- <li class="nav-item">
            <a href="{{ route('grns.index') }}" class="nav-link {{ request()->is('grns*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="inbox"></i>
              <span class="link-title">Goods Received Notes</span>
            </a>
          </li> --}}
          <li class="nav-item">
            <a href="{{ route('qcs.index') }}" class="nav-link {{ request()->is('qcs*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="check-circle"></i>
              <span class="link-title">Quality Control</span>
            </a>
          </li>
          <li class="nav-item">
            <a href="{{ route('gatepasses.index') }}" class="nav-link {{ request()->is('gatepasses*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="truck"></i>
              <span class="link-title">Gate Passes</span>
            </a>
          </li>

          <li class="nav-item nav-category">Accounting & Finance</li>
          <li class="nav-item">
            <a href="{{ route('chart-of-accounts.index') }}" class="nav-link {{ request()->routeIs('chart-of-accounts.*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="layers"></i>
              <span class="link-title">Chart of Accounts</span>
            </a>
          </li>
          <li class="nav-item">
            <a href="{{ route('accounts.index') }}" class="nav-link {{ request()->routeIs('accounts.*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="user"></i>
              <span class="link-title">Accounts</span>
            </a>
          </li>
          <li class="nav-item">
            <a href="{{ route('account-transactions.index') }}" class="nav-link {{ request()->is('account-transactions*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="credit-card"></i>
              <span class="link-title">Transactions</span>
            </a>
          </li>

          <li class="nav-item nav-category">System Administration</li>
          <li class="nav-item">
            <a href="{{ route('logging.index') }}" class="nav-link {{ request()->is('logging*') ? 'active' : '' }}">
              <i class="link-icon" data-feather="file-text"></i>
              <span class="link-title">System Logs</span>
            </a>
          </li>
        </ul>
      </div>
    </nav>
