<?php if(!$totalCitas): ?>
	<!-- SIN CITAS -->
	<div class="alert alert-warning">
		No hay información disponible para el período seleccionado.
	</div>
<?php elseif($tipo == 'total_global'): ?>
	<!-- TOTAL DE CITAS -->
	<table class="table table-striped table-bordered">
		<tr>
			<th>Total global de citas</th>
		</tr>
		<tr>
			<td><?php echo e($totalCitas); ?></td>
		</tr>
	</table>
<?php elseif($tipo == 'total_concesionario_status'): ?>
	<!-- TOTAL POR CONCESIONARIO Y STATUS -->
	<table class="table table-striped table-bordered">
		<tr>
			<th>Concesionario</th>
			<th>Estatus de Cita</th>
			<th>Total de citas</th>
		</tr>
		<?php foreach($totalCitas as $cita): ?> 
		<tr>
			<td><?php echo e($cita->concesionario); ?></td>
			<td><?php echo e($cita->status); ?></td>
			<td><?php echo e($cita->total_citas); ?></td>
		</tr>
		<?php endforeach; ?>
	</table>
<?php elseif($tipo == 'total_concesionario'): ?>
	<!-- TOTAL POR CONCESIONARIO -->
	<table class="table table-striped table-bordered">
		<tr>
			<th>Concesionario</th>
			<th>Total de citas</th>
		</tr>
		<?php foreach($totalCitas as $cita): ?> 
		<tr>
			<td><?php echo e($cita->concesionario); ?></td>
			<td><?php echo e($cita->total_citas); ?></td>
		</tr>
		<?php endforeach; ?>
	</table>
<?php elseif($tipo == 'total_status'): ?>
	<!-- TOTAL POR STATUS -->
	<table class="table table-striped table-bordered">
		<tr>
			<th>Estatus de cita</th>
			<th>Total de citas</th>
		</tr>
		<?php foreach($totalCitas as $cita): ?> 
		<tr>
			<td><?php echo e($cita->status); ?></td>
			<td><?php echo e($cita->total_citas); ?></td>
		</tr>
		<?php endforeach; ?>
	</table>
<?php elseif($tipo == 'total_asesor'): ?>
	<!-- TOTAL POR ASESOR -->
	<table class="table table-striped table-bordered">
		<tr>
			<th>Asesor</th>
			<th>Total de citas</th>
		</tr>
		<?php foreach($totalCitas as $cita): ?> 
		<tr>
			<td><?php echo e($cita->asesor); ?></td>
			<td><?php echo e($cita->total_citas); ?></td>
		</tr>
		<?php endforeach; ?>
	</table>
<?php elseif($tipo == 'total_asesor_concesionario'): ?>
	<!-- TOTAL POR ASESOR -->
	<table class="table table-striped table-bordered">
		<tr>
			<th>Concesionario</th>
			<th>Total de citas</th>
		</tr>
		<?php foreach($totalCitas as $cita): ?> 
		<tr>
			<td><?php echo e($cita->concesionario); ?></td>
			<td><?php echo e($cita->total_citas); ?></td>
		</tr>
		<?php endforeach; ?>
	</table>
<?php elseif($tipo == 'total_asesor_status'): ?>
	<!-- TOTAL POR ASESOR -->
	<table class="table table-striped table-bordered">
		<tr>
			<th>Asesor</th>
			<th>Status</th>
			<th>Total de citas</th>
		</tr>
		<?php foreach($totalCitas as $cita): ?> 
		<tr>
			<td><?php echo e($cita->asesor); ?></td>
			<td><?php echo e($cita->status); ?></td>
			<td><?php echo e($cita->total_citas); ?></td>
		</tr>
		<?php endforeach; ?>
	</table>
<?php elseif($tipo == 'total_asesor_concesionario_status'): ?>
	<!-- TOTAL POR ASESOR -->
	<table class="table table-striped table-bordered">
		<tr>
			<th>Concesionario</th>
			<th>Asesor</th>
			<th>Status</th>
			<th>Total de citas</th>
		</tr>
		<?php foreach($totalCitas as $cita): ?> 
		<tr>
			<td><?php echo e($cita->concesionario); ?></td>
			<td><?php echo e($cita->asesor); ?></td>
			<td><?php echo e($cita->status); ?></td>
			<td><?php echo e($cita->total_citas); ?></td>
		</tr>
		<?php endforeach; ?>
	</table>
<?php endif; ?>