From c127cc379e8ee0449ea6db3668ba72077f539619 Mon Sep 17 00:00:00 2001 From: Ovidiu U Date: Thu, 23 Apr 2026 10:48:22 +0100 Subject: [PATCH] feat: add day-5 branded payment-failure reminder mailable --- app/Mail/PaymentFailedDay5Reminder.php | 35 +++++++++++++++++++ .../emails/payment-failed-day-5.blade.php | 27 ++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 app/Mail/PaymentFailedDay5Reminder.php create mode 100644 resources/views/emails/payment-failed-day-5.blade.php diff --git a/app/Mail/PaymentFailedDay5Reminder.php b/app/Mail/PaymentFailedDay5Reminder.php new file mode 100644 index 0000000..1aca82a --- /dev/null +++ b/app/Mail/PaymentFailedDay5Reminder.php @@ -0,0 +1,35 @@ +user)->tier(); + + return new Envelope( + subject: 'Last chance — your '.ucfirst($tier).' features end tomorrow', + ); + } + + public function content(): Content + { + return new Content( + markdown: 'emails.payment-failed-day-5', + with: [ + 'name' => $this->user->name, + 'tier' => PlanFeatures::for($this->user)->tier(), + 'portalUrl' => route('billing.portal'), + ], + ); + } +} diff --git a/resources/views/emails/payment-failed-day-5.blade.php b/resources/views/emails/payment-failed-day-5.blade.php new file mode 100644 index 0000000..12a34d8 --- /dev/null +++ b/resources/views/emails/payment-failed-day-5.blade.php @@ -0,0 +1,27 @@ + +# Your {{ ucfirst($tier) }} features end tomorrow + +Hi {{ $name }}, + +Stripe has been trying to renew your subscription for the past few days without +success. If the next retry doesn't go through, your **{{ ucfirst($tier) }}** +subscription will be cancelled tomorrow and your account will move back to the +Free tier. + +Here's what you'll lose on Free: + +- Smart fill-up / wait recommendations +- Multi-channel alerts (WhatsApp, SMS, push) +- Advanced fuel-price predictions + +You can keep everything running by updating your card now: + + + Update payment method + + +If you meant to cancel, no action needed — you'll just drop to Free automatically. + +Thanks for using FuelAlert, +The FuelAlert Team +