diff --git a/app/Notifications/IncidentUpdate/IncidentUpdatedNotification.php b/app/Notifications/IncidentUpdate/IncidentUpdatedNotification.php index 907ae366d059..758f9afea2ae 100644 --- a/app/Notifications/IncidentUpdate/IncidentUpdatedNotification.php +++ b/app/Notifications/IncidentUpdate/IncidentUpdatedNotification.php @@ -78,6 +78,7 @@ public function toMail($notifiable) ->subject(trans('notifications.incident.update.mail.subject')) ->markdown('notifications.incident.update', [ 'incident' => $this->update->incident, + 'update' => $this->update, 'content' => $content, 'actionText' => trans('notifications.incident.new.mail.action'), 'actionUrl' => cachet_route('incident', [$this->update->incident]), diff --git a/resources/views/notifications/incident/update.blade.php b/resources/views/notifications/incident/update.blade.php index 7817d4c8639c..8711e4bdd0ca 100644 --- a/resources/views/notifications/incident/update.blade.php +++ b/resources/views/notifications/incident/update.blade.php @@ -1,11 +1,15 @@ @component('mail::message') # {{ trans('notifications.incident.update.mail.title', ['name' => $incidentName, 'new_status' => $newStatus]) }} -{{ $content }} +{{ $update->message }} + +@component('mail::button', ['url' => $actionUrl]) +{{ $actionText }} +@endcomponent Thanks,
{{ Config::get('setting.app_name') }} @include('notifications.partials.subscription') -@endcomponent \ No newline at end of file +@endcomponent