<?php

namespace App\Libraries;

class PlantillasCorreo {

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

    public function cuerpoVeriactivosActas($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" />'
                    .'<title>'.$array['TITULO'].'</title>'
                    .'<style type="text/css">
                        body {
                            margin: 0;
                            padding: 0;
                            min-width: 100%!important;
                        }
                        
                        img {
                            height: auto;
                        }
                        
                        .content {
                            width: 100%;
                            max-width: 600px;
                        }
                        
                        .header {
                            padding: 5px 20px 5px 20px;
                        }
                        
                        .innerpadding {
                            padding: 20px 30px 0px 30px;
                        }
                        
                        .borderbottom {
                            border-bottom: 1px solid #f2eeed;
                        }
                        
                        .subhead {
                            font-size: 15px;
                            color: #ffffff;
                            font-family: sans-serif;
                            letter-spacing: 10px;
                        }
                        
                        .h1 {
                            font-family: sans-serif;
                            color: #ffffff;
                            font-size: 23px;
                            line-height: 38px;
                            font-weight: bold;
                        }
                        
                        .h2 {
                            color: #000000;
                            font-family: sans-serif;
                            padding: 0 0 15px 0;
                            font-size: 24px;
                            line-height: 28px;
                            font-weight: bold;
                        }
                        
                        .h3 {
                            color: #000000;
                            font-family: sans-serif;
                            font-size: 14px;
                            line-height: 22px;
                            font-weight: bold;
                        }
                        
                        .h4 {
                            color: #000000;
                            font-family: sans-serif;
                            font-size: 16px;
                            line-height: 30px;
                            font-weight: bold;
                        }
                        
                        .bodycopy {
                            color: #000000;
                            font-family: sans-serif;
                            font-size: 14px;
                            line-height: 22px;
                        }
                        
                        .button {
                            text-align: center;
                            font-size: 18px;
                            font-family: sans-serif;
                            font-weight: bold;
                            padding: 0 30px 0 30px;
                        }
                        
                        .button a {
                            color: #ffffff;
                            text-decoration: none;
                        }
                        
                        .footer {
                            padding: 20px 30px 15px 30px;
                        }
                        
                        .footercopy {
                            font-family: sans-serif;
                            font-size: 14px;
                            color: #ffffff;
                        }
                        
                        .footercopy a {
                            color: #ffffff;
                            text-decoration: underline;
                        }
                        
                        .coldiv115 {
                            width: 115px;
                        }
                        
                        ;
                        .coldiv380 {
                            width: 380px;
                        }
                        
                        ;
                        @media only screen and (max-width: 550px),
                        screen and (max-device-width: 550px) {
                            body[yahoo] .hide {
                                display: none!important;
                            }
                            body[yahoo] .buttonwrapper {
                                background-color: transparent!important;
                            }
                            body[yahoo] .button {
                                padding: 0px!important;
                            }
                            body[yahoo] .button a {
                                background-color: #e05443;
                                padding: 15px 15px 13px!important;
                            }
                            body[yahoo] .unsubscribe {
                                display: block;
                                margin-top: 20px;
                                padding: 10px 50px;
                                background: #2f3942;
                                border-radius: 5px;
                                text-decoration: none!important;
                                font-weight: bold;
                            }
                        }
                    </style>'
                .'</head>'

                .'<body yahoo bgcolor="#f2f2f2">'
                    .'<table width="100%" bgcolor="#f2f2f2" border="0" cellpadding="0" cellspacing="0">'
                        .'<tr>'
                            .'<td>'
                                .'<table bgcolor="#ffffff" class="content" align="center" cellpadding="0" cellspacing="0" border="0">'
                                    .'<tr>'
                                        .'<td bgcolor="#ffffff" class="header">'
                                            .'<table width="70" align="center" border="0" cellpadding="0" cellspacing="0">'
                                                .'<tr>'
                                                    .'<td height="70" style="padding: 0 20px 20px 0;">'
                                                        .'<img class="fix" src="https://www.verismart.com.pe/verismart/admin/dist/img/logo_nuevo_rojo.png" border="0" alt="" />'
                                                    .'</td>'
                                                .'</tr>'
                                            .'</table>'
                                        .'</td>'
                                    .'</tr>'
                
                                    .'<tr>'
                                        .'<td bgcolor="#dc0000" class="header">'
                                            .'<table class="col425" align="center" border="0" cellpadding="0" cellspacing="0" style="width: 100%; max-width: 425px;">'
                                                .'<tr>'
                                                    .'<td height="70">'
                                                        .'<table width="100%" border="0" cellspacing="0" cellpadding="0">'
                                                            .'<tr>'
                                                                .'<h1 class="h1" align="center" style="padding: 0 0 0 0;">VERIACTIVOS</h1>'
                                                                .'<h1 class="h1" align="center" style="padding: 0 0 0 0;">'.$array['ACTA'].'</h1>'
                                                            .'</tr>'
                                                        .'</table>'
                                                    .'</td>'
                                                .'</tr>'
                                            .'</table>'
                                        .'</td>'
                                    .'</tr>'
                                    .'<tr>'
                                        .'<td class="innerpadding">'
                                            .'<table width="100%" border="0" cellspacing="0" cellpadding="0">'
                                                .'<tr>'
                                                    .'<td class="h2">'
                                                        .'¡Hola!, '.$array['USUARIO'].','
                                                    .'</td>'
                                                .'</tr>'
                                                .'<tr>'
                                                    .'<td class="bodycopy">'
                                                        .'<p>Se le acaba de enviar el documento correspondiente al '.$array['ACTA'].'. </p>'
                                                    .'</td>'
                                                .'</tr>'
                                            .'</table>'
                                        .'</td>'
                                    .'</tr>'
                                    .'<tr>'
                                        .'<td class="innerpadding">'
                                            .'<table width="100%" border="0" cellspacing="0" cellpadding="0">'
                                                .'<tr>'
                                                    .'<td class="bodycopy">'
                                                        .'<p>Por favor, ingrese al siguiente link para que pueda realizar la firma de dicho documento:<br></p>'
                                                        .'<a class="texto-indicador" href="'.$array['URL_ACTA'].'">'.$array['ACTA'].'</a>'
                                                        .'<p>Por favor, para cualquier consulta, contacta con Soporte IT (soporteit@verisure.pe).</p>'
                                                        .'<p>Muchas gracias y un saludo.</p>'
                                                        .'<p>IT Perú</p>'
                                                    .'</td>'
                                                .'</tr>'
                                            .'</table>'
                                        .'</td>'
                                    .'</tr>'
                                    .'<tr>'
                                        .'<td class="footer" bgcolor="#44525f">'
                                            .'<table width="100%" border="0" cellspacing="0" cellpadding="0">'
                                                .'<tr>'
                                                    .'<td align="center" class="footercopy">'
                                                        .'2021 &reg; Verisure Perú SAC<br/> Av. Primavera 1050 – Oficina 501<br/> Santiago de Surco – Urbanización Chacarilla del Estanque<br/> Lima – Perú'
                                                    .'</td>'
                                                .'</tr>'
                                            .'</table>'
                                        .'</td>'
                                    .'</tr>'
                                .'</table>'
                            .'</td>'
                        .'</tr>'
                    .'</table>'
                .'</body>'
            .'</html>';

        return $cuerpo;
    }
    
