- Redesigned all email templates with professional corporate style - Created base layout with dark header, status cards, and footer - Updated: subscription-cancelled, account-activation, welcome, welcome-new-user, due-payments-alert - Removed emojis and gradients for cleaner look - Added multi-language support (ES, PT-BR, EN) - Fixed email delivery (sync instead of queue) - Fixed PayPal already-cancelled subscription handling - Cleaned orphan subscriptions from deleted users
165 lines
7.2 KiB
PHP
165 lines
7.2 KiB
PHP
@extends('emails.layouts.base')
|
|
|
|
@section('title')
|
|
@if($locale === 'pt-BR')
|
|
Cancelamento de Assinatura
|
|
@elseif($locale === 'en')
|
|
Subscription Cancellation
|
|
@else
|
|
Cancelación de Suscripción
|
|
@endif
|
|
@endsection
|
|
|
|
@section('content')
|
|
@if($locale === 'pt-BR')
|
|
{{-- Portuguese (Brazil) --}}
|
|
<p class="greeting">Olá, {{ $userName }}</p>
|
|
|
|
<div class="content">
|
|
<p>Confirmamos o cancelamento da sua assinatura do plano <strong>{{ $planName }}</strong>.</p>
|
|
|
|
@if($wasRefunded)
|
|
<div class="status-card success">
|
|
<table cellpadding="0" cellspacing="0" border="0" width="100%">
|
|
<tr>
|
|
<td width="52" valign="top">
|
|
<div style="width: 40px; height: 40px; background-color: #c6f6d5; border-radius: 50%; text-align: center; line-height: 40px; font-size: 18px;">✓</div>
|
|
</td>
|
|
<td valign="top">
|
|
<p class="status-title">Reembolso Processado</p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<p style="margin-top: 16px;">Valor reembolsado conforme garantia de 7 dias:</p>
|
|
<span class="amount-value">{{ $refundAmount }}</span>
|
|
<p style="font-size: 13px; color: #48bb78; margin-top: 8px;">
|
|
Prazo: 5-10 dias úteis para crédito na forma de pagamento original.
|
|
</p>
|
|
</div>
|
|
@endif
|
|
|
|
<div class="status-card info">
|
|
<p class="status-title" style="color: #2d3748; margin-bottom: 16px;">Informações Importantes</p>
|
|
<ul class="info-list">
|
|
<li>Acesso premium encerrado</li>
|
|
<li>Conta disponível com funcionalidades básicas</li>
|
|
<li>Seus dados foram preservados</li>
|
|
<li>Reativação disponível a qualquer momento</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="divider"></div>
|
|
|
|
<p style="text-align: center; color: #6c757d; font-size: 14px;">
|
|
Agradecemos por ter sido nosso cliente.
|
|
</p>
|
|
|
|
<div class="btn-container">
|
|
<a href="{{ config('app.frontend_url', 'https://webmoney.cnxifly.com') }}/pricing" class="btn btn-primary">
|
|
VER PLANOS
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
@elseif($locale === 'en')
|
|
{{-- English --}}
|
|
<p class="greeting">Hello, {{ $userName }}</p>
|
|
|
|
<div class="content">
|
|
<p>We confirm the cancellation of your <strong>{{ $planName }}</strong> subscription.</p>
|
|
|
|
@if($wasRefunded)
|
|
<div class="status-card success">
|
|
<table cellpadding="0" cellspacing="0" border="0" width="100%">
|
|
<tr>
|
|
<td width="52" valign="top">
|
|
<div style="width: 40px; height: 40px; background-color: #c6f6d5; border-radius: 50%; text-align: center; line-height: 40px; font-size: 18px;">✓</div>
|
|
</td>
|
|
<td valign="top">
|
|
<p class="status-title">Refund Processed</p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<p style="margin-top: 16px;">Amount refunded per our 7-day guarantee:</p>
|
|
<span class="amount-value">{{ $refundAmount }}</span>
|
|
<p style="font-size: 13px; color: #48bb78; margin-top: 8px;">
|
|
Timeline: 5-10 business days to credit your original payment method.
|
|
</p>
|
|
</div>
|
|
@endif
|
|
|
|
<div class="status-card info">
|
|
<p class="status-title" style="color: #2d3748; margin-bottom: 16px;">Important Information</p>
|
|
<ul class="info-list">
|
|
<li>Premium access ended</li>
|
|
<li>Account available with basic features</li>
|
|
<li>Your data has been preserved</li>
|
|
<li>Reactivation available anytime</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="divider"></div>
|
|
|
|
<p style="text-align: center; color: #6c757d; font-size: 14px;">
|
|
Thank you for being our customer.
|
|
</p>
|
|
|
|
<div class="btn-container">
|
|
<a href="{{ config('app.frontend_url', 'https://webmoney.cnxifly.com') }}/pricing" class="btn btn-primary">
|
|
VIEW PLANS
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
@else
|
|
{{-- Spanish (default) --}}
|
|
<p class="greeting">Hola, {{ $userName }}</p>
|
|
|
|
<div class="content">
|
|
<p>Confirmamos la cancelación de tu suscripción al plan <strong>{{ $planName }}</strong>.</p>
|
|
|
|
@if($wasRefunded)
|
|
<div class="status-card success">
|
|
<table cellpadding="0" cellspacing="0" border="0" width="100%">
|
|
<tr>
|
|
<td width="52" valign="top">
|
|
<div style="width: 40px; height: 40px; background-color: #c6f6d5; border-radius: 50%; text-align: center; line-height: 40px; font-size: 18px;">✓</div>
|
|
</td>
|
|
<td valign="top">
|
|
<p class="status-title">Reembolso Procesado</p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<p style="margin-top: 16px;">Monto reembolsado según garantía de 7 días:</p>
|
|
<span class="amount-value">{{ $refundAmount }}</span>
|
|
<p style="font-size: 13px; color: #48bb78; margin-top: 8px;">
|
|
Plazo: 5-10 días hábiles para acreditar en tu método de pago original.
|
|
</p>
|
|
</div>
|
|
@endif
|
|
|
|
<div class="status-card info">
|
|
<p class="status-title" style="color: #2d3748; margin-bottom: 16px;">Información Importante</p>
|
|
<ul class="info-list">
|
|
<li>Acceso premium finalizado</li>
|
|
<li>Cuenta disponible con funciones básicas</li>
|
|
<li>Tus datos han sido preservados</li>
|
|
<li>Reactivación disponible en cualquier momento</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="divider"></div>
|
|
|
|
<p style="text-align: center; color: #6c757d; font-size: 14px;">
|
|
Gracias por haber sido nuestro cliente.
|
|
</p>
|
|
|
|
<div class="btn-container">
|
|
<a href="{{ config('app.frontend_url', 'https://webmoney.cnxifly.com') }}/pricing" class="btn btn-primary">
|
|
VER PLANES
|
|
</a>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endsection
|