<?php

namespace App\Libraries;

class PlantillasCorreo {

    function holamundo()
    {
        $texto = "hola mundo";
        return $texto;
    }

    // public function cuerpoConfirmacionReferidoColaborador($array)
    // {
    //     $cuerpo = '';

    //     $cuerpo .= '<!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"/>
				// 		<meta name="viewport" content="width=480, user-scalable=1" />
				// 		<title>Verisure Perú</title>
				// 		<link href="https://fonts.googleapis.com/css?family=Fira+Sans:400,700" rel="stylesheet">
				// 	</head>
				// 	<body style="margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; background-color:#f4f4f4">
				// 		<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" bgcolor="#f4f4f4">
				// 		<tr>
				// 			<td align="center">
				// 				<!-- CREATIVIDAD -->
				// 				<table width="600" height="0" bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="0">
				// 					<tr>
				// 						<td width="600"><img src="https://verismart.com.pe/guia/top.png" alt="Alarmas para tu Hogar" width="600"  border="0" style="display:block; padding:0; border:0" /></td>
				// 					</tr>
				// 				</table>
								
				// 				<table style="background-color: #ffffff;" width="550" cellspacing="0" cellpadding="0" border="0">
				// 					<tbody>
				// 						<tr>
				// 							<td width="500">
				// 								<p style="text-align: center;font-size: 24px;font-family:  Fira Sans, Arial;color: #ff0033; font-weight: bold;margin-top: 0px; ">CREACION DE REFERIDO '.$array['NombreCliente'].'</p>
				// 								<p style="text-align: justify;font-size: 18px;font-family:  Fira Sans, Arial;color: #757575;margin-bottom: 25px; padding:0px 25px;">Matricula Colaborador: '.$array['MatriculaColaborador'].' </p>
				// 								<p style="text-align: justify;font-size: 18px;font-family:  Fira Sans, Arial;color: #757575;margin-bottom: 25px; padding:0px 25px;">Nombre Colaborador: '.$array['NombreColaborador'].' </p>
				// 								<p style="text-align: justify;font-size: 18px;font-family:  Fira Sans, Arial;color: #757575;margin-bottom: 25px; padding:0px 25px;">Segmento: '.$array['Segmento'].' </p>
				// 							</td>
				// 						</tr>
				// 					</tbody>
				// 				</table>
								
				// 				<table width="600" height="0" bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="0">
				// 					<tr>
				// 						<td width="600"><img src="https://verismart.com.pe/guia/blank.png" alt="Alarmas para tu Hogar" width="600"  border="0" style="display:block; padding:0; border:0" /></td>
				// 					</tr>
				// 				</table>
				// 				<br>
				// 				<table width="550" height="0"  border="0" cellspacing="0" cellpadding="0">
				// 					<tr>
				// 						<td align="left" style="font-size: 14px; line-height: 1px; font-family: Fira Sans, sans-serif; color: #747474; text-align: left;"><img alt="-------" src="https://www.verisure.co.uk/alarms/customers/emails/html/img/line_dotted.gif" style="display: block; margin: 0 auto; display: inline-block; max-width: 100%; height: auto;" width="118" height="1" border="0" /><img alt="-------" src="https://www.verisure.co.uk/alarms/customers/emails/html/img/line_dotted.gif" style="display: block; margin: 0 auto; display: inline-block; max-width: 100%; height: auto;" width="118" height="1" border="0" /></td>
				// 						<td style="padding: 0 8px; font-size: 14px; line-height: 50px; font-family: Lucida Grande, Lucida Sans Unicode, Lucida Sans, DejaVu Sans, Verdana, sans-serif; color: #333333; text-align: center;" align="-">
				// 							<img alt="Canal Cliente: siempre a su servicio" src="https://verismart.com.pe/guia/ico-contacto.png" style="display: block; margin: 0 auto; display: inline-block; max-width: 100%; height: auto;" width="50" height="50" border="0">
				// 						</td>
				// 						<td align="right" style="font-size: 14px; line-height: 1px; font-family: Fira Sans, sans-serif; color: #747474; text-align: right;">
				// 							<img alt="-------" src="https://www.verisure.co.uk/alarms/customers/emails/html/img/line_dotted.gif" style="display: block; margin: 0 auto; display: inline-block; max-width: 100%; height: auto;" width="118" height="1" border="0"><img alt="-------" src="https://www.verisure.co.uk/alarms/customers/emails/html/img/line_dotted.gif" style="display: block; margin: 0 auto; display: inline-block; max-width: 100%; height: auto;" width="118" height="1" border="0" />
				// 						</td>
				// 					</tr>
				// 				</table>
				// 				<table width="550" height="0"  border="0" cellspacing="0" cellpadding="0">
				// 					<tr>
				// 						<td style="padding-left: 5px; padding-right: 5px; padding-top: 16px; font-size: 13px; line-height: 15px; font-family: Fira Sans, Arial, sans-serif; color: #737373; text-align: center;" width="33.333%" align="center">
				// 							<p >E-mail</p>
				// 						</td>
				// 						<td style="padding-left: 5px; padding-right: 5px; padding-top: 16px; font-size: 13px; line-height: 15px; font-family: Fira Sans, Arial, sans-serif; color: #737373; text-align: center;" width="33.333%" align="center">
				// 							<p >Teléfono</p>
				// 						</td>
				// 						<td style="padding-left: 5px; padding-right: 5px; padding-top: 16px; font-size: 13px; line-height: 15px; font-family: Fira Sans, Arial, sans-serif; color: #737373; text-align: center;" width="33.333%" align="center">
				// 							<p>Chat App MyVerisure</p>
				// 					</tr>
				// 					<tr>
				// 						<td style="padding-left: 5px; padding-right: 5px; font-size: 14px; line-height: 42px; font-family: Arial, sans-serif; color: #333333; text-align: center; border-right: 0px solid #979797" width="33.333%" align="center">
				// 							<img alt="•" src="https://verismart.com.pe/guia/ico-m.png" style="display: inline-block;" width="34" height="42" border="0">
				// 						</td>
				// 						<td style="padding-left: 5px; padding-right: 5px; font-size: 14px; line-height: 42px; font-family: Arial, sans-serif; color: #333333; text-align: center;border-left: solid 1px;border-right: solid 1px;" >
				// 							<img alt="•" src="https://verismart.com.pe/guia/ico-telefono.png" style="display: inline-block;" width="45" height="42" border="0">
				// 						</td>
				// 						<td style="padding-left: 5px; padding-right: 5px; font-size: 14px; line-height: 42px; font-family: Arial, sans-serif; color: #333333; text-align: center;" width="33.333%" align="center">
				// 							<img alt="•" src="https://verismart.com.pe/guia/ic-chat.png" style="display: inline-block;" width="45" height="42" border="0">
				// 						</td>
				// 					</tr>
				// 					<tr>
				// 						<td style="padding-left: 5px; padding-right: 5px; padding-top: 16px; font-size: 13px; line-height: 15px; font-family: Arial, sans-serif; color: #737373; text-align: center;" width="33.333%" align="center">
				// 							<a href="mailto:clientes@verisure.pe" style="color: #737373; text-decoration: none; display: block; font-family: Fira Sans, Lucida Sans Unicode, Lucida Sans, DejaVu Sans, Verdana, sans-serif; font-size: 14px;"><span >clientes@verisure.pe</span><br><span style="color: #a9a9a9; display: block; font-family: Lucida Grande, Lucida Sans Unicode, Lucida Sans, DejaVu Sans, Verdana, sans-serif; font-size: 14px; padding-top: 4px;">24h</span></a>
				// 						</td>
				// 						<td style="padding-left: 5px; padding-right: 5px; padding-top: 16px; font-size: 13px; line-height: 15px; font-family: Arial, sans-serif; color: #737373; text-align: center;" width="33.333%" align="center">
				// 							<a href="tel:0 800 2 12 12" style="color: #737373; text-decoration: none; display: block; font-family: Fira Sans, Lucida Sans Unicode, Lucida Sans, DejaVu Sans, Verdana, sans-serif; font-size: 14px;"><span >0 800 2 12 12</span><br><span style="color: #a9a9a9; display: block; font-family: Fira Sans, Lucida Sans Unicode, Lucida Sans, DejaVu Sans, Verdana, sans-serif; font-size: 14px; padding-top: 4px;">24h</span></a>
				// 						</td>
				// 						<td style="padding-left: 5px; padding-right: 5px; padding-top: 16px; font-size: 13px; line-height: 15px; font-family: Arial, sans-serif; color: #737373; text-align: center;" width="33.333%" align="center">
				// 							<a href="" style="color: #737373; text-decoration: none; display: block; font-family: Fira Sans, Lucida Sans Unicode, Lucida Sans, DejaVu Sans, Verdana, sans-serif; font-size: 14px;"><span >Lunes a Viernes</span><br><span style="color: #a9a9a9; display: block; font-family: Lucida Grande, Lucida Sans Unicode, Lucida Sans, DejaVu Sans, Verdana, sans-serif; font-size: 14px; padding-top: 4px;">9:00 a.m. - 6:00 p.m.</span></a>
				// 					</tr>
				// 				</table>
				// 				<br><br>
				// 				<table style="border-radius: 0px 0px 45px 45px;" width="550" cellspacing="0" cellpadding="0" border="0" bgcolor="#ffffff" align="center">
				// 					<tbody>
				// 						<tr>
				// 							<td width="600">
				// 								<p style="text-align: center;  font-size: 16px;font-family:  Fira Sans, Arial;color: #ff0033; margin-top: 20px;">Personas que protegen a personas</p>
				// 								<p style="text-align: center;font-size: 12px;font-family:  Fira Sans, Arial;color: #606060;margin-bottom: 5px;">S&iacute;guenos en redes sociales</p>
				// 							</td>
				// 						</tr>
				// 						<tr>
				// 							<td width="600">
				// 								<p style="text-align: center;font-size: 12px;font-family:Fira Sans, Arial;color: #606060;"><a href="https://www.facebook.com/AlarmasVerisurePeru/" style="color:#ff0033">Facebook</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="https://www.youtube.com/channel/UCsC7LzKdqytaOQ58IL011eQ" style="color:#ff0033">Youtube</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="https://www.instagram.com/verisurepe/" style="color:#ff0033">Instagram</a></p>
				// 							</td>
				// 						</tr>
				// 					</tbody>
				// 				</table>
				// 				<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" bgcolor="#f4f4f4">
				// 					<tbody>
				// 						<tr>
				// 							<td width="550">
				// 								<p style="color: #c1c1c1;text-align: center;font-size: 10px;font-family:  Fira Sans, Arial;padding-bottom: 10px; padding-top: 15px;"> Copyright © 2022 Verisure Peru, All rights reserved. Nuestra dirección es: Av. Primavera 1050 Oficina 501 – Santiago de Surco.
				// 							</td>
				// 						</tr>
				// 					</tbody>
				// 				</table>
				// 			</td>
				// 		</tr>
				// 	</table>
				// </html>';

