<!-- Main Sidebar Container -->
<aside class="main-sidebar sidebar-dark-primary elevation-4">
	<!-- Brand Logo -->
	<a href="dashboard" class="brand-link">
		<img src="assets/images/favicon.png" alt="ERP Online Logo" class="brand-image elevation-3">
		<span class="brand-text font-weight-bolder">ERP Online</span>
	</a>

	<!-- Sidebar -->
	<div class="sidebar">
		<!-- Sidebar Menu -->
		<nav class="mt-2">
			<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
				<li class="nav-item">
					<a href="dashboard" class="nav-link <?php if ( $menu == 'dashboard' ): ?>active<?php endif;?>">
						<i class="nav-icon fas fa-tachometer-alt"></i>
						<p>Dashboard</p>
					</a>
				</li>
				<?php if ( $privileges['inventory_menu'] == 1 ): ?>
					<li class="nav-item">
						<a href="pos" class="nav-link <?php if ( $menu == 'pos' ): ?>active<?php endif;?>">
							<i class="nav-icon fa fa-shopping-cart"></i>
							<p>POS</p>
						</a>
					</li>
				<?php endif;?>
				<?php if ( $privileges['inventory_menu'] == 1 ): ?>
					<li class="nav-item">
						<a href="inventory" class="nav-link <?php if ( $menu == 'inventory' ): ?>active<?php endif;?>">
							<i class="nav-icon fa fa-balance-scale"></i>
							<p>Inventory</p>
						</a>
					</li>
				<?php endif;?>
				<?php if ( $privileges['accounts_menu'] == 1 ): ?>
					<li class="nav-item">
						<a href="accounts" class="nav-link <?php if ( $menu == 'accounts' ): ?>active<?php endif;?>">
							<i class="nav-icon fa fa-calculator"></i>
							<p>Accounts</p>
						</a>
					</li>
				<?php endif;?>
				<?php if ( $privileges['hr_menu'] == 1 ): ?>
					<li class="nav-item">
						<a href="hr/emp-list" class="nav-link <?php if ( $menu == 'hr' ): ?>active<?php endif;?>">
							<i class="nav-icon fa fa-users"></i>
							<p>H R</p>
						</a>
					</li>
				<?php endif;?>
				<?php if ( $privileges['report_menu'] == 1 ): ?>
					<li class="nav-item">
						<a href="report" class="nav-link <?php if ( $menu == 'report' ): ?>active<?php endif;?>">
							<i class="nav-icon fa fa-columns"></i>
							<p>Reports</p>
						</a>
					</li>
				<?php endif?>
				<?php if ( $privileges['settings_menu'] == 1 ): ?>
					<li class="nav-item">
						<a href="settings" class="nav-link <?php if ( $menu == 'settings' ): ?>active<?php endif;?>">
							<i class="nav-icon fa fa-toolbox"></i>
							<p>Settings</p>
						</a>
					</li>
				<?php endif?>
				<?php if ( $privileges['user_menu'] == 1 ): ?>
					<li class="nav-item">
						<a href="user" class="nav-link <?php if ( $menu == 'user' || $menu == 'change_password' ): ?>active<?php endif;?>">
							<i class="nav-icon fa fa-user"></i>
							<p>Users</p>
						</a>
					</li>
				<?php endif;?>
			</ul>
		</nav>
	</div>
</aside>