diff --git a/app/Http/Controllers/EventsController.php b/app/Http/Controllers/EventsController.php index 2aed09d..9a321fc 100644 --- a/app/Http/Controllers/EventsController.php +++ b/app/Http/Controllers/EventsController.php @@ -108,6 +108,8 @@ class EventsController extends Controller 'name' => $user->name, 'lastname' => $user->lastname, 'eventName' => $event->name, + 'start' => $event->start, + 'end' => $event->end, ]; Mail::to($user->email)->send(new EventParticipationCancelledMail($data)); diff --git a/app/Mail/EventParticipationCancelledMail.php b/app/Mail/EventParticipationCancelledMail.php index 2b73159..1255c67 100644 --- a/app/Mail/EventParticipationCancelledMail.php +++ b/app/Mail/EventParticipationCancelledMail.php @@ -43,6 +43,8 @@ class EventParticipationCancelledMail extends Mailable 'name' => $this->data['name'], 'lastname' => $this->data['lastname'], 'eventName' => $this->data['eventName'], + 'start' => $this->data['start'], + 'end' => $this->data['end'], ] ); } diff --git a/resources/views/mails/eventParticipationCancelled.blade.php b/resources/views/mails/eventParticipationCancelled.blade.php index 2c2c8c6..6a0d352 100644 --- a/resources/views/mails/eventParticipationCancelled.blade.php +++ b/resources/views/mails/eventParticipationCancelled.blade.php @@ -11,7 +11,7 @@

L’événement {{ $eventName }} a été supprimé par un administrateur. - Vous n’y participez donc plus. + Vous n’y participez donc plus. Cet événement avait lieu de {{ $start }} à {{ $end }}.

diff --git a/resources/views/mails/volunteerUnassignToTask.blade.php b/resources/views/mails/volunteerUnassignToTask.blade.php index 115747f..d8f65dd 100644 --- a/resources/views/mails/volunteerUnassignToTask.blade.php +++ b/resources/views/mails/volunteerUnassignToTask.blade.php @@ -11,7 +11,7 @@

Vous avez été désassigné de la tâche {{ $taskName }} par un administrateur. - Cette tâche avait lieu de {{ $start }} à {{ $end }}. Vous n'y participez donc plus. + Vous n'y participez donc plus. Cette tâche avait lieu de {{ $start }} à {{ $end }}.