From e4db36e6502d3a1bededa4e444f4bf32913d40e6 Mon Sep 17 00:00:00 2001 From: ncoronel Date: Fri, 4 Sep 2026 10:51:00 -0300 Subject: [PATCH] feat(notification): update welcome email to include tenant URL and call-to-action button --- .../Notification/Services/NotificationMailService.php | 3 ++- resources/views/mail/notifications/welcome.blade.php | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/Domains/Notification/Services/NotificationMailService.php b/app/Domains/Notification/Services/NotificationMailService.php index c76d759..d053032 100644 --- a/app/Domains/Notification/Services/NotificationMailService.php +++ b/app/Domains/Notification/Services/NotificationMailService.php @@ -32,13 +32,14 @@ class NotificationMailService $tenant = Tenant::query()->with('websiteType')->where('codigo', $tenantCode)->firstOrFail(); $user = User::query()->findOrFail($userId); $brand = $tenant->websiteType ?? $tenant; + $tenantUrl = 'https://'.$tenant->dominio.$tenant->base_path; $this->mailService ->forTenant($tenantCode) ->send( $user->email, "Bienvenido a {$brand->nombre}", - view('mail.notifications.welcome', compact('brand', 'user'))->render(), + view('mail.notifications.welcome', compact('brand', 'user', 'tenantUrl'))->render(), $brand, ); diff --git a/resources/views/mail/notifications/welcome.blade.php b/resources/views/mail/notifications/welcome.blade.php index 5f0e215..2e6c775 100644 --- a/resources/views/mail/notifications/welcome.blade.php +++ b/resources/views/mail/notifications/welcome.blade.php @@ -1,3 +1,8 @@

¡Bienvenido a {{ $brand->nombre }}!

Hola {{ $user->nombre_apellido }}, tu cuenta fue creada correctamente.

-

Ya podés ingresar y comenzar a comprar.

+
+ + Encendé tu experiencia + +