		<div class="sidebar sidebar-style-2">			
			<div class="sidebar-wrapper scrollbar scrollbar-inner">
				<div class="sidebar-content">
					<div class="user">
						<div class="avatar-sm float-left mr-2">
							<img src="<?php if(!empty($_SESSION['user_icon'])){ echo "./perfis/".$_SESSION['user_icon']; }else{ echo './assets/img/profile.jpg'; }  ?>" alt="..." class="avatar-img rounded-circle">
						</div>
						<div class="info">
							<a href="main?view=perfil" aria-expanded="true">
								<span>
									<?= $_SESSION['user']; ?>
									<span class="user-level"><?php
									
										switch($_SESSION['id_type']){
											case 1:
												echo "Administrador";
												break;
											case 2:
												echo "Gestor";
												break;
											case 3:
												echo "Operador";
												break;
										}
									
									?></span>
									<!--<span class="caret"></span>-->
								</span>
							</a>
							<div class="clearfix"></div>
						</div>
					</div>
					<ul class="nav nav-primary">
					
						<?php if($_SESSION['id_loja'] == 0){ ?>
							<?php if($_SESSION['id_type'] == 1){ ?>
							<li class="nav-item" id="dashboard" >
								<a href="main.php" aria-expanded="false">
									<i class="fas fa-home"></i>
									<p>Dashboard</p>
								</a>
							</li>
							<?php } ?>
							<li class="nav-item" id="analise" >
								<a href="main?view=analise" aria-expanded="false">
									<i class="fas fa-chart-pie"></i>
									<p>Análise de Compras</p>
								</a>
							</li>
							<li class="nav-item" id="pedido" >
								<a href="main?view=pedidos" aria-expanded="false">
									<i class="fas fa-file-alt"></i>
									<p>Gerar pedido</p>
								</a>
							</li>
							<li class="nav-item" id="pedido2" >
								<a href="main?view=pedidos2" aria-expanded="false">
									<i class="fas fa-file-alt"></i>
									<p>Pedido Consulta</p>
								</a>
							</li>
							
							<?php if($_SESSION['id_type'] == 1){ ?>
							<li class="nav-item" id="config" >
								<a href="main?view=config" aria-expanded="false">
									<i class="fas fa-cog"></i>
									<p>Configurações</p>
								</a>
							</li>
							<li class="nav-item" id="user" >
								<a href="main?view=usuarios" aria-expanded="false">
									<i class="fas fa-users"></i>
									<p>Usuários</p>
								</a>
							</li>
							<?php } ?>
						<?php }else{ ?>
							
							<li class="nav-item" id="analise" >
								<a href="main?view=analise" aria-expanded="false">
									<i class="fas fa-chart-pie"></i>
									<p>Análise de Compras</p>
								</a>
							</li>
							<li class="nav-item" id="pedido" >
								<a href="main?view=meuspedidos" aria-expanded="false">
									<i class="fas fa-file-alt"></i>
									<p>Meus pedidos</p>
								</a>
							</li>
							
						<?php } ?>

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