<?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']))
                                                        {
                                                            $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)
                                            {
                                                
                                            }
                                            else
                                            {
                                                // $cuerpo .= '<a href="https://clientesverisure.com/" target="_blank"> <img src="{!! asset('images/afiliacion-otros/3-simples-pasos.png') !!}" alt="Alarmas para tu Hogar" width="600"  border="0" style="display:block; padding:0; border:0" /></a>';
                                            }
                    				    // @if(isset($respuesta['status']) && $respuesta['status']==400)
                    				    //     @if(isset($respuesta['url']))
                    				    //     <a href="{!! 'https://clientesverisure.com/apps/afiliacion/'.str_replace('-', '/', $respuesta['url']) !!}" target="_blank"> <img src="{!! asset('images/afiliese.png') !!}" alt="Alarmas para tu Hogar" width="600" border="0" style="display:block; padding:0; border:0;" /></a>
                    				    //     @endif
                    				    // @else
                    				    
                    				    // @endif
                    				$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="{!! asset(\'images/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="{!! asset(\'images/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; 
    }
}
