瀏覽代碼

feat: :sparkles: feat(implementação-envio-de-email) Realizado ajuste na parte do email de finalização do sreviço e troca do template do email de verificação do codigo

Foi ajustado o template de envio de codigo de cofimação para o cliente buscando padronizar os emails do sistema para que fique de forma coerente

fase:dev | origin:escopo
kayo henrique 1 月之前
父節點
當前提交
ed7cc03e40

+ 12 - 12
app/Jobs/FinishScheduleJob.php

@@ -28,25 +28,25 @@ class FinishScheduleJob implements ShouldQueue
       $schedule = Schedule::find($this->scheduleId);
       $date_cleaned = Carbon::parse($schedule->date)->format('Y-m-d');
 
-      // if (!$schedule) {
-      //   return;
-      // }
+      if (!$schedule) {
+        return;
+      }
 
       Log::channel('schedule_end_jobs')->info('Verificando status do agendamento id: ' . $schedule->id);
       Log::channel('schedule_end_jobs')->info('Status do agendamento: ' . $schedule->status);
 
-      // if ($schedule->status !== 'started') {
-      //   return;
-      // }
+      if ($schedule->status !== 'started') {
+        return;
+      }
 
       Log::channel('schedule_end_jobs')->info('Verificando data');
       Log::channel('schedule_end_jobs')->info('Data do agendamento: ' . $date_cleaned);
       Log::channel('schedule_end_jobs')->info('Data atual: ' . now()->toDateString());
 
 
-      // if ($date_cleaned > now()->toDateString()) {
-      //   return;
-      // }
+      if ($date_cleaned > now()->toDateString()) {
+        return;
+      }
 
       Log::channel('schedule_end_jobs')->info('Verificando horário');
       Log::channel('schedule_end_jobs')->info('Horário do agendamento: ' . $schedule->end_time);
@@ -54,9 +54,9 @@ class FinishScheduleJob implements ShouldQueue
 
       $end_date_time = Carbon::parse($date_cleaned . ' ' . $schedule->end_time);
 
-      // if ($end_date_time > now()) {
-      //   return;
-      // }
+      if ($end_date_time > now()) {
+        return;
+      }
 
       Log::channel('schedule_end_jobs')->info('Validado com sucesso, atualizado agendamento id: ' . $schedule->id . ' para status finalizado');
 

+ 1 - 0
lang/pt/mail.php

