- Nuevo modulo de historial de cambios (ServicioHistorial) - Observer para tracking automatico de cambios en servicios - Correccion de variables auxiliar en ServiciosController - Actualizacion de configuraciones y migraciones - Endpoint para consultar historial de cambios Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
165 lines
7.0 KiB
PHP
Executable File
165 lines
7.0 KiB
PHP
Executable File
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
|
|
<style type="text/css" rel="stylesheet" media="all">
|
|
/* Media Queries */
|
|
@media only screen and (max-width: 500px) {
|
|
.button {
|
|
width: 100% !important;
|
|
}
|
|
}
|
|
|
|
img
|
|
{
|
|
margin: 0 auto;
|
|
margin-top: 50px;
|
|
text-align: center;
|
|
width: 70%;
|
|
}
|
|
|
|
#barraRojo
|
|
{
|
|
background-color: whitesmoke;
|
|
color: #001870;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<?php
|
|
|
|
$style = [
|
|
/* Layout ------------------------------ */
|
|
|
|
'body' => 'margin: 0 auto; padding: 0; width: 100%; background-color: #F2F4F6;',
|
|
'email-wrapper' => 'width: 100%; margin: 0; padding: 0; background-color: #F2F4F6;',
|
|
|
|
/* Masthead ----------------------- */
|
|
|
|
'email-masthead' => 'padding: 25px 0; text-align: center;',
|
|
'email-masthead_name' => 'font-size: 16px; font-weight: bold; color: #2F3133; text-decoration: none; text-shadow: 0 1px 0 white;',
|
|
|
|
'email-body' => 'width: 100%; margin: 0 auto; padding: 0; border-top: 1px solid #EDEFF2; border-bottom: 1px solid #EDEFF2; background-color: #FFF;',
|
|
'email-body_inner' => 'width: auto; max-width: 570px; margin: 0 auto; padding: 0;',
|
|
'email-body_cell' => 'margin:0 auto; padding: 35px;',
|
|
|
|
'email-footer' => 'color: #FFFFFF; width: auto; max-width: 570px; margin: 0 auto; padding: 0; text-align: center;',
|
|
'email-footer_cell' => 'color: #FFFFFF; padding-top: 20px; padding-bottom: 20px; padding-left: 50px; padding-right: 50px; text-align: center;',
|
|
|
|
/* Body ------------------------------ */
|
|
|
|
'body_action' => 'width: 100%; margin: 30px auto; padding: 0; text-align: center;',
|
|
'body_sub' => 'margin-top: 25px; padding-top: 25px; border-top: 1px solid #EDEFF2;',
|
|
|
|
/* Type ------------------------------ */
|
|
|
|
'anchor' => 'color: #3869D4;',
|
|
'header-1' => 'margin-top: 0; color: #2F3133; font-size: 19px; font-weight: bold; text-align: left;',
|
|
'paragraph' => 'margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;',
|
|
'paragraph-sub' => 'margin-top: 0; color: #74787E; font-size: 12px; line-height: 1.5em;',
|
|
'paragraph-center' => 'text-align: center;',
|
|
|
|
/* Buttons ------------------------------ */
|
|
|
|
'button' => 'display: block; display: inline-block; width: 200px; min-height: 20px; padding: 10px;
|
|
background-color: #3869D4; border-radius: 3px; color: #ffffff; font-size: 15px; line-height: 25px;
|
|
text-align: center; text-decoration: none; -webkit-text-size-adjust: none;',
|
|
];
|
|
?>
|
|
|
|
<?php $fontFamily = 'font-family: Arial, \'Helvetica Neue\', Helvetica, sans-serif;'; ?>
|
|
|
|
<body style="{{ $style['body'] }}">
|
|
<table width="100%" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td style="{{ $style['email-wrapper'] }}" align="center">
|
|
<table width="100%" cellpadding="0" cellspacing="0">
|
|
<!-- Logo -->
|
|
<tr id="barraRojo">
|
|
<td style="{{ $style['email-masthead'] }}">
|
|
<a style="{{ $fontFamily }} {{ $style['email-masthead_name'] }}" href="{{ url('/') }}" target="_blank">
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
<!-- Email Body -->
|
|
<tr>
|
|
<td style="{{ $style['email-body'] }}" width="100%">
|
|
|
|
<table style="{{ $style['email-body_inner'] }}" align="center" cellpadding="0" cellspacing="0">
|
|
|
|
<tr align="center">
|
|
<img style="{{ $fontFamily }} {{ $style['email-footer_cell'] }} background-color: #001870;" align="center" src="{{ $message->embed(resource_path() . '/assets/images/logo.png') }}">
|
|
</tr>
|
|
<tr>
|
|
|
|
<td style="{{ $fontFamily }} {{ $style['email-body_cell'] }}">
|
|
<!-- Greeting -->
|
|
<h1 style="{{ $style['header-1'] }}">
|
|
Hola!
|
|
{{$user->first_name}} {{$user->last_name}}
|
|
</h1>
|
|
|
|
<h1 style="{{ $style['header-1'] }}">
|
|
@if (! empty($greeting))
|
|
{{ $greeting }}
|
|
|
|
@endif
|
|
</h1>
|
|
|
|
<!-- Intro -->
|
|
|
|
<p style="{{ $style['paragraph'] }}">
|
|
Ha solicitado un reestablecimiento de contraseña, la contraseña con la que podrá acceder es la siguiente:
|
|
</p>
|
|
<!-- Action Button -->
|
|
<table style="{{ $style['body_action'] }}" align="center" width="100%" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td align="center" style="background: #E63C2D; color: white; font-weight: bold;">
|
|
|
|
<h1>{{$user->nueva}}</h1>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<!-- Outro -->
|
|
<p style="{{ $style['paragraph'] }}">
|
|
Si no solicitó un restablecimiento de contraseña, no se requiere ninguna acción adicional.
|
|
</p>
|
|
|
|
<!-- Salutation -->
|
|
<p style="{{ $style['paragraph'] }}">
|
|
Saludos,<br>{{ config('app.name') }}
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
|
|
<!-- Footer -->
|
|
<tr>
|
|
<td>
|
|
<table align="center" width="100%" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td id="barraRojo">
|
|
<p>
|
|
Derechos reservados ©
|
|
<a style="text-decoration: none; color: #E63C2D;" href="http://www.ie-soluciones.com" target="_blank">IE-Soluciones {{ date('Y') }}</a>
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
</html>
|