styling notifications

This commit is contained in:
Denis Duliçi
2023-05-12 14:58:10 +03:00
parent 9e94dd9fac
commit c8a5127f65
5 changed files with 16 additions and 5 deletions

View File

@ -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 ImportFailed extends Notification implements ShouldQueue
{
@ -51,12 +52,16 @@ class ImportFailed extends Notification implements ShouldQueue
{
$message = (new MailMessage)
->subject(trans('notifications.import.failed.title'))
->line(new HtmlString('<br><br>'))
->line(trans('notifications.import.failed.description'));
foreach ($this->errors as $error) {
$message->line(new HtmlString('<br><br>'));
$message->line($error);
}
$message->line(new HtmlString('<br><br>'));
return $message;
}