@@ -10,6 +10,7 @@ return [
         'expiry_notice'     => 'Este código expira em 15 minutos.',
         'ignore_notice'     => 'Se você não solicitou este código, ignore este e-mail.',
         'footer_note'       => 'Este é um e-mail automático. Por favor, não responda.',
+        'footer_title'      => 'Obrigado por utilizar o Diaria App 💜',
     ],
     'service_completed' => [
         'subject' => 'Serviço finalizado com sucesso',

+ 533 - 239
resources/views/emails/email_receipt.blade.php

@@ -2,344 +2,638 @@
 <html lang="pt-BR">
 
 <head>
-  <meta charset="UTF-8">
-  <title>{{ __('mail.service_completed.subject') }}</title>
+
+  <meta charset="UTF-8" />
+
+  <meta
+    name="viewport"
+    content="width=device-width, initial-scale=1.0"
+  />
+
+  <title>
+    {{ __('mail.service_completed.subject') }}
+  </title>
+
+  <!-- CSS -->
+
+  <style>
+
+    * {
+      margin: 0;
+      padding: 0;
+      box-sizing: border-box;
+      font-family: Arial, Helvetica, sans-serif;
+    }
+
+    body {
+      background: #f5f5f7;
+      padding: 20px;
+    }
+
+    .email-container {
+      max-width: 650px;
+      margin: 0 auto;
+      background: #ffffff;
+      border-radius: 24px;
+      overflow: hidden;
+      box-shadow: 0 10px 40px rgba(0,0,0,0.08);
+    }
+
+    /* HEADER */
+
+    .header {
+      background: linear-gradient(135deg, #7b2cff, #4d14d1);
+      padding: 50px 30px 30px;
+      color: white;
+    }
+
+    .header-content {
+      display: flex;
+      align-items: center;
+      justify-content: space-between;
+      gap: 20px;
+    }
+
+    .header-text {
+      flex: 1;
+    }
+
+    .title {
+      font-size: 52px;
+      font-weight: 800;
+      line-height: 1;
+      margin-bottom: 20px;
+    }
+
+    .subtitle {
+      font-size: 20px;
+      line-height: 1.5;
+      opacity: 0.95;
+    }
+
+    .diarinho {
+      width: 220px;
+    }
+
+    /* CONTENT */
+
+    .content {
+      padding: 30px;
+      background: #f5f5f7;
+    }
+
+    /* STATUS */
+
+    .success-card {
+      background: white;
+      border-radius: 22px;
+      padding: 22px;
+      display: flex;
+      align-items: center;
+      gap: 18px;
+      margin-bottom: 24px;
+    }
+
+    .success-icon {
+      width: 60px;
+      height: 60px;
+      border-radius: 999px;
+      background: #4cd964;
+      color: white;
+      font-size: 32px;
+      display: flex;
+      align-items: center;
+      justify-content: center;
+      font-weight: bold;
+    }
+
+    .success-title {
+      font-size: 30px;
+      color: #5a22d6;
+      font-weight: 700;
+      margin-bottom: 6px;
+    }
+
+    .success-subtitle {
+      color: #6b6b6b;
+      font-size: 18px;
+    }
+
+    /* CARD */
+
+    .card {
+      background: white;
+      border-radius: 24px;
+      padding: 30px;
+      margin-bottom: 24px;
+    }
+
+    .card-title {
+      font-size: 34px;
+      font-weight: 700;
+      color: #5a22d6;
+      margin-bottom: 30px;
+    }
+
+    .service-grid {
+      display: flex;
+      justify-content: space-between;
+      gap: 25px;
+    }
+
+    .service-column {
+      flex: 1;
+    }
+
+    .item {
+      margin-bottom: 28px;
+    }
+
+    .item-label {
+      color: #777;
+      font-size: 15px;
+      margin-bottom: 8px;
+    }
+
+    .item-value {
+      color: #1f1f1f;
+      font-size: 26px;
+      font-weight: 700;
+      line-height: 1.4;
+    }
+
+    .divider {
+      width: 1px;
+      background: #ececec;
+    }
+
+    /* PAYMENT */
+
+    .payment-wrapper {
+      display: flex;
+      justify-content: space-between;
+      gap: 25px;
+      align-items: center;
+    }
+
+    .payment-total {
+      flex: 1;
+    }
+
+    .payment-summary {
+      margin-top: 18px;
+    }
+
+    .payment-row {
+      display: flex;
+      justify-content: space-between;
+      align-items: center;
+      margin-bottom: 18px;
+    }
+
+    .payment-row span {
+      font-size: 18px;
+      color: #666;
+    }
+
+    .payment-row strong {
+      font-size: 22px;
+      color: #1f1f1f;
+    }
+
+    .payment-final {
+      border-top: 1px solid #ececec;
+      padding-top: 22px;
+      margin-top: 10px;
+
+      display: flex;
+      justify-content: space-between;
+      align-items: center;
+    }
+
+    .payment-final-label {
+      font-size: 24px;
+      font-weight: 700;
+      color: #5a22d6;
+    }
+
+    .payment-final-value {
+      font-size: 42px;
+      font-weight: 800;
+      color: #5a22d6;
+    }
+
+    .payment-method {
+      flex: 1;
+    }
+
+    .payment-badge {
+      display: inline-flex;
+      align-items: center;
+      gap: 12px;
+      border: 1px solid #e5e5e5;
+      padding: 14px 20px;
+      border-radius: 16px;
+      margin-top: 12px;
+      font-size: 26px;
+      font-weight: bold;
+      color: #222;
+    }
+
+    .paid-status {
+      margin-left: 15px;
+      background: #dff7e7;
+      color: #1ea75d;
+      padding: 6px 14px;
+      border-radius: 999px;
+      font-size: 14px;
+      font-weight: bold;
+    }
+
+    /* FOOTER CARD */
+
+    .footer-card {
+      background: #f1ebff;
+      border-radius: 24px;
+      padding: 25px;
+      display: flex;
+      align-items: center;
+      gap: 20px;
+      margin-bottom: 24px;
+    }
+
+    .footer-diarinho {
+      width: 120px;
+    }
+
+    .footer-title {
+      font-size: 36px;
+      color: #5a22d6;
+      font-weight: 700;
+      margin-bottom: 10px;
+    }
+
+    .footer-text {
+      color: #666;
+      line-height: 1.7;
+      font-size: 18px;
+    }
+
+    /* FOOTER */
+
+    .footer {
+      background: linear-gradient(135deg, #5d1ce0, #3f0fb3);
+      padding: 35px 30px;
+      color: white;
+    }
+
+    .footer-content {
+      display: flex;
+      justify-content: space-between;
+      align-items: center;
+      gap: 20px;
+      flex-wrap: wrap;
+    }
+
+    .footer-app {
+      font-size: 30px;
+      font-weight: 700;
+      color: #6de0ff;
+    }
+
+    .footer-help {
+      text-align: right;
+      font-size: 18px;
+      line-height: 1.6;
+    }
+
+    .footer-bottom {
+      margin-top: 25px;
+      text-align: center;
+      font-size: 14px;
+      opacity: 0.7;
+    }
+
+    /* RESPONSIVE */
+
+    @media(max-width: 640px) {
+
+      .header-content,
+      .service-grid,
+      .payment-wrapper,
+      .footer-card {
+        flex-direction: column;
+      }
+
+      .divider {
+        width: 100%;
+        height: 1px;
+      }
+
+      .title {
+        font-size: 42px;
+      }
+
+      .diarinho {
+        width: 160px;
+      }
+
+      .card-title {
+        font-size: 28px;
+      }
+
+      .item-value {
+        font-size: 22px;
+      }
+
+      .payment-final {
+        flex-direction: column;
+        align-items: flex-start;
+        gap: 10px;
+      }
+
+      .footer-help {
+        text-align: left;
+      }
+    }
+
+  </style>
+
 </head>
 
-<body style="margin:0;padding:0;background:#f5f5f7;font-family:Arial,Helvetica,sans-serif;">
+<body>
 
-  <table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#f5f5f7">
-    <tr>
-      <td align="center">
+<div class="email-container">
 
-        <!-- CONTAINER -->
-        <table width="650" cellpadding="0" cellspacing="0" border="0" bgcolor="#ffffff"
-          style="margin:20px auto;border-radius:24px;overflow:hidden;">
+  <!-- HEADER -->
 
-          <!-- HEADER -->
-          <tr>
-            <td
-              style="background:#5a22d6;padding:50px 40px;color:white;">
+  <div class="header">
 
-              <table width="100%">
-                <tr>
+    <div class="header-content">
 
-                  <td valign="middle">
+      <div class="header-text">
 
-                    <div style="font-size:52px;font-weight:bold;line-height:1.1;">
-                      {{ __('mail.service_completed.title') }}
-                    </div>
+        <div class="title">
+          {{ __('mail.service_completed.title') }}
+        </div>
 
-                    <div style="font-size:20px;margin-top:20px;line-height:1.6;">
-                      {{ __('mail.service_completed.subtitle') }}
-                    </div>
+        <div class="subtitle">
+          {{ __('mail.service_completed.subtitle') }}
+        </div>
 
-                  </td>
+      </div>
 
-                  <td width="220" align="right" valign="middle">
+      <img
+        src="{{ asset('images/diarinho.png') }}"
+        class="diarinho"
+        alt="Diarinho"
+      />
 
-                    <img
-                      src="https://i.imgur.com/8Km9tLL.png"
-                      width="200"
-                      alt="Diarinho"
-                      style="display:block;border:0;"
-                    >
+    </div>
 
-                  </td>
+  </div>
 
-                </tr>
-              </table>
+  <!-- CONTENT -->
 
-            </td>
-          </tr>
+  <div class="content">
 
-          <!-- CONTENT -->
-          <tr>
-            <td style="padding:30px;background:#f5f5f7;">
+    <!-- STATUS -->
 
-              <!-- STATUS -->
-              <table width="100%" bgcolor="#ffffff"
-                style="border-radius:20px;padding:20px;margin-bottom:25px;">
+    <div class="success-card">
 
-                <tr>
+      <div class="success-icon">
+        ✓
+      </div>
 
-                  <td width="70" valign="top">
+      <div>
 
-                    <div
-                      style="width:55px;height:55px;background:#4cd964;border-radius:999px;text-align:center;line-height:55px;color:white;font-size:30px;font-weight:bold;">
-                      ✓
-                    </div>
+        <div class="success-title">
+          {{ __('mail.service_completed.payment_confirmed') }}
+        </div>
 
-                  </td>
+        <div class="success-subtitle">
+          {{ __('mail.service_completed.payment_confirmed_subtitle') }}
+        </div>
 
-                  <td valign="middle">
+      </div>
 
-                    <div
-                      style="font-size:28px;font-weight:bold;color:#5a22d6;">
-                      {{ __('mail.service_completed.payment_confirmed') }}
-                    </div>
+    </div>
 
-                    <div
-                      style="font-size:18px;color:#666;margin-top:8px;">
-                      {{ __('mail.service_completed.payment_confirmed_subtitle') }}
-                    </div>
+    <!-- SERVICE -->
 
-                  </td>
+    <div class="card">
 
-                </tr>
+      <div class="card-title">
+        {{ __('mail.service_completed.service_resume') }}
+      </div>
 
-              </table>
+      <div class="service-grid">
 
-              <!-- SERVICE -->
-              <table width="100%" bgcolor="#ffffff"
-                style="border-radius:20px;padding:30px;margin-bottom:25px;">
+        <div class="service-column">
 
-                <tr>
-                  <td colspan="2"
-                    style="font-size:32px;font-weight:bold;color:#5a22d6;padding-bottom:30px;">
-                    {{ __('mail.service_completed.service_resume') }}
-                  </td>
-                </tr>
+          <div class="item">
 
-                <tr>
+            <div class="item-label">
+              {{ __('mail.service_completed.client') }}
+            </div>
 
-                  <!-- LEFT -->
-                  <td width="50%" valign="top">
+            <div class="item-value">
+              {{ $client_name }}
+            </div>
 
-                    <div style="color:#777;font-size:15px;">
-                      {{ __('mail.service_completed.client') }}
-                    </div>
+          </div>
 
-                    <div
-                      style="font-size:26px;font-weight:bold;color:#222;margin-top:8px;margin-bottom:25px;">
-                      {{ $client_name }}
-                    </div>
+          <div class="item">
 
-                    <div style="color:#777;font-size:15px;">
-                      {{ __('mail.service_completed.service_date') }}
-                    </div>
+            <div class="item-label">
+              {{ __('mail.service_completed.service_date') }}
+            </div>
 
-                    <div
-                      style="font-size:24px;font-weight:bold;color:#222;margin-top:8px;margin-bottom:25px;">
-                      {{ \Carbon\Carbon::parse($service_date)->format('d/m/Y') }}
-                    </div>
+            <div class="item-value">
+              {{ \Carbon\Carbon::parse($service_date)->format('d/m/Y') }}
+            </div>
 
-                    <div style="color:#777;font-size:15px;">
-                      {{ __('mail.service_completed.service_time') }}
-                    </div>
+          </div>
 
-                    <div
-                      style="font-size:24px;font-weight:bold;color:#222;margin-top:8px;">
-                      {{ substr($start_time,0,5) }}
-                      às
-                      {{ substr($end_time,0,5) }}
-                    </div>
+          <div class="item">
 
-                  </td>
+            <div class="item-label">
+              {{ __('mail.service_completed.service_time') }}
+            </div>
 
-                  <!-- RIGHT -->
-                  <td width="50%" valign="top"
-                    style="padding-left:30px;border-left:1px solid #ececec;">
+            <div class="item-value">
+              {{ substr($start_time, 0, 5) }}
+              às
+              {{ substr($end_time, 0, 5) }}
+            </div>
 
-                    <div style="color:#777;font-size:15px;">
-                      {{ __('mail.service_completed.service_address') }}
-                    </div>
+          </div>
 
-                    <div
-                      style="font-size:24px;font-weight:bold;color:#222;line-height:1.5;margin-top:8px;">
-                      {{ $address }}
-                    </div>
+        </div>
 
-                  </td>
+        <div class="divider"></div>
 
-                </tr>
+        <div class="service-column">
 
-              </table>
+          <div class="item">
 
-              <!-- PAYMENT -->
-              <table width="100%" bgcolor="#ffffff"
-                style="border-radius:20px;padding:30px;margin-bottom:25px;">
+            <div class="item-label">
+              {{ __('mail.service_completed.service_address') }}
+            </div>
 
-                <tr>
-                  <td colspan="2"
-                    style="font-size:32px;font-weight:bold;color:#5a22d6;padding-bottom:30px;">
-                    {{ __('mail.service_completed.payment_title') }}
-                  </td>
-                </tr>
+            <div class="item-value">
+              {{ $address }}
+            </div>
 
-                <tr>
+          </div>
 
-                  <!-- LEFT -->
-                  <td width="50%" valign="top">
+        </div>
 
-                    <table width="100%">
+      </div>
 
-                      <tr>
-                        <td
-                          style="font-size:18px;color:#666;padding-bottom:15px;">
-                          {{ __('mail.service_completed.total_amount') }}
-                        </td>
+    </div>
 
-                        <td align="right"
-                          style="font-size:22px;font-weight:bold;color:#222;padding-bottom:15px;">
-                          {{ __('mail.service_completed.currency') }}
-                          {{ number_format($total_amount,2,',','.') }}
-                        </td>
-                      </tr>
+    <!-- PAYMENT -->
 
-                      <tr>
-                        <td
-                          style="font-size:18px;color:#666;padding-bottom:15px;">
-                          {{ __('mail.service_completed.service_fee') }}
-                        </td>
+    <div class="card">
 
-                        <td align="right"
-                          style="font-size:22px;font-weight:bold;color:#222;padding-bottom:15px;">
-                           {{ __('mail.service_completed.currency') }}
-                          {{ number_format($service_fee,2,',','.') }}
-                        </td>
-                      </tr>
+      <div class="card-title">
+        {{ __('mail.service_completed.payment_title') }}
+      </div>
 
-                      <tr>
-                        <td
-                          style="font-size:24px;font-weight:bold;color:#5a22d6;padding-top:20px;border-top:1px solid #ececec;">
-                          {{ __('mail.service_completed.final_amount') }}
-                        </td>
+      <div class="payment-wrapper">
 
-                        <td align="right"
-                          style="font-size:38px;font-weight:bold;color:#5a22d6;padding-top:20px;border-top:1px solid #ececec;">
-                          {{ __('mail.service_completed.currency') }}
-                          {{ number_format($final_amount,2,',','.') }}
-                        </td>
-                      </tr>
+        <div class="payment-total">
 
-                    </table>
+          <div class="payment-summary">
 
-                  </td>
+            <div class="payment-row">
 
-                  <!-- RIGHT -->
-                  <td width="50%" valign="top"
-                    style="padding-left:30px;border-left:1px solid #ececec;">
+              <span>
+                {{ __('mail.service_completed.total_amount') }}
+              </span>
 
-                    <div style="font-size:16px;color:#777;">
-                      {{ __('mail.service_completed.payment_method') }}
-                    </div>
+              <strong>
+                {{ __('mail.currency') }}
+                {{ number_format($total_amount, 2, ',', '.') }}
+              </strong>
 
-                    <table
-                      style="margin-top:15px;border:1px solid #e5e5e5;border-radius:12px;padding:12px 18px;">
+            </div>
 
-                      <tr>
+            <div class="payment-row">
 
-                        <td
-                          style="font-size:26px;font-weight:bold;color:#222;">
-                          {{ $payment_method }}
-                        </td>
+              <span>
+                {{ __('mail.service_completed.service_fee') }}
+              </span>
 
-                        <td style="padding-left:15px;">
+              <strong>
+                {{ __('mail.currency') }}
+                {{ number_format($service_fee, 2, ',', '.') }}
+              </strong>
 
-                          <span
-                            style="background:#dff7e7;color:#1ea75d;padding:6px 14px;border-radius:999px;font-size:13px;font-weight:bold;">
-                            {{ __('mail.service_completed.paid') }}
-                          </span>
+            </div>
 
-                        </td>
+            <div class="payment-final">
 
-                      </tr>
+              <span class="payment-final-label">
+                {{ __('mail.service_completed.final_amount') }}
+              </span>
 
-                    </table>
+              <span class="payment-final-value">
+                {{ __('mail.currency') }}
+                {{ number_format($final_amount, 2, ',', '.') }}
+              </span>
 
-                  </td>
+            </div>
 
-                </tr>
+          </div>
 
-              </table>
+        </div>
 
-              <!-- FOOTER CARD -->
-              <table width="100%" bgcolor="#f1ebff"
-                style="border-radius:20px;padding:25px;margin-bottom:25px;">
+        <div class="divider"></div>
 
-                <tr>
+        <div class="payment-method">
 
-                  <td width="130" valign="middle">
+          <div class="item-label">
+            {{ __('mail.service_completed.payment_method') }}
+          </div>
 
-                    <img
-                      src="https://i.imgur.com/8Km9tLL.png"
-                      width="110"
-                      alt="Diarinho"
-                      style="display:block;border:0;"
-                    >
+          <div class="payment-badge">
 
-                  </td>
+            {{ $payment_method }}
 
-                  <td valign="middle">
+            <span class="paid-status">
+              {{ __('mail.service_completed.paid') }}
+            </span>
 
-                    <div
-                      style="font-size:34px;font-weight:bold;color:#5a22d6;">
-                      {{ __('mail.service_completed.footer_title') }}
-                    </div>
+          </div>
 
-                    <div
-                      style="font-size:18px;color:#666;line-height:1.7;margin-top:10px;">
-                      {{ __('mail.service_completed.footer_description') }}
-                    </div>
+        </div>
 
-                  </td>
+      </div>
 
-                </tr>
+    </div>
 
-              </table>
+    <!-- FOOTER CARD -->
 
-            </td>
-          </tr>
+    <div class="footer-card">
 
-          <!-- FOOTER -->
-          <tr>
-            <td
-              style="background:#5a22d6;padding:35px;color:white;">
+      <img
+        src="{{ asset('images/diarinho.png') }}"
+        class="footer-diarinho"
+        alt="Diarinho"
+      />
 
-              <table width="100%">
+      <div>
 
-                <tr>
+        <div class="footer-title">
+          {{ __('mail.service_completed.footer_title') }}
+        </div>
 
-                  <td valign="top">
+        <div class="footer-text">
+          {{ __('mail.service_completed.footer_description') }}
+        </div>
 
-                    <div
-                      style="font-size:30px;font-weight:bold;color:#6de0ff;">
-                      diariaapp
-                    </div>
+      </div>
 
-                  </td>
+    </div>
 
-                  <td align="right"
-                    style="font-size:18px;line-height:1.6;">
+  </div>
 
-                    {{ __('mail.service_completed.footer_help') }}<br>
+  <!-- FOOTER -->
 
-                    {{ __('mail.service_completed.footer_contact') }}<br>
+  <div class="footer">
 
-                    (11) 99999-9999
+    <div class="footer-content">
 
-                  </td>
+      <div>
 
-                </tr>
+        <div class="footer-app">
+          diariaapp
+        </div>
 
-              </table>
+      </div>
 
-              <div
-                style="margin-top:25px;text-align:center;font-size:13px;opacity:0.7;">
-                {{ __('mail.service_completed.footer_note') }}
-              </div>
+      <div class="footer-help">
 
-            </td>
-          </tr>
+        {{ __('mail.service_completed.footer_help') }}<br>
 
-        </table>
+        {{ __('mail.service_completed.footer_contact') }}<br>
 
-      </td>
-    </tr>
-  </table>
+        (11) 99999-9999
 
-</body>
+      </div>
+
+    </div>
 
-</html>
+    <div class="footer-bottom">
+      {{ __('mail.service_completed.footer_note') }}
+    </div>
+
+  </div>
+
+</div>
+
+</body>
 
+</html>

+ 140 - 196
resources/views/emails/send_code.blade.php

@@ -2,275 +2,219 @@
 <html lang="pt-BR">
 
 <head>
-  <meta charset="UTF-8">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0">
-  <title>{{ __('mail.send_code.subject') }}</title>
-</head>
-
-<body style="margin:0;padding:0;background:#f4f4f7;font-family:Arial,Helvetica,sans-serif;">
-
-  <table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#f4f4f7">
-    <tr>
-      <td align="center" style="padding:30px 15px;">
-
-        <!-- CONTAINER -->
-        <table width="650" cellpadding="0" cellspacing="0" border="0"
-          style="background:#ffffff;border-radius:24px;overflow:hidden;">
-
-          <!-- HEADER -->
-          <tr>
-            <td
-              style="background:linear-gradient(135deg,#4f1fd6,#7b2cff);padding:50px 40px;">
-
-              <table width="100%">
-
-                <tr>
-
-                  <!-- LEFT -->
-                  <td valign="middle">
-
-                    <div
-                      style="font-size:56px;font-weight:800;line-height:1.1;color:#ffffff;">
-
-                      {{ __('mail.send_code.title') }}
-
-                    </div>
-
-                    <div
-                      style="font-size:22px;line-height:1.6;color:#e8dbff;margin-top:22px;">
-
-                      {{ __('mail.send_code.body_intro') }}
-
-                    </div>
-
-                  </td>
-
-                  <!-- RIGHT -->
-                  <td width="240" align="right" valign="middle">
-
-                    <img
-                      src="https://i.imgur.com/8Km9tLL.png"
-                      width="220"
-                      alt="Diarinho"
-                      style="display:block;border:0;"
-                    >
-
-                  </td>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
 
-                </tr>
-
-              </table>
-
-            </td>
-          </tr>
-
-          <!-- CONTENT -->
-          <tr>
-            <td style="padding:35px;background:#f5f5f7;">
-
-              <!-- CARD -->
-              <table width="100%" cellpadding="0" cellspacing="0" border="0"
-                style="background:#ffffff;border-radius:24px;padding:35px;">
-
-                <!-- GREETING -->
-                <tr>
-                  <td>
-
-                    @if (!empty($recipientName))
-
-                    <div
-                      style="font-size:42px;font-weight:700;color:#1f1f1f;line-height:1.3;">
+    <title>
+        {{ __('mail.send_code.subject') }}
+    </title>
+</head>
 
-                      {{ __('mail.send_code.greeting', ['name' => $recipientName]) }}
+<body style="margin:0;padding:0;background:#f5f5f7;font-family:Arial,Helvetica,sans-serif;">
 
-                    </div>
+    <table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#f5f5f7">
+        <tr>
+            <td align="center" style="padding:25px;">
 
-                    @else
+                <!-- CONTAINER -->
+                <table width="650" cellpadding="0" cellspacing="0" border="0" bgcolor="#ffffff"
+                    style="border-radius:24px;overflow:hidden;">
 
-                    <div
-                      style="font-size:42px;font-weight:700;color:#1f1f1f;line-height:1.3;">
+                    <!-- HEADER -->
+                    <tr>
+                        <td style="background:#5a22d6;padding:50px 40px;color:white;">
 
-                      {{ __('mail.send_code.greeting_anonymous') }}
+                            <table width="100%">
+                                <tr>
 
-                    </div>
+                                    <!-- LEFT -->
+                                    <td valign="middle">
 
-                    @endif
+                                        <div style="font-size:52px;font-weight:bold;line-height:1.1;">
+                                            {{ __('mail.send_code.subject') }}
+                                        </div>
 
-                  </td>
-                </tr>
+                                        <div style="font-size:20px;margin-top:20px;line-height:1.6;">
+                                            {{ __('mail.send_code.header_subtitle') }}
+                                        </div>
 
-                <!-- TEXT -->
-                <tr>
-                  <td
-                    style="padding-top:25px;font-size:22px;line-height:1.8;color:#555555;">
+                                    </td>
 
-                    {{ __('mail.send_code.code_instruction') }}
+                                    <!-- RIGHT -->
+                                    <td width="220" align="right" valign="middle">
 
-                  </td>
-                </tr>
+                                        <img src="{{ asset('images/diarinho.png') }}" width="110" alt="Diarinho"
+                                            style="display:block;border:0;">
 
-                <!-- CODE BOX -->
-                <tr>
-                  <td align="center" style="padding-top:35px;">
+                                    </td>
 
-                    <table cellpadding="0" cellspacing="0" border="0"
-                      style="background:#f5efff;border-radius:24px;padding:35px 40px;width:100%;">
+                                </tr>
+                            </table>
 
-                      <tr>
+                        </td>
+                    </tr>
 
-                        <td align="center">
+                    <!-- CONTENT -->
+                    <tr>
+                        <td style="padding:30px;background:#f5f5f7;">
 
-                          <div
-                            style="font-size:82px;font-weight:800;letter-spacing:18px;color:#5a22d6;">
+                            <!-- MAIN CARD -->
+                            <table width="100%" bgcolor="#ffffff"
+                                style="border-radius:24px;padding:35px;margin-bottom:25px;">
 
-                            {{ $code }}
+                                <!-- GREETING -->
+                                <tr>
+                                    <td>
 
-                          </div>
+                                        @if (!empty($recipientName))
+                                            <div style="font-size:34px;font-weight:bold;color:#222;line-height:1.4;">
+                                                {{ __('mail.send_code.greeting', ['name' => $recipientName]) }}
+                                            </div>
+                                        @else
+                                            <div style="font-size:34px;font-weight:bold;color:#222;line-height:1.4;">
+                                                {{ __('mail.send_code.greeting_anonymous') }}
+                                            </div>
+                                        @endif
 
-                        </td>
+                                    </td>
+                                </tr>
 
-                      </tr>
+                                <!-- BODY -->
+                                <tr>
+                                    <td style="padding-top:25px;font-size:20px;color:#666;line-height:1.8;">
+                                        {{ __('mail.send_code.body_intro') }}
+                                    </td>
+                                </tr>
 
-                    </table>
+                                <!-- CODE -->
+                                <tr>
+                                    <td align="center" style="padding-top:35px;">
 
-                  </td>
-                </tr>
+                                        <table cellpadding="0" cellspacing="0" border="0" bgcolor="#f3ecff"
+                                            style="border-radius:24px;padding:35px 45px;">
 
-                <!-- EXPIRATION -->
-                <tr>
-                  <td align="center"
-                    style="padding-top:30px;font-size:18px;color:#666666;line-height:1.7;">
+                                            <tr>
 
-                    ⏰ {{ __('mail.send_code.expiry_notice') }}
+                                                <td align="center">
 
-                  </td>
-                </tr>
+                                                    <div
+                                                        style="font-size:68px;font-weight:800;color:#5a22d6;letter-spacing:16px;">
+                                                        {{ $code }}
+                                                    </div>
 
-                <!-- ALERT -->
-                <tr>
-                  <td style="padding-top:30px;">
+                                                </td>
 
-                    <table width="100%"
-                      style="background:#fff8e7;border-radius:18px;padding:22px;">
+                                            </tr>
 
-                      <tr>
+                                        </table>
 
-                        <td
-                          style="font-size:18px;color:#9c6a00;line-height:1.7;">
+                                    </td>
+                                </tr>
 
-                          ⚠️ {{ __('mail.send_code.ignore_notice') }}
+                                <!-- EXPIRATION -->
+                                <tr>
+                                    <td align="center"
+                                        style="padding-top:28px;font-size:17px;color:#777;line-height:1.7;">
 
-                        </td>
+                                        {{ __('mail.send_code.expiry_notice') }}
 
-                      </tr>
+                                    </td>
+                                </tr>
 
-                    </table>
+                                <!-- WARNING -->
+                                <tr>
+                                    <td style="padding-top:30px;">
 
-                  </td>
-                </tr>
+                                        <table width="100%" bgcolor="#fff8e8"
+                                            style="border-radius:18px;padding:22px;">
 
-              </table>
+                                            <tr>
 
-              <!-- FOOTER CARD -->
-              <table width="100%" cellpadding="0" cellspacing="0" border="0"
-                style="background:#f3ecff;border-radius:24px;padding:25px;margin-top:25px;">
+                                                <td style="font-size:17px;color:#9a6a00;line-height:1.8;">
 
-                <tr>
+                                                    {{ __('mail.send_code.ignore_notice') }}
 
-                  <!-- IMAGE -->
-                  <td width="140" valign="middle">
+                                                </td>
 
-                    <img
-                      src="https://i.imgur.com/7uX7N4F.png"
-                      width="120"
-                      alt="Diarinho"
-                      style="display:block;border:0;"
-                    >
+                                            </tr>
 
-                  </td>
+                                        </table>
 
-                  <!-- TEXT -->
-                  <td valign="middle">
+                                    </td>
+                                </tr>
 
-                    <div
-                      style="font-size:34px;font-weight:700;color:#5a22d6;">
+                            </table>
 
-                      {{ __('mail.send_code.footer_title') }}
+                            <!-- FOOTER CARD -->
+                            <table width="100%" bgcolor="#f1ebff"
+                                style="border-radius:24px;padding:25px;margin-bottom:25px;">
 
-                    </div>
+                                <tr>
 
-                    <div
-                      style="font-size:20px;line-height:1.7;color:#666666;margin-top:10px;">
+                                    <td width="130" valign="middle">
 
-                      {{ __('mail.send_code.footer_description') }}
+                                        <img src="{{ asset('images/diarinho.png') }}" class="diarinho"
+                                            alt="Diarinho" />
 
-                    </div>
+                                    </td>
 
-                  </td>
+                                    <td valign="middle">
 
-                </tr>
+                                        <div style="font-size:34px;font-weight:bold;color:#5a22d6;">
 
-              </table>
+                                            {{ __('mail.send_code.footer_title') }}
 
-            </td>
-          </tr>
+                                        </div>
 
-          <!-- FOOTER -->
-          <tr>
-            <td
-              style="background:linear-gradient(135deg,#4f1fd6,#7b2cff);padding:35px 30px;">
+                                        <div style="font-size:18px;color:#666;line-height:1.7;margin-top:10px;">
 
-              <table width="100%">
+                                            {{ __('mail.send_code.footer_note') }}
 
-                <tr>
+                                        </div>
 
-                  <!-- BRAND -->
-                  <td valign="top">
+                                    </td>
 
-                    <div
-                      style="font-size:34px;font-weight:800;color:#6de0ff;">
+                                </tr>
 
-                      diariaapp
+                            </table>
 
-                    </div>
+                        </td>
+                    </tr>
 
-                  </td>
+                    <!-- FOOTER -->
+                    <tr>
+                        <td style="background:#5a22d6;padding:35px;color:white;">
 
-                  <!-- CONTACT -->
-                  <td align="right"
-                    style="font-size:18px;color:#ffffff;line-height:1.8;">
+                            <table width="100%">
 
-                    {{ __('mail.send_code.footer_help') }}<br>
+                                <tr>
+                                    <!-- CONTACT -->
+                                    <td align="right" style="font-size:18px;line-height:1.7;">
 
-                    {{ __('mail.send_code.footer_contact') }}<br>
+                                        {{ __('mail.send_code.footer_note') }}
 
-                    (11) 99999-9999
+                                    </td>
 
-                  </td>
+                                </tr>
 
-                </tr>
+                            </table>
 
-              </table>
+                            <!-- BOTTOM -->
+                            <div style="margin-top:25px;text-align:center;font-size:13px;opacity:0.7;">
 
-              <!-- BOTTOM -->
-              <div
-                style="margin-top:28px;text-align:center;font-size:14px;color:#d6c5ff;line-height:1.7;">
+                                © {{ date('Y') }}
 
-                © {{ date('Y') }} Diaria App<br>
+                            </div>
 
-                {{ __('mail.send_code.footer_note') }}
+                        </td>
+                    </tr>
 
-              </div>
+                </table>
 
             </td>
-          </tr>
-
-        </table>
-
-      </td>
-    </tr>
-  </table>
+        </tr>
+    </table>
 
 </body>
 
-</html>
+</html>

+ 0 - 2
storage/app/public/.gitignore

@@ -1,2 +0,0 @@
-*
-!.gitignore