<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use App\Constants\MailEventConstants;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20240301095532 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$body = "<table>
<tbody>
<tr>
<td style=\"padding: 20px; font-family:\'Noto Sans\', sans-serif; font-size: 24px; line-height: 26px; color: #1B2028;\">
<h1 style=\"margin: 0 0 10px 0; font-family:\'Noto Sans\', sans-serif; font-size: 24px; line-height: 26px; color: #1B2028; font-weight: bold;\">Ваші дані для верифікації</h1>
</td>
</tr>
<tr>
<td style=\"padding: 20px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;\">
<ol style=\"padding: 0; margin: 0 0 10px 0;\">
<li class=\"list-item-first\" style=\"margin:0 0 10px 0; font-size:24px;\"><span style=\"color:#1B2028; display: inline-block; width: 80%; background: none; font-family:\'Noto Sans\', sans-serif; font-size:24px; line-height:28px; font-weight: bold\">Ваш перевірочний код</span>
<p style=\"font-family:\'Noto Sans\', sans-serif; font-size: 16px; line-height: 20px; color: #1B2028;\">Будь ласка, скопіюйте та вставте наведений нижче 5-значний код у числові поля процесу входу.</p>
<p style=\"font-family:\'Noto Sans\', sans-serif; font-size: 16px; line-height: 20px; color: #1B2028;\">Зверніть увагу: код буде дійсний наступну 1 хвилину.</p>
<table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" style=\"margin: auto;\">
<tbody>
<tr>
<td style=\"border-radius: 16px; padding: 24px 11px; background: #F7F7FA; border: 1px solid #E2E2E9\"><span style=\"text-wrap: balance; font-size: 32px; line-height: 38px; color: #1B2028; font-weight: bold; letter-spacing: 8px\">{user_verify_code}</span></td>
</tr>
</tbody>
</table>
</li>
<li class=\"list-item-first\" style=\"margin:0 0 10px 0; font-size:24px;\"><span style=\"color:#1B2028; display: inline-block; width: 80%; background: none; font-family:\'Noto Sans\', sans-serif; font-size:24px; line-height:28px; font-weight: bold\">Ваш пароль для входу</span>
<p style=\"font-family:\'Noto Sans\', sans-serif; font-size: 16px; line-height: 20px; color: #909299;\">Для входу у Вашу історію покупок eSIM ми створили вам особистий пароль, не передавайте цей пароль нікому і зберігайте його в надійному місці! Цей особистий пароль може знадобитися Вам для повторного входу на сторінку купівлі eSIM, якщо Ви вже підтверджували свій імейл і не встигли купити eSIM або хочете купити ще.</p>
<table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" style=\"margin: auto;\">
<tbody>
<tr>
<td style=\"border-radius: 16px; padding: 24px 11px; background: #F7F7FA; border: 1px solid #E2E2E9\"><span style=\"text-wrap: balance; font-size: 32px; line-height: 38px; color: #1B2028; font-weight: bold; letter-spacing: 8px\">{user_password}</span></td>
</tr>
</tbody>
</table>
</li>
</ol>
</td>
</tr>
<tr>
</tr>
</tbody>
</table>
<table>
<tbody>
<tr>
<td>
<div><img alt=\"\" height=\"36px\" src=\"{http_host}/build/images/warning.png\" style=\"width: 36px; height: 36px; margin-right: 10px; float: left\" width=\"36px\" />
<p style=\"margin-bottom: 0; font-family:\'Noto Sans\', sans-serif; font-size: 16px; line-height: 20px; color: #909299;\">Якщо ви не намагалися ввійти чи створити обліковий запис на eSIM АТБ, можете сміливо ігнорувати цей електронний лист.</p>
</div>
</td>
</tr>
</tbody>
</table>";
$this->addSql("UPDATE mail_template SET body = '{$body}' WHERE event = ".MailEventConstants::REGISTRATION);
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
}
}