    //     return $cuerpo;
    // }
    
    public function cuerpoConfirmacionReferidoCliente($array)
    {
        $cuerpo = '';
        
        $cuerpo .= '<!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" />
                <meta name="viewport" content="width=480, user-scalable=1" />
                <title>Verisure Perú</title>
                <link href="https://fonts.googleapis.com/css?family=Fira+Sans:400,700" rel="stylesheet">
            </head>
            <body style="margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; background-color:#F4F4F4;">
                <table width="600" align="center" border="0" cellspacing="0" cellpadding="0" bgcolor="#F4F4F4">
                    <tr>
                        <td align="center">
                            <!-- CREATIVIDAD -->
                            <table width="600" height="0" bgcolor="#F4F4F4" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <img src="'.$array['baseUrl'].'/public/images/clientesverisure/cabecera-gestion.png" alt="Alarmas para tu Hogar" width="600" border="0" style="display:block; padding:0; border:0;" />
                                </tr>
                                <table width="500" bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="0">
                                    <tr width="500">
                                        <th>
                                            <p style="font-family:\'Fira Sans\',Arial;font-size: 13px;padding:0px 0px 0px 0px;color: #4d4d4d;text-align: justify;margin: 20px 20px 20px 20px; font-weight: normal;">
                                                <strong>Estimado Cliente,</strong><br><br>Desde este momento, nuestra máxima prioridad es protegerle a usted y
                                                lo que más le importa. Agradecemos su interés por proteger también a su círculo más cercano recomendándoles
                                                ser parte de la familia Verisure.<br><br>Por este medio, confirmamos que ha completado el <strong>formulario
                                                de Referidos,</strong> otorgando su consentimiento libre, previo, informado, expreso e inequívoco con las
                                                <span style="color:#ff0033;text-decoration: underline;"></span>
                                                <a href="'.$array['url_politica'].'" style="color:#ff0033;">Condiciones del Tratamiento de Datos Personales</a>, 
                                                así como con los <span style="color:#ff0033;text-decoration: underline;"></span>
                                                <a href="'.$array['url_tyc'].'" style="color:#ff0033;">Términos y Condiciones del Programa Referidos.</a>
                                                <br>
                                            </p>
                                            <table width="600" height="0" bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <th><img src="'.$array['baseUrl'].'/public/images/clientesverisure/boton-gestion.png" width="600"></th>
                                                </tr>
                                            </table>
                                        </th>
                                    </tr>
                                </table>
                                <!-- tabla -->
                                <table width="500" cellspacing="0" cellpadding="0" border="1" align="center" bordercolor="#f4f4f4" style="text-align: center; font-size: 13pt;">
                                    <tr>
                                        <th style="width: 30%;font-size:11pt;line-height:150%;font-family:Fira Sans, Arial,Helvetica,sans-serif;text-align: center;background:#b5b5b5;color:white">Primer nombre</th>
                                        <th style="width: 30%;font-size:11pt;line-height:150%;font-family:Fira Sans, Arial,Helvetica,sans-serif;text-align: center;background:#b5b5b5;color:white">Primer apellido</th>
                                        <th style="width: 30%;font-size:11pt;line-height:150%;font-family:Fira Sans, Arial,Helvetica,sans-serif;text-align: center;background:#b5b5b5;color:white">Teléfono</th>
                                        <th style="width: 30%;font-size:11pt;line-height:150%;font-family:Fira Sans, Arial,Helvetica,sans-serif;text-align: center;background:#b5b5b5;color:white">Segmento </th>
                                    </tr>';
                                    
                                    if($array['cantidad'] > 0)
                                    {
                                        for($i = 0; $i < $array['cantidad']; $i++)
                                        {
                                            $cuerpo .= '<tr>
                                                <td style="width: 30%; text-align: center;font-size:11.0pt;line-height:150%;font-family:Fira Sans,Arial, Helvetica,sans-serif; color:#606060">'.$array['nombre'][$i].'</td>
                                                <td style="width: 30%; text-align: center;font-size:11.0pt;line-height:150%;font-family:Fira Sans,Arial, Helvetica,sans-serif; color:#606060">'.$array['apellido'][$i].'</td>
                                                <td style="width: 30%; text-align: center;font-size:11.0pt;line-height:150%;font-family:Fira Sans,Arial, Helvetica,sans-serif; color:#606060">'.$array['telefono'][$i].'</td>
                                                <td style="width: 30%; text-align: center;font-size:11.0pt;line-height:150%;font-family:Fira Sans,Arial, Helvetica,sans-serif; color:#606060">'.($array['segmento'][$i] == "RES" ? "Residencial" : "Negocio" ).'</td>
                                            </tr>';
                                        }
                                    }
                                    
                                $cuerpo .= '</table>
                                <br><br>
                                <table width="550" height="0" border="0" cellspacing="0" bgcolor="#F4F4F4" cellpadding="0">
                                    <tr>
                                        <td align="left" style="font-size: 14px; line-height: 1px; font-family: Fira Sans, sans-serif; color: #747474; text-align: left;">
                                            <img alt="-------" src="'.$array['baseUrl'].'/public/images/clientesverisure/line_dotted.gif" style="display: block; margin: 0 auto; display: inline-block; max-width: 100%; height: auto;" width="118" height="1" border="0" />
                                            <img alt="-------" src="'.$array['baseUrl'].'/public/images/clientesverisure/line_dotted.gif" style="display: block; margin: 0 auto; display: inline-block; max-width: 100%; height: auto;" width="118" height="1" border="0" />
                                        </td>
                                        <td>
                                            <p style="font-family:\'Fira Sans\',Arial;font-size: 16px;color: #4d4d4d;text-align: center;margin: 0;line-height: 20px;padding: 0px 40px;">
                                                <strong>Servicio disponible las 24 horas del día:</strong>
                                            </p>
                                        </td>
                                        <td align="right" style="font-size: 14px; line-height: 1px; font-family: Fira Sans, sans-serif; color: #747474; text-align: right;">
                                            <img alt="-------" src="'.$array['baseUrl'].'/public/images/clientesverisure/line_dotted.gif" style="display: block; margin: 0 auto; display: inline-block; max-width: 100%; height: auto;" width="118" height="1" border="0">
                                            <img alt="-------" src="'.$array['baseUrl'].'/public/images/clientesverisure/line_dotted.gif" style="display: block; margin: 0 auto; display: inline-block; max-width: 100%; height: auto;" width="118" height="1" border="0" />
                                        </td>
                                    </tr>
                                </table>
                                <br><br>
                                <table width="550" height="0" border="0" cellspacing="0" bgcolor="#F4F4F4" cellpadding="0">
                                    <tr>
                                        <td style="padding-left: 5px; padding-right: 5px; font-size: 14px; line-height: 42px; font-family: Arial, sans-serif; color: #333333; text-align: center; border-right: 0px solid #979797" width="33.333%" align="center">
                                            <img alt="•" src="'.$array['baseUrl'].'/public/images/clientesverisure/ico-m.png" style="display: inline-block;" width="34" height="42" border="0">
                                        </td>
                                        <td style="padding-left: 5px; padding-right: 5px; font-size: 14px; line-height: 42px; font-family: Arial, sans-serif; color: #333333; text-align: center;" width="33.333%" align="center">
                                            <img alt="•" src="'.$array['baseUrl'].'/public/images/clientesverisure/ico-telefono.png" style="display: inline-block;" width="45" height="42" border="0">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="padding-left: 5px; padding-right: 5px; padding-top: 16px; font-size: 13px; line-height: 15px; font-family: Arial, sans-serif; color: #737373; text-align: center;" width="33.333%" align="center">
                                            <a href="mailto:clientes@verisure.pe" style="color: #737373; text-decoration: none; display: block; font-family: \'Lucida Grande\', \'Lucida Sans Unicode\', \'Lucida Sans\', \'DejaVu Sans\', Verdana, sans-serif; font-size: 12px;">clientes@verisure.pe<br>
                                                <span style="color: #a9a9a9; display: block; font-family: \'Lucida Grande\', \'Lucida Sans Unicode\', \'Lucida Sans\', \'DejaVu Sans\', Verdana, sans-serif; font-size: 11px; padding-top: 4px;">24h</span>
                                            </a>
                                        </td>
                                        <td style="padding-left: 5px; padding-right: 5px; padding-top: 16px; font-size: 13px; line-height: 15px; font-family: Arial, sans-serif; color: #737373; text-align: center;" width="33.333%" align="center">
                                            <a href="tel:0 800 2 12 12" style="color: #737373; text-decoration: none; display: block; font-family: \'Lucida Grande\', \'Lucida Sans Unicode\', \'Lucida Sans\', \'DejaVu Sans\', Verdana, sans-serif; font-size: 12px;">0 800 2 12 12<br>
                                                <span style="color: #a9a9a9; display: block; font-family: \'Lucida Grande\', \'Lucida Sans Unicode\', \'Lucida Sans\', \'DejaVu Sans\', Verdana, sans-serif; font-size: 11px; padding-top: 4px;">9 a 6 pm</span>
                                            </a>
                                        </td>
                                    </tr>
                                </table>
                                <br>
                                <table width="550" height="0" border="0" cellspacing="0" bgcolor="#F4F4F4" cellpadding="0">
                                    <tr>
                                        <td style="text-align: center;  font-size: 12px;font-family:  \'Fira Sans\', Arial;color: #737373; margin-top: 20px;">
                                            Guarde este número Gratuito en su lista de contacto 0 800 2 12 12 para cualquier consulta.<br>Envíenos sus
                                            sugerencias al correo <a href="mailto:clientes@verisure.pe" style="color: #ff0033; text-decoration: underline; display: block; font-family: \'Lucida Grande\', \'Lucida Sans Unicode\', \'Lucida Sans\', Verdana, sans-serif; font-size: 12px;">clientes@verisure.pe</a>
                                        </td>
                                    </tr>
                                </table>
                                <br>
                                <table style="border-radius: 0px 0px 45px 45px;" width="600" cellspacing="0" cellpadding="0" border="0" bgcolor="#ffffff" align="center">
                                    <tbody>
                                        <tr>
                                            <td width="600">
                                                <p style="text-align: center;  font-size: 16px;font-family:  \'Fira Sans\', Arial;color: #ff0033; margin-top: 20px;">Personas que protegen a personas</p>
                                                <p style="text-align: center;font-size: 12px;font-family:  \'Fira Sans\', Arial;color: #606060;margin-bottom: 5px;">S&iacute;guenos en redes sociales</p>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="600">
                                                <p style="text-align: center;font-size: 12px;font-family:\'Fira Sans\', Arial;color: #606060;">
                                                    <a href="https://www.facebook.com/AlarmasVerisurePeru/" style="color:#ff0033">Facebook</a>
                                                    &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
                                                    <a href="https://www.youtube.com/channel/UCsC7LzKdqytaOQ58IL011eQ" style="color:#ff0033">Youtube</a>
                                                    &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
                                                    <a href="https://twitter.com/VerisurePeru" style="color:#ff0033">Twitter</a>
                                                </p>
                                                <br>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                                <table width="500" align="center" border="0" cellspacing="0" cellpadding="0" bgcolor="#f4f4f4">
                                    <tbody>
                                        <tr>
                                            <td width="500">
                                                <p style="color: #c1c1c1;text-align: center;font-size: 10px;font-family:  \'Fira Sans\', Arial;padding-bottom: 10px; padding-top: 15px;">
                                                    Recibe esta comunicación porque es cliente de Verisure Perú<br>
                                                    Este es un mensaje automático, por favor, no responda este correo electrónico. Recuerde que los datos otorgados serán revisados.
                                                    Copyright © 2021 Verisure Peru, All rights reserved. <br>Nuestra dirección es: Av. Primavera 1050 Oficina 501 – Santiago de Surco.
                                                </p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </table>
                        </td>
                    </tr>
                </table>
            </body>
        </html>';
        
        return $cuerpo;
    }
    
