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 + +