<table style="margin-bottom: 1px">
	<tr>
		<?php /* 700px en total */ ?>
		<td style="width: 343px">
			<p style="text-transform: uppercase; margin-bottom: 3px; margin-top: 0px">
				<b><?php echo e($empresa->nombre); ?></b> <br> <b>NIT:</b> <?php echo e($empresa->nit); ?><br>
				<b>Teléfonos:</b> <?php echo e($empresa->telefono); ?> - <b>Fax:</b> <?php echo e($empresa->fax); ?><br>
				<b>Dirección:</b> <?php echo e($empresa->direccion); ?>

			</p>
			<hr>
			<h2 style="margin-bottom: 2px; margin-top: 10px;">
				<?php if(isset($tipoReporte)): ?>
					<?php echo e($tipoReporte); ?>

				<?php else: ?>
					HISTORIA CLÍNICA
				<?php endif; ?>
			</h2>
		</td>
		
		<td style="text-align:right; width: 343px" colspan="2">
			<img style="max-height: 60px" src='<?php echo e(URL::to("img/logotipos/$empresa->logotipo")); ?>'>
		</td>

	</tr>
</table>

<table style="margin-top: -14px">
	<tr>
		<td>
			<b><u>DATOS DEL PACIENTE</u></b><br>
			<b>Documento:</b> <?php echo e($paciente->documento); ?><b>        Tipo:</b> <?php echo e($paciente->tipo_doc); ?> <b>      Nombre:</b> <?php echo e($paciente->nombre); ?> <b>       Sexo:</b> <?php echo e($sexos[$paciente->sexo]); ?> <br>
			<b>Dirección:</b> <?php echo e($paciente->direccion); ?><b>        Teléfono1:</b> <?php echo e($paciente->telefono_1); ?> <br>
		</td>
	</tr>

	</table>

<table style="margin-top: -4px; margin-bottom: 2px; line-height: 9px">
	<tr">
		<td colspan="3">	
			<b style="text-transform: uppercase;">Programa: <?php echo e($programa->nombre); ?></b> <br>
		</td>
	</tr>
	<tr">
		<td>
			<b>Fecha:</b> <b style="font-weight: normal"><?php echo e($formulario->fecha); ?></b>
		</td>
		<td>
			<b>Hora:</b> <b style="font-weight: normal"><?php echo e($formulario->hora); ?> (formato 24 horas)</b>
		</td>
		<td>
			<b>Edad:</b> <b style="font-weight: normal"><?php echo e($paciente->edad); ?></b>
		</td>
	</tr>
	<?php if($tipoFormulario == 'seguimiento'): ?>
		<tr>
			<td colspan="3">	
				<b>Entidad:</b> <b style="font-weight: normal"><?php echo e($formulario->entidad); ?></b>
			</td>
		</tr>
	<?php endif; ?>
</table>
<hr>