    public function cuerpoAfiliacionFormaPago($array)
    {
        $cuerpo = '';
        
        $cuerpo .= '<!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" />
                <meta name="viewport" content="width=480, user-scalable=1" />
                <title>Verisure Perú</title>
                <link href="https://fonts.googleapis.com/css?family=Fira+Sans:400,700" rel="stylesheet">
            </head>
            <body style="margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; background-color:#F4F4F4;">
                <div class="container">
                    <div class="row">
                        <table width="600" align="center" border="0" cellspacing="0" cellpadding="0" bgcolor="#F4F4F4" style="background-color: #F4F4F4;">
                            <tr>
                                <td align="center">
                                    <!-- CREATIVIDAD -->
                                    <table width="600" height="0" bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="0" style="background-color: #ffffff;">
                                        <tr>
                                            <td width="600"><img src="'.$array['baseUrl'].'/public/images/afiliacion/cabecera.png" alt="Alarmas para tu Hogar" width="600" border="0" style="display:block; padding:0; border:0" /></td>
                                        </tr>
                                    </table>
                                    <table width="600" height="0" bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="0" style="background-color: #ffffff;">
                                        <tr>
                                            <td width="600">
                                                <img '.(isset($array['status']) && $array['status'] == 200 ? 'src="'.$array['baseUrl'].'/public/images/afiliacion/afiliacion-aprobada.png"' : (isset($array['status']) && $array['status'] == 400 ? 'src="'.$array['baseUrl'].'/public/images/afiliacion/afiliacion-rechazada.png"' : 'src="'.$array['baseUrl'].'/public/images/afiliacion/banner_v2.png"' ) ).' alt="Alarmas para tu Hogar" width="600" border="0" style="display:block; padding:0; border:0" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                        <div class="col-md-12">
                            <table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="tablaM" bgcolor="#F4F4F4" style="background-color: #F4F4F4;">
                                <tr>
                                    <td align="center">
                                        <table style="background-color: #ffffff;" width="550" cellspacing="0" cellpadding="0" border="0">
                                            <tbody>
                                                <tr>
                                                    <td width="500">';
                                                    
                                                    if(isset($array['status']) && $array['status'] == 200)
                                                    {
                                                        $cuerpo .= '<p style="text-align: justify;font-size: 15px;font-family:\'Fira Sans\', Arial;color: #757575;margin-bottom: 5px; padding:0px 20px 0px;">
                                                            <strong>Estimado(a) cliente: </strong>
                                                            <br>
                                                            <br>
                                                            Su solicitud de afiliación se encuentra en proceso, en un aproximado de 48 horas le estaremos notificando el registro de su afiliación.<br>
                                                        </p>
                                                        <p style="text-align: center;font-size: 17px;font-family: \'Fira Sans\', Arial;color: #ed002f;padding:0px 10px 0px;"><strong>Si desea mayor información<br>sobre los servicios contratados, ingrese a: </strong>
                                                        </p>';
                                                    }
                                                    else if(isset($array['status']) && $array['status'] == 201)
                                                    {
                                                        $cuerpo .= '<p style="text-align: justify;font-size: 15px;font-family:\'Fira Sans\', Arial;color: #757575;margin-bottom: 5px; padding:0px 20px 0px;">
                                                            <strong>Estimado(a) cliente: </strong>
                                                            <br>
                                                            <br>
                                                            Su solicitud de afiliación se encuentra registrada exitosamente.<br>
                                                        </p>
                                                        <p style="text-align: center;font-size: 17px;font-family: \'Fira Sans\', Arial;color: #ed002f;padding:0px 10px 0px;"><strong>Si desea mayor información<br>sobre los servicios contratados, ingrese a: </strong>
                                                        </p>';
                                                    }
                                                    else if(isset($array['status']) && $array['status'] == 400)
                                                    {
                                                        $cuerpo .= '<p style="text-align: justify;font-size: 15px;font-family: \'Fira Sans\', Arial;color: #757575;margin-bottom: 5px; padding:0px 20px 0px;">
                                                            <strong>Estimado(a) cliente: </strong>
                                                            <br>
                                                            <br>
                                                            Su tarjeta/cuenta afiliada ha sido rechazada como medio de pago para el servicio mensual por el siguiente motivo: <span style="color:#ff0033; font-weight:bold;">'.(isset($array['motivo']) ? $array['motivo'] : "Error de afiliación." ).'</span><br>
                                                        </p>';
                                                        
                                                        if(isset($array['url_afiliacion']))
                                                        {
                                                            $cuerpo .= '<p style="text-align: justify;font-size: 15px;font-family: \'Fira Sans\', Arial;color: #757575;margin-bottom: 5px; padding:0px 20px 0px;">Por favor ingrese nuevamente y afilie otra cuenta/tarjeta o verifique <br>la información previamente registrada:</p>';
                                                        }
                                                    }
                                                    else
                                                    {
                                                        $cuerpo .= '<p style="font-family: \'Fira Sans\',Arial;font-size: 16px; padding-right: 25px; padding-left: 25px;color: #606060; text-align: justify;">
                                                        La afiliación de su tarjeta o cuenta, <span style="color:#ff0033; font-weight:bold;">ha sido cancelada. <br></span>
                                                        Un error ha ocurrido mientras se procesaba su solicitud
                                                        <p style="font-family: \'Fira Sans\',Arial;font-size: 18px; color: #ffffff; text-align: center;font-weight: 600;background-color: #01B37B;border-radius: 20px;padding: 10px 0px; margin:0px 100px;">
                                                            <a style="color:#ffffff; text-decoration: none;" href="'.$array['url_afiliacion'].'">Ir afiliar tarjeta/cuenta</a>
                                                        </p>
                                                        <p style="font-family:\'Fira Sans\',Arial;font-size: 16px; padding-right: 25px; padding-left: 25px;color: #606060; text-align: justify;">
                                                            <br>Atentamente,
                                                            <br>
                                                            <span style="color:#ff0033;">Verisure Perú </span>
                                                            <br>
                                                        </p>';
                                                    }
                                                    $cuerpo .= '</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <table width="600" align="center" border="0" cellspacing="0" cellpadding="0" bgcolor="#F4F4F4" style="background-color: #F4F4F4;">
                            <tr>
                                <td align="center">
                                    <!-- CREATIVIDAD -->
                                    <table width="600" height="0" bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td width="600">';
                                            if(isset($array['status']) && $array['status'] == 400)
                                            {
                                                if(isset($array['url_afiliacion']))
                                                {
                                                    $cuerpo .= '</td><a href="'.$array['url_afiliacion'].'" target="_blank"> <img src="'.$array['baseUrl'].'/public/images/afiliacion/afiliese.png" alt="Alarmas para tu Hogar" width="600" border="0" style="display:block; padding:0; border:0;" /></a>';
                                                }
                                                
                                            }
                                            else
                                            {
                                                $cuerpo .= '<a href="https://clientesverisure.com/" target="_blank"> <img src="'.$array['baseUrl'].'/public/images/afiliacion-otros/3-simples-pasos.png" alt="Alarmas para tu Hogar" width="600"  border="0" style="display:block; padding:0; border:0" /></a>';
                                            }

                    				$cuerpo .= '</td>
                    			</tr>
                        </table> 
                    </td>
                </tr>
            </table>        
             
        <div class="col-md-12">
            <table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="tablaM" bgcolor="#F4F4F4" style="background-color: #F4F4F4;">
                <tr>
                    <td align="center">
                        <br><br>
                        <table width="550" height="0" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td align="left" style="font-size: 14px; line-height: 1px; font-family: Fira Sans, sans-serif; color: #747474; text-align: left;"><img alt="-------" src="https://www.verisure.co.uk/alarms/customers/emails/html/img/line_dotted.gif" style="display: block; margin: 0 auto; display: inline-block; max-width: 100%; height: auto;" width="118" height="1" border="0" /><img alt="-------" src="https://www.verisure.co.uk/alarms/customers/emails/html/img/line_dotted.gif" style="display: block; margin: 0 auto; display: inline-block; max-width: 100%; height: auto;" width="118" height="1" border="0" /></td>
                                <td>
                                    <p style="font-family:\'Fira Sans\',Arial;font-size: 16px;color: #4d4d4d;text-align: center;margin: 0;line-height: 20px;padding: 0px 40px;"> <strong>Servicio disponible las 24 horas del día:</strong></p>
                                </td>
                                <td align="right" style="font-size: 14px; line-height: 1px; font-family: Fira Sans, sans-serif; color: #747474; text-align: right;">
                                    <img alt="-------" src="https://www.verisure.co.uk/alarms/customers/emails/html/img/line_dotted.gif" style="display: block; margin: 0 auto; display: inline-block; max-width: 100%; height: auto;" width="118" height="1" border="0"><img alt="-------" src="https://www.verisure.co.uk/alarms/customers/emails/html/img/line_dotted.gif" style="display: block; margin: 0 auto; display: inline-block; max-width: 100%; height: auto;" width="118" height="1" border="0" />
                                </td>
                            </tr>
                        </table>
                        <br><br>
                        <table width="550" height="0" border="0" cellspacing="0" cellpadding="0">
                            <tr>
        					  <td style="padding-left: 5px; padding-right: 5px; padding-bottom: 16px; font-size: 11px; line-height: 13px; font-family: \'Lucida Grande\', \'Lucida Sans Unicode\', \'Lucida Sans\', \'DejaVu Sans\', Verdana, sans-serif; color: #888888; text-align: center;" width="33.333%" align="center">
        						E-mail
        					  </td>
        					  <td style="padding-left: 5px; padding-right: 5px; padding-bottom: 16px; font-size: 11px; line-height: 13px; font-family: \'Lucida Grande\', \'Lucida Sans Unicode\', \'Lucida Sans\', \'DejaVu Sans\', Verdana, sans-serif; color: #888888; text-align: center;" width="33.333%" align="center">
        						Teléfono
        					  </td>
        					</tr>
                            <tr>
                                <td style="padding-left: 5px; padding-right: 5px; font-size: 14px; line-height: 42px; font-family: Arial, sans-serif; color: #333333; text-align: center; border-right: 0px solid #979797" width="33.333%" align="center">
                                    <img alt="•" src="'.$array['baseUrl'].'/public/images/afiliacion/ico-m.png" style="display: inline-block;" width="34" height="42" border="0">
                                </td>
                                <td style="padding-left: 5px; padding-right: 5px; font-size: 14px; line-height: 42px; font-family: Arial, sans-serif; color: #333333; text-align: center;" width="33.333%" align="center">
                                    <img alt="•" src="'.$array['baseUrl'].'/public/images/afiliacion/ico-telefono.png" style="display: inline-block;" width="45" height="42" border="0">
                                </td>
                            </tr>
                            <tr>
                                <td style="padding-left: 5px; padding-right: 5px; padding-top: 16px; font-size: 13px; line-height: 15px; font-family: Arial, sans-serif; color: #737373; text-align: center;" width="33.333%" align="center">
                                    <a href="mailto:clientes@verisure.pe" style="color: #737373; text-decoration: none; display: block; font-family: \'Fira Sans\', \'Lucida Sans Unicode\', \'Lucida Sans\', \'DejaVu Sans\', Verdana, sans-serif; font-size: 14px;"><span>clientes@verisure.pe</span><br><span style="color: #a9a9a9; display: block; font-family: \'Lucida Grande\', \'Lucida Sans Unicode\', \'Lucida Sans\', \'DejaVu Sans\', Verdana, sans-serif; font-size: 14px; padding-top: 4px;">24h</span></a>
                                </td>
                                <td style="padding-left: 5px; padding-right: 5px; padding-top: 16px; font-size: 13px; line-height: 15px; font-family: Arial, sans-serif; color: #737373; text-align: center;" width="33.333%" align="center">
                                    <a href="tel:0 800 2 12 12" style="color: #737373; text-decoration: none; display: block; font-family: \'Fira Sans\', \'Lucida Sans Unicode\', \'Lucida Sans\', \'DejaVu Sans\', Verdana, sans-serif; font-size: 14px;"><span>0 800 2 12 12</span><br><span style="color: #a9a9a9; display: block; font-family: \'Fira Sans\', \'Lucida Sans Unicode\', \'Lucida Sans\', \'DejaVu Sans\', Verdana, sans-serif; font-size: 14px; padding-top: 4px;">24h</span></a>
                                </td>
                            </tr>
                        </table>
                        <br><br>
                        <table style="border-radius: 0px 0px 45px 45px;background-color: #ffffff;" width="550" cellspacing="0" cellpadding="0" border="0" bgcolor="#ffffff" align="center">
                            <tbody>
                                <tr>
                                    <td width="600">
                                        <p style="text-align: center;  font-size: 16px;font-family:  \'Fira Sans\', Arial;color: #ff0033; margin-top: 20px;">Personas que protegen a personas</p>
                                        <p style="text-align: center;font-size: 12px;font-family:  \'Fira Sans\', Arial;color: #606060;margin-bottom: 5px;">S&iacute;guenos en redes sociales</p>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="600">
                                        <p style="text-align: center;font-size: 12px;font-family:\'Fira Sans\', Arial;color: #606060;"><a href="https://www.facebook.com/AlarmasVerisurePeru/" style="color:#ff0033">Facebook</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="https://www.youtube.com/channel/UCsC7LzKdqytaOQ58IL011eQ" style="color:#ff0033">Youtube</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="https://twitter.com/VerisurePeru" style="color:#ff0033">Twitter</a></p>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</div>

</body>

</html>';
        
        return $cuerpo; 
    }
    

