<?php if($citas): ?>
	<?php /* <?php if(!$asesor && !$concesionario): ?> */ ?>
	<?php /* <p>Asesor: TODOS - Concesionario: TODOS</p> */ ?>
	<!-- TOTAL POR CONCESIONARIO -->
	<table id="report-date-table" class="table table-condensed table-registro-citas">
		<tr>
			<th>Cliente</th>
			<?php /* <th>Email</th>
			<th>Telefono</th> */ ?>
			<th>Vehiculo</th>
			<th>Concesionario</th>
			<th>Sala</th>
			<th>Fecha Creación</th>
			<th>Fecha Cita</th>
			<th>Estado</th>
			<th>Asesor</th>
		</tr>
		<?php foreach($citas as $cita): ?>
			<tr>
				<td><?php echo e($cita->cliente_nombre); ?></td>
				<?php /* <td><?php echo e($cita->cliente_email); ?></td>
				<td><?php echo e($cita->cliente_telefono); ?></td> */ ?>
				<td><?php echo e($cita->vehiculo_modelo); ?> <?php echo e($cita->vehiculo_version); ?> <?php echo e($cita->vehiculo_ano); ?></td>
				<td><?php echo e($cita->concesionario); ?></td>
				<td><?php echo e($cita->sala); ?></td>
				<td><?php echo e(date('d/m/Y', strtotime($cita->fecha_create))); ?>, <?php echo e($cita->hora_create); ?>H  </td>
				<td>
					<?php if($cita->fecha_entrega): ?>
						<?php echo e(date('d/m/Y', strtotime($cita->fecha_entrega))); ?>, <?php echo e($cita->hora_entrega); ?>H
					<?php else: ?>
						Fecha no Asignada
					<?php endif; ?>
				</td>
				<td><?php echo e(ucfirst($cita->status_cita)); ?></td>
				<td><?php echo e($cita->asesor); ?></td>
			</tr>
		<?php endforeach; ?>
	</table>
	<?php /* <?php endif; ?> */ ?>

	<?php /* <?php if(!$asesor && $concesionario): ?>
	<?php foreach($concesionario as $key => $value): ?>


	<p>Asesor: TODOS - Concesionario: <?php echo e($value->nombre); ?></p>
	<!-- TOTAL POR CONCESIONARIO -->
	<table  id="report-date-table" class="table table-condensed">
	<tr>
	<th>Cliente</th>
	<th>Email</th>
	<th>Telefono</th>
	<th>Vehiculo</th>
	<th>Concesionario</th>
	<th>Sala</th>
	<th>Fecha</th>
	<th>Estado</th>
	<th>Asesor</th>
</tr>
<?php foreach($citas as $cita): ?>
<tr>
<td><?php echo e($cita->cliente_nombre); ?></td>
<td><?php echo e($cita->cliente_email); ?></td>
<td><?php echo e($cita->cliente_telefono); ?></td>

<td><?php echo e($cita->slug); ?></td>
<td><?php echo e($cita->concesionario); ?></td>
<td><?php echo e($cita->sala); ?></td>
<td><?php echo e(date('d/m/Y', strtotime($cita->fecha_entrega))); ?>, <?php echo e($cita->hora_entrega); ?>H </td>
<td><?php echo e(ucfirst($cita->status_cita)); ?></td>
<td><?php echo e($cita->asesor); ?></td>
</tr>
<?php endforeach; ?>
</table>
<?php endforeach; ?>
<?php endif; ?>

<?php if($asesor && !$concesionario): ?>
<p>Asesor: <?php echo e($asesor->fullName); ?> - Concesionario: TODOS</p>
<!-- TOTAL POR CONCESIONARIO -->
<table id="report-date-table" class="table table-condensed">
<tr>
<th>Cliente</th>
<th>Email</th>
<th>Telefono</th>
<th>Vehiculo</th>
<th>Concesionario</th>
<th>Sala</th>
<th>Fecha</th>
<th>Estado</th>
</tr>
<?php foreach($citas as $cita): ?>
<tr>
<td><?php echo e($cita->cliente_nombre); ?></td>
<td><?php echo e($cita->cliente_email); ?></td>
<td><?php echo e($cita->cliente_telefono); ?></td>
<!--	<td><?php echo e($cita->vehiculo_modelo); ?> <?php echo e($cita->vehiculo_version); ?> <?php echo e($cita->vehiculo_ano); ?></td>-->
<td><?php echo e($cita->slug); ?></td>
<td><?php echo e($cita->concesionario); ?></td>
<td><?php echo e($cita->sala); ?></td>
<td><?php echo e(date('d/m/Y', strtotime($cita->fecha_entrega))); ?>, <?php echo e($cita->hora_entrega); ?>H </td>
<td><?php echo e(ucfirst($cita->status_cita)); ?></td>
</tr>
<?php endforeach; ?>
</table>
<?php endif; ?>

<?php if($asesor && $concesionario): ?>
<p>Asesor: <?php echo e($asesor->fullName); ?> - Concesionario: <?php echo e($concesionario->nombre); ?></p>
<!-- TOTAL POR CONCESIONARIO -->
<table id="report-date-table" class="table table-condensed">
<tr>
<th>Cliente</th>
<th>Email</th>
<th>Telefono</th>
<th>Vehiculo</th>
<th>Concesionario</th>
<th>Sala</th>
<th>Fecha</th>
<th>Estado</th>
</tr>
<?php foreach($citas as $cita): ?>
<tr>
<td><?php echo e($cita->cliente_nombre); ?></td>
<td><?php echo e($cita->cliente_email); ?></td>
<td><?php echo e($cita->cliente_telefono); ?></td>
<!--	<td><?php echo e($cita->vehiculo_modelo); ?> <?php echo e($cita->vehiculo_version); ?> <?php echo e($cita->vehiculo_ano); ?></td>-->
<td><?php echo e($cita->slug); ?></td>
<td><?php echo e($cita->concesionario); ?></td>
<td><?php echo e($cita->sala); ?></td>
<td><?php echo e(date('d/m/Y', strtotime($cita->fecha_entrega))); ?>, <?php echo e($cita->hora_entrega); ?>H </td>
<td><?php echo e(ucfirst($cita->status_cita)); ?></td>
</tr>
<?php endforeach; ?>
</table>
<?php endif; ?> */ ?>

<?php else: ?>
	<div class="alert alert-warning">
		No hay información disponible.
	</div>
<?php endif; ?>


<?php $__env->startSection('css'); ?>
	<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"/>
	<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap.min.css"/>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
	<script type="text/javascript" src="https://cdn.datatables.net/v/dt/dt-1.10.18/datatables.min.js"></script>
	<script type="text/javascript" src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap.min.js"></script>
	<script type="text/javascript" src="/scripts/table-registros-citas.js"></script>
<?php $__env->stopSection(); ?>