<!DOCTYPE html>
<html lang="es">
<head>
	<meta name="robots" content="noindex, nofollow">
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="author" content="F. Alexander Osorio C.">
	<title><?php echo e($paciente->nombre); ?> - <?php echo e($programa->nombre); ?> - Formulario de seguimiento</title>
	<style type="text/css">
		td, th {
			padding-right: 8px;
		}
		p, td, th {
			font-family: Verdana, Geneva, sans-serif;
			vertical-align:top;
			text-align: left;
		}
		table {
			margin-left: -2px
		}
		hr {
			border: none;
			border-top: dashed 1px #9e9e9e;
			padding: 0px;
			margin: 0px;
			margin-top: -20px;

		}
		table.informe  tr  th {
			font-size: 9px;
			text-align: right;
		}
		table.informe  tr  td {
			font-size: 9px;
			width: 120px;
		}
		table.informe thead tr th {
			text-align: left;
		}
		table.informe > thead > tr > th:first-child {
			text-align: right;
		}
		body{
			margin-top: 10px;
		}
		table.bordered {
			margin: 0 0 20px 0
		}
		table.bordered td, table.bordered th{
			border: solid 1px #9e9e9e;
			margin: 0px;
			padding: 2px 5px;
			border-collapse: collapse;
		}

	</style>
</head>
<body style="font-size:0.7rem">

	<?php echo $__env->make('pdfs.encabezado-pdf', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
	<?php echo $__env->make('formularios.seguimiento-pdf.'.$programa->url, array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

	<?php /* agregar la lista de medicamentos recetados */ ?>
	<?php if(count($medicamentos)): ?>
		<table class="bordered" cellpadding="0" cellspacing="0">
			<thead>
				<tr>
					<th colspan="6">Lista de medicamentos:</th>
				</tr>
				<tr>
					<th>CUM</th>
					<th>Código</th>
					<th>Nombre del medicamento</th>
					<th>Cantidad</th>
					<th>Posología</th>
					<th>Duracion_Tto</th>
				</tr>
			</thead>
			<tbody>
				<?php foreach($medicamentos as $medicamento): ?>
					<tr>
						<td><?php echo e($medicamento->cum); ?></td>
						<td><?php echo e($medicamento->cod); ?></td>
						<td><?php echo e($medicamento->nombre); ?></td>
						<td><?php echo e($medicamento->cantidad); ?></td>
						<td><?php echo e($medicamento->posologia); ?></td>
						<td><?php echo e($medicamento->duracion_tto); ?></td>
                    </tr>
				<?php endforeach; ?>
			</tbody>
		</table>
	<?php endif; ?>

	<?php if(count($procedimientos)): ?>
		<table class="bordered" cellpadding="0" cellspacing="0">
			<thead>
				<tr>
					<th colspan="4">Lista de procedimientos:</th>
				</tr>
				<tr>
					<th>Código</th>
					<th>Nombre examen</th>
					<th>Cantidad</th>
					<th>Observaciones</th>
				</tr>
			</thead>
			<tbody>
				<?php foreach($procedimientos as $procedimiento): ?>
					<tr>
						<td><?php echo e($procedimiento->cups); ?></td>
						<td><?php echo e($procedimiento->nombre); ?></td>
						<td><?php echo e($procedimiento->cantidad); ?></td>
						<td><?php echo e($procedimiento->observaciones); ?></td>
					</tr>
				<?php endforeach; ?>
			</tbody>
		</table>
	<?php endif; ?>

	<?php if(count($remisiones)): ?>
		<table class="bordered" cellpadding="0" cellspacing="0">
			<thead>
				<tr>
					<th colspan="5">Lista de remisiones:</th>
				</tr>
				<tr>
					<th>Tipo</th>
					<th>destino</th>
					<th>Especialidad</th>
					<th>Servicio</th>
					<th>Ordenamiento</th>
				</tr>
			</thead>
			<tbody>
				<?php foreach($remisiones as $remision): ?>
					<tr>
						<td><?php echo e($remision->tipo); ?></td>
						<td><?php echo e($remision->destino); ?></td>
						<td><?php echo e($remision->especialidad); ?></td>
						<td><?php echo e($remision->servicio); ?></td>
						<td><?php echo e($remision->ordenamiento); ?></td>
					</tr>
				<?php endforeach; ?>
			</tbody>
		</table>
	<?php endif; ?>

	<?php echo $__env->make('pdfs.footer-pdf', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

</body>
</html>