    public function cuerpoAfiliacionNiubis($array)
    {
        $cuerpo = '';
        
        $cuerpo .= '<!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" />
          <meta name="viewport" content="width=480, user-scalable=1" />
          <title>Verisure Perú</title>
          <link href="https://fonts.googleapis.com/css?family=Fira+Sans:400,700" rel="stylesheet">
        </head>
        
        <body style="margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; background-color:#F4F4F4;">
        
        <div class="container">
            <div class="row">
                    <table width="600" align="center" border="0" cellspacing="0" cellpadding="0" bgcolor="#F4F4F4" style="background-color: #F4F4F4;">
                        <tr>
                            <td align="center">
                                <!-- CREATIVIDAD -->
                                <table width="600" height="0" bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="0" style="background-color: #ffffff;">
                                    <tr>
                                        <td width="600"><img src="'.$array['baseUrl'].'/public/images/afiliacion/cabecera.png" alt="Alarmas para tu Hogar" width="600" border="0" style="display:block; padding:0; border:0" /></td>
                                    </tr>
                                </table>
                                <table width="600" height="0" bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="0" style="background-color: #ffffff;">
        
                                    <tr>
                                        <td width="600">';
                                        if(isset($array['status']) && $array['status']==200){
                                           $cuerpo .= '<img src="'.$array['baseUrl'].'/public/images/afiliacion-aceptada/banner.png" alt="Alarmas para tu Hogar" width="600" border="0" style="display:block; padding:0; border:0" />'; 
                                        }else if(isset($array['status']) && $array['status']==400){    
                                            $cuerpo .= '<img src="'.$array['baseUrl'].'/public/images/afiliacion-rechazada/banner.png" alt="Alarmas para tu Hogar" width="600" border="0" style="display:block; padding:0; border:0" />';
                                        }else{
                                            $cuerpo .= '<img src="'.$array['baseUrl'].'/public/images/afiliacion/banner_v2.png" alt="Alarmas para tu Hogar" width="600" border="0" style="display:block; padding:0; border:0" />';
                                        }
                                         $cuerpo .= '</td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                <div class="col-md-12">
                    <table width="600" align="center" border="0" cellspacing="0" cellpadding="0" bgcolor="#F4F4F4" style="background-color: #F4F4F4;">
                        <tr>
                            <td align="center">
                                <br>
                                <table style="background-color: #ffffff;" width="550" cellspacing="0" cellpadding="0" border="0">
                                    <tbody>
                                        <tr>
                                            <td width="500">
                                                <p style="font-family:\'Fira Sans\',Arial;font-size: 16px; padding-right: 25px; padding-left: 25px;color: #606060; text-align: left;font-weight: bold;">Estimado(a) cliente, <br></p>';
                                                
                                                if(isset($array['status']) && $array['status']==200){
                                                $cuerpo .= '<p style="font-family:\'Fira Sans\',Arial;font-size: 16px; padding-right: 25px; padding-left: 25px;color: #606060; text-align: left;">La afiliación de su tarjeta, como método de pago de su cuota mensual, <span style="color:#ff0033; font-weight:bold;">se ha completado exitosamente</span>.
                                                    <br><br><br>Atentamente,<br><span style="color:#ff0033;">Verisure Perú </span>
                                                </p>';
        
                                                }else if(isset($array['status']) && $array['status']==400){
                                                $cuerpo .= '<p style="font-family:\'Fira Sans\',Arial;font-size: 16px; padding-right: 25px; padding-left: 25px;color: #606060; text-align: justify;">La afiliación de su tarjeta, como método de pago de su cuota mensual, <span style="color:#ff0033; font-weight:bold;">';
                                                if (isset($array['ACTION_DESCRIPTION'])){
                                                    $cuerpo .= "ha sido rechazada: ".esc($array['ACTION_DESCRIPTION']);
                                                }else{
                                                    $cuerpo .= "ha sido rechazada.";
                                                } 
        
                                                $cuerpo .= '</span><br><br>Recuerde que para afiliar su tarjeta exitosamente deberá tomar en cuenta lo siguiente:
                                                <ul style="font-family:\'Fira Sans\',Arial;font-size: 16px; padding-right: 25px;padding-left:25px; color: #606060; text-align: justify;">
                                                    <li>Asegúrese que su tarjeta este activa para compras en internet y cuente con el saldo suficiente para los cargos mensuales.</li>
                                                    <li>Si cuenta con Pago Aplazado por Servicio de Instalación (PAI), sólo podrá actualizar los datos siempre que la tarjeta sea de crédito.</li>
                                                    <li>Conozca la lista de tarjetas aptas para la afiliación, <span style="color:#ff0033;"><a href="https://clientesverisure.com/media/2021/05/tarjetas-aptas-para-afiliar.pdf">aquí</a></span></li>
                                                    <li>En caso tenga alguna duda por favor enviar un correo a <a href="mailto:administracion@verisure.pe">administracion@verisure.pe</a> y en 72 Hrs se le estará respondiendo</li>
                                                </ul>
                                                <p style="font-family:\'Fira Sans\',Arial;font-size: 16px; padding-right: 25px; padding-left: 25px;color: #606060; text-align: justify;"><br>Atentamente,<br><span style="color:#ff0033;">Verisure Perú </span><br></p>
                                                ';
                                                }else{
                                                $cuerpo .= '<p style="font-family:\'Fira Sans\',Arial;font-size: 16px; padding-right: 25px; padding-left: 25px;color: #606060; text-align: justify;">La afiliación de su tarjeta, <span style="color:#ff0033; font-weight:bold;">ha sido cancelada. <br></span>Un error ha ocurrido mientras se procesaba su solicitud
                                                <p style="font-family:\'Fira Sans\',Arial;font-size: 16px; padding-right: 25px; padding-left: 25px;color: #606060; text-align: justify;"><br>Atentamente,<br><span style="color:#ff0033;">Verisure Perú </span><br></p>
                                                ';
                                                }
                                                $cuerpo .= '<br>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                                <br><br>
                                <table width="550" height="0" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td align="left" style="font-size: 14px; line-height: 1px; font-family: Fira Sans, sans-serif; color: #747474; text-align: left;"><img alt="-------" src="https://www.verisure.co.uk/alarms/customers/emails/html/img/line_dotted.gif" style="display: block; margin: 0 auto; display: inline-block; max-width: 100%; height: auto;" width="118" height="1" border="0" /><img alt="-------" src="https://www.verisure.co.uk/alarms/customers/emails/html/img/line_dotted.gif" style="display: block; margin: 0 auto; display: inline-block; max-width: 100%; height: auto;" width="118" height="1" border="0" /></td>
                                        <td style="padding: 0 8px; font-size: 14px; line-height: 50px; font-family: \'Lucida Grande\', \'Lucida Sans Unicode\', \'Lucida Sans\', \'DejaVu Sans\', Verdana, sans-serif; color: #333333; text-align: center;" align="-">
                                            <img alt="Canal Cliente: siempre a su servicio" src="'.$array['baseUrl'].'/public/images/afiliacion-aceptada/ico-contacto.png" style="display: block; margin: 0 auto; display: inline-block; max-width: 100%; height: auto;" width="50" height="50" border="0">
                                        </td>
                                        <td align="right" style="font-size: 14px; line-height: 1px; font-family: Fira Sans, sans-serif; color: #747474; text-align: right;">
                                            <img alt="-------" src="https://www.verisure.co.uk/alarms/customers/emails/html/img/line_dotted.gif" style="display: block; margin: 0 auto; display: inline-block; max-width: 100%; height: auto;" width="118" height="1" border="0"><img alt="-------" src="https://www.verisure.co.uk/alarms/customers/emails/html/img/line_dotted.gif" style="display: block; margin: 0 auto; display: inline-block; max-width: 100%; height: auto;" width="118" height="1" border="0" />
                                        </td>
                                    </tr>
                                </table>
                                <br><br>
                                <table width="550" height="0" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td style="padding-left: 5px; padding-right: 5px; font-size: 14px; line-height: 42px; font-family: Arial, sans-serif; color: #333333; text-align: center; border-right: 0px solid #979797" width="33.333%" align="center">
                                            <img alt="•" src="'.$array['baseUrl'].'/public/images/afiliacion/ico-m.png" style="display: inline-block;" width="34" height="42" border="0">
                                        </td>
                                        <td style="padding-left: 5px; padding-right: 5px; font-size: 14px; line-height: 42px; font-family: Arial, sans-serif; color: #333333; text-align: center;" width="33.333%" align="center">
                                            <img alt="•" src="'.$array['baseUrl'].'/public/images/afiliacion/ico-telefono.png" style="display: inline-block;" width="45" height="42" border="0">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="padding-left: 5px; padding-right: 5px; padding-top: 16px; font-size: 13px; line-height: 15px; font-family: Arial, sans-serif; color: #737373; text-align: center;" width="33.333%" align="center">
                                            <a href="mailto:clientes@verisure.pe" style="color: #737373; text-decoration: none; display: block; font-family: \'Fira Sans\', \'Lucida Grande\', \'Lucida Sans Unicode\', \'Lucida Sans\', \'DejaVu Sans\', Verdana, sans-serif; font-size: 14px;"><span>clientes@verisure.pe</span><br><span style="color: #a9a9a9; display: block; font-family: \'Lucida Grande\', \'Lucida Sans Unicode\', \'Lucida Sans\', \'DejaVu Sans\', Verdana, sans-serif; font-size: 14px; padding-top: 4px;">24h</span></a>
                                        </td>
                                        <td style="padding-left: 5px; padding-right: 5px; padding-top: 16px; font-size: 13px; line-height: 15px; font-family: Arial, sans-serif; color: #737373; text-align: center;" width="33.333%" align="center">
                                            <a href="tel:0 800 2 12 12" style="color: #737373; text-decoration: none; display: block; font-family: \'Fira Sans\', \'Lucida Grande\', \'Lucida Sans Unicode\', \'Lucida Sans\', \'DejaVu Sans\', Verdana, sans-serif; font-size: 14px;"><span>0 800 2 12 12</span><br><span style="color: #a9a9a9; display: block; font-family: \'Fira Sans\', \'Lucida Grande\', \'Lucida Sans Unicode\', \'Lucida Sans\', \'DejaVu Sans\', Verdana, sans-serif; font-size: 14px; padding-top: 4px;">24h</span></a>
                                        </td>
                                    </tr>
                                </table>
                                <br><br>
                                <table style="border-radius: 0px 0px 45px 45px;background-color: #ffffff;" width="550" cellspacing="0" cellpadding="0" border="0" bgcolor="#ffffff" align="center">
                                    <tbody>
                                        <tr>
                                            <td width="600">
                                                <p style="text-align: center;  font-size: 16px;font-family:  \'Fira Sans\', Arial;color: #ff0033; margin-top: 20px;">Personas que protegen a personas</p>
                                                <p style="text-align: center;font-size: 12px;font-family:  \'Fira Sans\', Arial;color: #606060;margin-bottom: 5px;">S&iacute;guenos en redes sociales</p>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="600">
                                                <p style="text-align: center;font-size: 12px;font-family:\'Fira Sans\', Arial;color: #606060;"><a href="https://www.facebook.com/AlarmasVerisurePeru/" style="color:#ff0033">Facebook</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="https://www.youtube.com/channel/UCsC7LzKdqytaOQ58IL011eQ" style="color:#ff0033">Youtube</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="https://twitter.com/VerisurePeru" style="color:#ff0033">Twitter</a></p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
        
        </body>
        
        </html>';
        
        return $cuerpo; 
    }    
    
