styling notifications
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user