    public function cuerpoVeriactivosActasConfirmacion($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" />'
                    .'<title>'.$array['TITULO'].'</title>'
                    .'<style type="text/css">
                        body {
                            margin: 0;
                            padding: 0;
                            min-width: 100%!important;
                        }
                        
                        img {
                            height: auto;
                        }
                        
                        .content {
                            width: 100%;
                            max-width: 600px;
                        }
                        
                        .header {
                            padding: 5px 20px 5px 20px;
                        }
                        
                        .innerpadding {
                            padding: 20px 30px 0px 30px;
                        }
                        
                        .borderbottom {
                            border-bottom: 1px solid #f2eeed;
                        }
                        
                        .subhead {
                            font-size: 15px;
                            color: #ffffff;
                            font-family: sans-serif;
                            letter-spacing: 10px;
                        }
                        
                        .h1 {
                            font-family: sans-serif;
                            color: #ffffff;
                            font-size: 23px;
                            line-height: 38px;
                            font-weight: bold;
                        }
                        
                        .h2 {
                            color: #000000;
                            font-family: sans-serif;
                            padding: 0 0 15px 0;
                            font-size: 24px;
                            line-height: 28px;
                            font-weight: bold;
                        }
                        
                        .h3 {
                            color: #000000;
                            font-family: sans-serif;
                            font-size: 14px;
                            line-height: 22px;
                            font-weight: bold;
                        }
                        
                        .h4 {
                            color: #000000;
                            font-family: sans-serif;
                            font-size: 16px;
                            line-height: 30px;
                            font-weight: bold;
                        }
                        
                        .bodycopy {
                            color: #000000;
                            font-family: sans-serif;
                            font-size: 14px;
                            line-height: 22px;
                        }
                        
                        .button {
                            text-align: center;
                            font-size: 18px;
                            font-family: sans-serif;
                            font-weight: bold;
                            padding: 0 30px 0 30px;
                        }
                        
                        .button a {
                            color: #ffffff;
                            text-decoration: none;
                        }
                        
                        .footer {
                            padding: 20px 30px 15px 30px;
                        }
                        
                        .footercopy {
                            font-family: sans-serif;
                            font-size: 14px;
                            color: #ffffff;
                        }
                        
                        .footercopy a {
                            color: #ffffff;
                            text-decoration: underline;
                        }
                        
                        .coldiv115 {
                            width: 115px;
                        }
                        
                        ;
                        .coldiv380 {
                            width: 380px;
                        }
                        
                        ;
                        @media only screen and (max-width: 550px),
                        screen and (max-device-width: 550px) {
                            body[yahoo] .hide {
                                display: none!important;
                            }
                            body[yahoo] .buttonwrapper {
                                background-color: transparent!important;
                            }
                            body[yahoo] .button {
                                padding: 0px!important;
                            }
                            body[yahoo] .button a {
                                background-color: #e05443;
                                padding: 15px 15px 13px!important;
                            }
                            body[yahoo] .unsubscribe {
                                display: block;
                                margin-top: 20px;
                                padding: 10px 50px;
                                background: #2f3942;
                                border-radius: 5px;
                                text-decoration: none!important;
                                font-weight: bold;
                            }
                        }
                    </style>'
                .'</head>'

                .'<body yahoo bgcolor="#f2f2f2">'
                    .'<table width="100%" bgcolor="#f2f2f2" border="0" cellpadding="0" cellspacing="0">'
                        .'<tr>'
                            .'<td>'
                                .'<table bgcolor="#ffffff" class="content" align="center" cellpadding="0" cellspacing="0" border="0">'
                                    .'<tr>'
                                        .'<td bgcolor="#ffffff" class="header">'
                                            .'<table width="70" align="center" border="0" cellpadding="0" cellspacing="0">'
                                                .'<tr>'
                                                    .'<td height="70" style="padding: 0 20px 20px 0;">'
                                                        .'<img class="fix" src="https://www.verismart.com.pe/verismart/admin/dist/img/logo_nuevo_rojo.png" border="0" alt="" />'
                                                    .'</td>'
                                                .'</tr>'
                                            .'</table>'
                                        .'</td>'
                                    .'</tr>'
                
                                    .'<tr>'
                                        .'<td bgcolor="#dc0000" class="header">'
                                            .'<table class="col425" align="center" border="0" cellpadding="0" cellspacing="0" style="width: 100%; max-width: 425px;">'
                                                .'<tr>'
                                                    .'<td height="70">'
                                                        .'<table width="100%" border="0" cellspacing="0" cellpadding="0">'
                                                            .'<tr>'
                                                                .'<h1 class="h1" align="center" style="padding: 0 0 0 0;">VERIACTIVOS</h1>'
                                                                .'<h1 class="h1" align="center" style="padding: 0 0 0 0;">FIRMA DE ACTA</h1>'
                                                            .'</tr>'
                                                        .'</table>'
                                                    .'</td>'
                                                .'</tr>'
                                            .'</table>'
                                        .'</td>'
                                    .'</tr>'
                                    .'<tr>'
                                        .'<td class="innerpadding">'
                                            .'<table width="100%" border="0" cellspacing="0" cellpadding="0">'
                                                .'<tr>'
                                                    .'<td class="h2">'
                                                        .'¡Hola!, '.$array['USUARIO'].','
                                                    .'</td>'
                                                .'</tr>'
                                                .'<tr>'
                                                    .'<td class="bodycopy">'
                                                        .'<p>Se realizó la firma del '.$array['ACTA'].' Nro: '.$array['CODIGO'].' . </p><br><br>'
                                                    .'</td>'
                                                .'</tr>'
                                            .'</table>'
                                        .'</td>'
                                    .'</tr>'
                                    .'<tr>'
                                        .'<td class="footer" bgcolor="#44525f">'
                                            .'<table width="100%" border="0" cellspacing="0" cellpadding="0">'
                                                .'<tr>'
                                                    .'<td align="center" class="footercopy">'
                                                        .'2021 &reg; Verisure Perú SAC<br/> Av. Primavera 1050 – Oficina 501<br/> Santiago de Surco – Urbanización Chacarilla del Estanque<br/> Lima – Perú'
                                                    .'</td>'
                                                .'</tr>'
                                            .'</table>'
                                        .'</td>'
                                    .'</tr>'
                                .'</table>'
                            .'</td>'
                        .'</tr>'
                    .'</table>'
                .'</body>'
            .'</html>';

        return $cuerpo;
    }
}
