<?php if(!$totalVentas): ?>
	<div class="alert alert-warning">
		No hay información disponible para el período seleccionado.
	</div>
<?php elseif($tipo == 'ventas_asesor_vitrina'): ?>
	<table class="table table-striped table-bordered">
		<tr>
			<th>Concesionario</th>
			<th>Asesor</th>
			<th>Total de ventas</th>
		</tr>
		<?php foreach($totalVentas as $venta): ?> 
		<tr>
			<td><?php echo e($venta->concesionario); ?></td>
			<td><?php echo e($venta->asesor); ?></td>
			<td><?php echo e($venta->total_ventas); ?></td>
		</tr>
		<?php endforeach; ?>
	</table>
<?php elseif($tipo == 'ventas_vitrina'): ?>
	<table class="table table-striped table-bordered">
		<tr>
			<th>Concesionario</th>
			<th>Total de ventas</th>
		</tr>
		<?php foreach($totalVentas as $venta): ?> 
		<tr>
			<td><?php echo e($venta->concesionario); ?></td>
			<td><?php echo e($venta->total_ventas); ?></td>
		</tr>
		<?php endforeach; ?>
	</table>
<?php elseif($tipo == 'ventas_asesor'): ?>
	<table class="table table-striped table-bordered">
		<tr>
			<th>Asesor</th>
			<th>Concesionario</th>
			<th>Total de ventas</th>
		</tr>
		<?php foreach($totalVentas as $venta): ?> 
		<tr>
			<td><?php echo e($venta->asesor); ?></td>
			<td><?php echo e($venta->concesionario); ?></td>
			<td><?php echo e($venta->total_ventas); ?></td>
		</tr>
		<?php endforeach; ?>
	</table>
<?php elseif($tipo == 'total_ventas'): ?>
	<table class="table table-striped table-bordered">
		<tr>
			<th>Total de ventas</th>
		</tr>
		<tr>
			<td><?php echo e($totalVentas); ?></td>
		</tr>
	</table>
<?php endif; ?>