	<header>
		<!-- Fixed navbar -->
		<nav class="navbar navbar-expand-md navbar-light fixed-top bg-light d-print-none">
			<div class="container-fluid">
				<a class="navbar-brand" href="<?= base_url() ?>dashboard">
					<img src="<?php if (isset($dataConfig['logo'])) {echo base_url() ?>assets/epscolor/img/empresas/<?php echo $dataConfig['logo'] ; } ?>" alt="Logo" width="90">
				</a>

				<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapseMain" aria-controls="navbarCollapseMain" aria-expanded="false" aria-label="Toggle navigation">
					<span class="navbar-toggler-icon"></span>
				</button>

				<div class="collapse navbar-collapse" id="navbarCollapseMain">
					<ul class="navbar-nav mb-2 mb-md-0 me-auto">

						<?php if (session()->get('user_role')=="Administrador") { ?>
							<li class="nav-item">
								<a class="nav-link active" aria-current="page" href="<?= base_url().'clientes/clientes_list' ?>">Clientes</a>
							</li>
							<li class="nav-item">
								<a class="nav-link active" aria-current="page" href="<?= base_url().'ordenes/ordenes_list' ?>">Ordenes</a>
							</li>
							<li class="nav-item">
								<a class="nav-link active" aria-current="page" href="<?= base_url().'cotizaciones/cotizaciones_list' ?>">Cotizaciones</a>
							</li>
							<li class="nav-item">
								<a class="nav-link active" aria-current="page" href="<?= base_url().'nde/nde_list' ?>">Notas Entrega</a>
							</li>
							<li class="nav-item">
								<a class="nav-link active" aria-current="page" href="<?= base_url().'compras/compras_list' ?>">Compras</a>
							</li>
							<li class="nav-item">
								<a class="nav-link active" aria-current="page" href="<?= base_url().'ventas/ventas_list' ?>">Ventas</a>
							</li>
							<li class="nav-item">
								<a class="nav-link active" aria-current="page" href="<?= base_url().'productos/productos_list' ?>">Productos</a>
							</li>
							<li class="nav-item">
								<a class="nav-link active" aria-current="page" href="<?= base_url().'administrador/' ?>">Administrador</a>
							</li>
						<?php } else if (session()->get('user_cargo')=="Tecnico")  { ?>

							<li class="nav-item">
								<a class="nav-link active" aria-current="page" href="<?= base_url().'ordenes/ordenes_list' ?>">Ordenes</a>
							</li>

						<?php } ?>
						
					</ul>

					<?php if ((session()->get('user_role')=="Administrador") || (session()->get('user_role')=="Contabilidad") || (session()->get('user_role')=="Recepcion")) { ?>
						<div class="d-flex justify-content-between align-items-center">
							<form class="d-flex my-auto" role="search" method="POST" action="<?= base_url() ?>clientes/search_clientes">
								<!-- Token CSRF -->
	      						<input type="hidden" name="csrf_test_name" value="<?= csrf_hash(); ?>">
								<input class="form-control me-1" type="search" name="search_clientes" placeholder="Search clientes" aria-label="Search">
								<button class="btn btn-outline-secondary" type="submit"><i class="bi bi-search"></i></button>
							</form>
						</div>
					<?php } ?>
				</div>
				
			</div>
		</nav>
	</header>
	