
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>Reserva Victoria Restauración</title>

  <link href="https://fonts.googleapis.com/css?family=Nunito+Sans&display=swap" rel="stylesheet">

	<style type="text/css">

	</style>

</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="background-color: #fff; font-family: Nunito Sans, sans-serif; color: #4c5760;">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center" valign="top"><table width="700" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="100" valign="middle" style="text-align:center">
          <a href="" title="JIG - Sistema de Reservas">
            <img src="<?php echo $data['domainLink']; ?>/wp-content/plugins/visitas/modules/visitas/reservas/images/logo_mail.jpg" alt="Sistema de Reservas"/>
          </a>
        </td>
      </tr>
      <tr>
        <td valign="top"><table width="700" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td  colspan="3" valign="top" style=" font-size:12px; padding:10px; ">Hello <?php echo $data['nombre']; ?>,<br />
              your booking has been made successfully. Keep and print this ticket. </td>
          </tr>
          <tr>
            <td class="localizador" colspan="3" style="background-color: #A50035; color: white; padding:10px;"><span style=" font-size:14px;">BOOKING REFERENCE</span>: <span style="font-family: Nunito Sans, sans-serif; font-size:14px; font-weight:bold;"><?php echo $data['localizador']; ?></span></td>
          </tr>
          <tr>
            <td colspan="3">&nbsp;</td>
          </tr>
          <tr>
            <td height="120" valign="top" ><table width="340" height="100%" border="0" >
              <tr>
                <td style="padding:10px; background:#353535; color:white; font-size:12px">TICKET BOOKING</td>
              </tr>
              <tr>
                <td  style="padding:10px; background:#fcfcfc;  font-size:12px"><strong>Activity</strong>: <?php echo $data['actividad_nombre']; ?><br />
                  <strong>Date of purchase: </strong> <?php echo $data['fecha_compra'];  ?></td>
              </tr>
            </table></td>
            <td width="20">&nbsp;</td>
            <td valign="top"><table width="340" border="0" >
              <tr>
                <td style="padding:10px; background:#353535; color:white; font-size:12px"> PERSONAL INFORMATION</td>
              </tr>
              <tr>
                <td  style="padding:10px; background:#fcfcfc;  font-size:12px"><?php if($data['nombre'] != ''){ ?>
                  <strong>First name:</strong> <?php echo $data['nombre']; ?><br />
                  <?php } ?>
                  <?php if($data['apellidos'] != ''){ ?>
                  <strong>Last name: </strong><?php echo $data['apellidos']; ?><br />
                  <?php } ?>
                  <strong>Telephone: </strong><?php echo $data['telefono']; ?><br />
                  <?php if($data['email'] != ''){ ?>
                  <strong>Email: </strong><?php echo $data['email']; ?><br />
                <?php } ?>
                 <?php if($data['campos_extra'] != ''){
                  foreach($data['campos_extra'] as $campo) 
				  { 
					  echo $campo;
				  } }
				  ?>
				  </td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td><table width="340" border="0" >
              <?php if ( !is_null($data['fecha']) ): ?>
              <tr>
                <td style="padding:10px; background:#353535; color:white; font-size:12px">BOOKING DETAILS</td>
              </tr>
              <tr>
                <td  style="padding:10px; background:#fcfcfc;  font-size:12px">
				<strong>Booked places:</strong> <?php echo $data['plazas']; ?>&nbsp;&nbsp;&nbsp; <strong>
                  <?php if (isset($data['servicio_nombre_compra']) ): ?>
                  <?php echo $data['servicio_nombre_compra']; ?> </strong><br />
                  <?php endif; ?>
                  <strong>Adult places:</strong> <?php echo $data['plazas_adulto']; ?><br />
                  <?php if($data['plazas_infantil'] != 0){ ?>
                  <strong>Infant places:</strong> <?php echo $data['plazas_infantil']; ?><br />
                  <?php } ?>
                  <strong>Wine cellar:</strong> <?php echo $data['instalacion_nombre']; ?><br />
                  <strong>Date:</strong> <?php echo $data['fecha']; ?><br />
                  <strong>Time:</strong> <?php echo $data['hora']; ?><br />
                  <strong>Language:</strong> <?php echo $data['idioma_visita']; ?><br />
                
					<?php if($data['opciones_seleccionadas'] != ''){?>
                  <strong>Select options visit:</strong>
                  <table>
                    <?php foreach($data['opciones_seleccionadas'] as $opcion) {?>
                    <tr>
                      <td></td>
                      <td style="font-size:12px; text-align:center"><?php echo $opcion; ?></td>
                    </tr>
                    <?php } ?>
                  </table>
                  <?php } ?>
                  
                  <?php if($data['creditos'] == 1){ ?>
                  <strong>Total credits:</strong> <?php echo $data['creditos_totales'].' créditos'; ?><br />
                  <strong>Remaining credits:</strong> <?php echo $data['creditos_restantes'].' créditos'; ?><br />
                  <?php } ?></td>
              </tr>
              <?php endif; ?>
            </table></td>
            <td>&nbsp;</td>
          </tr>
          <tr style="">
            <td colspan="3" align="center" >
				<?php echo $data['message_servicio_emailPdf']; ?>
				<p><img src="<?php echo $data['domainLink']; ?>/img/separator.png" width="533" height="54" alt="" /></p>
            </td>
          </tr>
          <tr>
            <td colspan="3" valign="top" style=" font-size:10px; padding:10px; valign:top;">
				<p style="text-align:justify">GENERAL CONDITIONS OF PURCHASE<br /></p>
				<?php echo $data['message_generico_emailPdf']; ?>
			</td>
          </tr>
        </table></td>
      </tr>
      <tr>
               <td style="background:#cecece; color:white; font-size:10px; padding:10px; text-align:center;"><table width="700" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="640"><a style="color:white; text-decoration:none" href="" target="_blank">© <strong>Victoria Restauración</strong></a></td>
  </tr>
</table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
