<?php
$f = $a == 'f' ? 'active' : '';
$d = $a == 'd' ? 'active' : '';
$fi = $a == 'fi' ? 'active' : '';
$fe = $a == 'fe' ? 'active' : '';
$nd = $a == 'nd' ? 'active' : '';
?>
<ul class="nav nav-pills alt-pills mb-2">
	<li class="nav-item">
		<a class="nav-link py-1 <?php echo $f; ?>" href="/compras/index/1">Facturas</a>
	</li>
	<li class="nav-item">
		<a class="nav-link py-1 <?php echo $fe; ?>" href="/compras/index/4">Facturas No Afectas</a>
	</li>
	<li class="nav-item">
		<a class="nav-link py-1 <?php echo $d; ?>" href="/compras/index/2">Dins</a>
	</li>
	<li class="nav-item">
		<a class="nav-link py-1 <?php echo $fi; ?>" href="/compras/index/3">Facturas Internacionales</a>
	</li>
	<li class="nav-item">
		<a class="nav-link py-1 <?php echo $nd; ?>" href="/compras/index/5">Notas de Débito</a>
	</li>
	<li class="nav-item">
		<a class="nav-link py-1 <?php echo $nd; ?>" href="/ventas/index/<?php echo date('Ym'); ?>/2?tipo=3">Notas de Crédito</a>
	</li>
</ul>
