From 43efb5210b7de9ce83afb8b1b44ca74bbb6bdaf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Duli=C3=A7i?= Date: Mon, 24 Apr 2023 13:33:09 +0300 Subject: [PATCH] styling --- app/Notifications/Email/InvalidEmail.php | 9 +++++++-- resources/lang/en-GB/notifications.php | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/app/Notifications/Email/InvalidEmail.php b/app/Notifications/Email/InvalidEmail.php index f458c4f15..10a87cbcf 100644 --- a/app/Notifications/Email/InvalidEmail.php +++ b/app/Notifications/Email/InvalidEmail.php @@ -6,6 +6,7 @@ use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Notification; use Illuminate\Notifications\Messages\MailMessage; +use Illuminate\Support\HtmlString; class InvalidEmail extends Notification implements ShouldQueue { @@ -54,8 +55,12 @@ class InvalidEmail extends Notification implements ShouldQueue return (new MailMessage) ->subject(trans('notifications.email.invalid.title', ['type' => $this->type])) - ->line(trans('notifications.email.invalid.description', ['email' => $this->email])) - ->line($this->error) + ->line(new HtmlString('
')) + ->line(new HtmlString('
')) + ->line(new HtmlString(trans('notifications.email.invalid.description', ['email' => $this->email]))) + ->line(new HtmlString('
')) + ->line(new HtmlString('
')) + ->line(new HtmlString('' . $this->error . '')) ->action(trans_choice('general.dashboards', 1), $dashboard_url); } diff --git a/resources/lang/en-GB/notifications.php b/resources/lang/en-GB/notifications.php index b9013cdad..3b804df50 100644 --- a/resources/lang/en-GB/notifications.php +++ b/resources/lang/en-GB/notifications.php @@ -68,7 +68,7 @@ return [ 'invalid' => [ 'title' => 'Invalid :type Email', - 'description' => ':email email address has been reported as invalid and the person has been disabled. Please check the following error message and fix the email address:', + 'description' => 'The :email email address has been reported as invalid, and the person has been disabled. Please check the following error message and fix the email address:', ], @@ -191,7 +191,7 @@ return [ 'invalid_email' => [ 'title' => 'Invalid :type Email', - 'description' => ':email email address has been reported as invalid and the person has been disabled. Please check and fix the email address.', + 'description' => 'The :email email address has been reported as invalid, and the person has been disabled. Please check and fix the email address.', ],