    public function envioHojaCertificacion($array){
        $cuerpo = "";
        
        $cuerpo .= "<!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' />
            	<meta name='viewport' content='width=480, user-scalable=1' />
            	<title>Verisure Perú</title>
            	<link href='https://fonts.googleapis.com/css?family=Fira+Sans:400,700' rel='stylesheet'>
            
            </head>
            
            <body style='margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; background-color:#f4f4f4'>
            
            	<table width='600' align='center' border='0' cellspacing='0' cellpadding='0' bgcolor='#f4f4f4'>
            		<tr>
            			<td align='center'>
            
            				<table width='600' height='0' bgcolor='#ffffff' border='0' cellspacing='0' cellpadding='0'>
            					<tr>
            						<td width='600'><img
            								src='https://www.verismart.com.pe/verismart/img/certificacionventa/alarma.png'
            								alt='Alarmas para tu Hogar' width='430' height='54' border='0'
            								style='display:block; padding:0; border:0' /></td>
            						<td width='600'><a href='https://clientesverisure.com/'><img
            									src='https://www.verismart.com.pe/verismart/img/certificacionventa/webclientes.png'
            									alt='Alarmas para tu Hogar' width='170' height='54' border='0'
            									style='display:block; padding:0; border:0' /></a></td>
            					</tr>
            				</table>
            				<table width='600' height='0' bgcolor='#ffffff' border='0' cellspacing='0' cellpadding='0'>
            					<tr>
            
            						<td width='600'><img
            								src='https://www.verismart.com.pe/verismart/img/certificacionventa/resumendelservicio.png'
            								alt='Alarmas para tu Hogar' width='600' height='168.5' border='0'
            								style='display:block; padding:0; border:0' /></td>
            
            					</tr>
            				</table>
            
            				<table width='600' bgcolor='#F4F4F4' border='0' cellspacing='0' cellpadding='0'
            					style='margin: auto;padding: 0px 25px 0px 25px;'>
            					<tbody style='background-color: #ffffff;'>
            						<tr>
            							<td width='600' style='padding: 40px 0px 0px 20px;'>
            								<p style='font-size: 15px; font-family:  Fira Sans, Arial; color: #4d4d4d; margin: 0;'>
            									<span style='font-weight: bold;'>Estimado(a) Cliente</span>
            								</p>
            								<p></p>
            							</td>
            						</tr>
            						<tr>
            							<td width='600' style='padding: 0px 0px 20px 20px;'>
            								<p
            									style='font-size: 15px; font-family:  Fira Sans, Arial; color: #4d4d4d; margin: 0;line-height: 1.5em;'>
            									Le damos la bienvenida a la familia <strong>Verisure</strong> y adjuntamos el
            									resumen de su contratación. <br>Informarle que, en los próximos días nos pondremos
            									con usted desde el número <strong>015147321</strong>, para confirmar datos y
            									resolver dudas o consultas.
            
            								</p>
            							</td>
            						</tr>
            					</tbody>
            				</table>
            				<table width='550' bgcolor='#ed002f' border='0' cellspacing='0' cellpadding='0'>
            					<tbody>
            						<tr>
            							<td style='text-align: center;width: 22%;'><img
            									src='https://www.verismart.com.pe/verismart/img/certificacionventa/escudonoti.png'
            									alt='Alarmas para tu Hogar' border='0' style='padding:0;border:0;width: 100px;'>
            							</td>
            							<td>
            								<p
            									style='text-align: left;font-size: 15px;font-family:  Fira Sans, Arial;color: #ffffff;line-height: 1.5em;'>
            									<strong>Nombre del titular: ".$array['NombreScoring']."</strong><br><strong>Número de
            										Contrato: ".$array['ncontrato']."</strong><br><strong>Fecha de Instalación:
            										".$array['fechainstalacionover']."</strong></p>
            							</td>
            						</tr>
            					</tbody>
            				</table>";
            
            				$cuerpo.="
            				<table width='600' height='0' bgcolor='#ffffff' border='0' cellspacing='0' cellpadding='0'>
            					<tr>
            
            						<td width='600'><img
            								src='https://www.verismart.com.pe/verismart/img/certificacionventa/importante.png'
            								alt='Alarmas para tu Hogar' width='600' height='64.5' border='0'
            								style='display:block; padding:0; border:0' /></td>
            
            					</tr>
            				</table>
            				<table style='background-color: #ffffff;' width='550' cellspacing='0' cellpadding='0' border='0'>
            					<tr>
            
            						<td width='500'>
            							<p
            								style='text-align: center;font-size: 14px;font-family:  Fira Sans, Arial;color: #757575;margin-bottom: 10px; padding:0px 25px;'>
            								Recuerde que usted recibirá su facturación, por los siguientes conceptos:</p>
            						</td>
            					</tr>
            				</table>
            
            				<table width='550' height='0' bgcolor='#ffffff' border='0' cellspacing='0' cellpadding='0'>
            					<tr>
            						<td width='600'>";
            
            							if ($array['PAI'] != 'NO') {
            							if($array['cuotas']==36){
            
            							$cuerpo.="<img
            								src='https://www.verismart.com.pe/verismart/img/certificacionventa/PAI30x36.png'
            								alt='Alarmas para tu Hogar' width='600' height='193.5' width='600' height='177.5'
            								border='0' style='display:block; padding:0; border:0' />";
            							}else{
            							$cuerpo.="<img
            								src='https://www.verismart.com.pe/verismart/img/certificacionventa/PAI30x48.png'
            								alt='Alarmas para tu Hogar' width='600' height='193.5' width='600' height='177.5'
            								border='0' style='display:block; padding:0; border:0' />";
            
            							}
            
            							}else{
            							$cuerpo.="<img
            								src='https://www.verismart.com.pe/verismart/img/certificacionventa/CASH.png'
            								alt='Alarmas para tu Hogar' width='600' height='193.5' width='600' height='177.5'
            								border='0' style='display:block; padding:0; border:0' />";
            							}
            
            							$cuerpo.=" </td>
            					</tr>
            				</table>
            				<table width='567' height='0' bgcolor='#ffffff' border='0' cellspacing='0' cellpadding='0'>
            					<tr>
            						<td width='567'><a href='https://clientesverisure.com/crear_qr/generar_qr.php'><img
            								src='https://www.verismart.com.pe/verismart/img/certificacionventa/agreguenos_contactos2.png' width='567' style='display: block;padding: 0;border: 0;'></a>
            						</td>
            					</tr>
            				</table>				
            
            				<table width='566' height='0' bgcolor='#ffffff' border='0' cellspacing='0' cellpadding='0'>
            					<tr>
            						<td width='566'><img
            								src='https://www.verismart.com.pe/verismart/img/certificacionventa/chat-verisure.png'
            								usemap='#image-map2' width='566' style='display: block;padding: 0;border: 0;'>
            
            
            							<map name='image-map2'>
            								<area target='' alt='iniciar chat' title='iniciar chat'
            									href='https://customers.verisure.pe/owa-static/help' coords='195,135,406,172'
            									shape='rect'>
            								<area target='' alt='app store' title='app store'
            									href='https://www.google.com/url?sa=t&amp;source=web&amp;rct=j&amp;opi=89978449&amp;url=https://apps.apple.com/es/app/my-verisure/id1473822730&amp;ved=2ahUKEwjap5jP0qGFAxWgr5UCHZPWDGgQFnoECCQQAQ&amp;usg=AOvVaw3-UeVTskadYuMF2RQnqdlX'
            									coords='153,231,285,280' shape='rect'>
            								<area target='' alt='play store' title='play store'
            									href='https://www.google.com/url?sa=t&amp;source=web&amp;rct=j&amp;opi=89978449&amp;url=https://play.google.com/store/apps/details/My_Verisure%3Fid%3Dcom.verisure.securitasdirect.owa%26hl%3Des_MX&amp;ved=2ahUKEwj6kY280qGFAxURqZUCHVYAArwQFnoECBQQAQ&amp;usg=AOvVaw2WgTRcFKkCXJdOXm7mWI35'
            									coords='313,230,447,280' shape='rect'>
            							</map>
            						</td>
            					</tr>
            				</table>
            
            				<table  bgcolor='#ffffff' style='border-radius: 0px 0px 45px 45px;' width='550' cellspacing='0' cellpadding='0' border='0' align='center'>
            					<tbody>
            						<tr>
            
            							<td width='565'>
            								<p
            									style='text-align: center;  font-size: 16px;font-family:  Fira Sans, Arial;color: #ff0033; margin-top: 20px;'>
            									<span style='color:#c1c1c1;'>----------------------</span> Personas que protegen a
            									personas <span style='color:#c1c1c1;'>----------------------</span></p>
            								<p
            									style='text-align: center;font-size: 12px;font-family:  Fira Sans, Arial;color: #606060;margin-bottom: 5px;'>
            									S&iacute;guenos en redes sociales</p>
            							</td>
            						</tr>
            
            						<tr>
            							<td width='565'>
            								<p
            									style='text-align: center;font-size: 12px;font-family:Fira Sans, Arial;color: #606060; padding-bottom: 20px;'>
            									<a href='https://www.facebook.com/AlarmasVerisurePeru/'
            										style='color:#ff0033'>Facebook</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a
            										href='https://www.youtube.com/channel/UCsC7LzKdqytaOQ58IL011eQ'
            										style='color:#ff0033'>Youtube</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a
            										href='https://www.instagram.com/verisurepe/' style='color:#ff0033'>Instagram</a>
            								</p>
            							</td>
            
            						</tr>
            
            					</tbody>
            				</table>
            				<table width='565' align='center' border='0' cellspacing='0' cellpadding='0' bgcolor='#f4f4f4'>
            					<tbody>
            						<tr>
            							<td width='550'>
            								<p
            									style='color: #c1c1c1;text-align: center;font-size: 10px;font-family:  Fira Sans, Arial;padding-bottom: 10px; padding-top: 0px;'>
            									Copyright © 2024 Verisure Peru, All rights reserved. Nuestra dirección es: Av.
            									Primavera 1050 Oficina 501 – Santiago de Surco.
            							</td>
            						</tr>
            					</tbody>
            				</table>
            			</td>
            		</tr>
            	</table>
            </body>
            
            </html>";
        
        return $cuerpo; 
    }
    
}
