From de94eb4e307a24ab1fade65933a31e7f643d46a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anna-Sara=20S=C3=A9lea?= Date: Tue, 8 Jul 2025 19:11:04 +0200 Subject: [PATCH] Updated mail templates --- app/Mail/Delivered.php | 2 +- app/Mail/ReservationCreated.php | 3 ++- app/Mail/ReservationCreatedUser.php | 2 +- app/Mail/ReservationDeletedUser.php | 2 +- app/Mail/ReturnDateReminder.php | 2 +- resources/views/emails/admin/reservationcreated.blade.php | 1 + 6 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/Mail/Delivered.php b/app/Mail/Delivered.php index 2b843a8..402f0ee 100644 --- a/app/Mail/Delivered.php +++ b/app/Mail/Delivered.php @@ -29,7 +29,7 @@ class Delivered extends Mailable public function envelope(): Envelope { return new Envelope( - subject: 'Levererad', + subject: 'vBytes - Vara levererad', ); } diff --git a/app/Mail/ReservationCreated.php b/app/Mail/ReservationCreated.php index 12c28c6..5c09ed1 100644 --- a/app/Mail/ReservationCreated.php +++ b/app/Mail/ReservationCreated.php @@ -29,7 +29,7 @@ class ReservationCreated extends Mailable public function envelope(): Envelope { return new Envelope( - subject: 'Reservation Created', + subject: 'Reservation skapad', ); } @@ -44,6 +44,7 @@ class ReservationCreated extends Mailable 'reservationName' => $this->reservation->username, 'reservationDesc' => Item::where('id', $this->reservation->item_id)->pluck('desc')->first(), 'reservationEmail' => $this->reservation->email, + 'reservationPhone' => $this->reservation->phone, ], ); } diff --git a/app/Mail/ReservationCreatedUser.php b/app/Mail/ReservationCreatedUser.php index eed6970..afc9ff3 100644 --- a/app/Mail/ReservationCreatedUser.php +++ b/app/Mail/ReservationCreatedUser.php @@ -27,7 +27,7 @@ class ReservationCreatedUser extends Mailable public function envelope(): Envelope { return new Envelope( - subject: 'Reservation skapad', + subject: 'vBytes - Reservation skapad', ); } diff --git a/app/Mail/ReservationDeletedUser.php b/app/Mail/ReservationDeletedUser.php index fdf9236..ac0d900 100644 --- a/app/Mail/ReservationDeletedUser.php +++ b/app/Mail/ReservationDeletedUser.php @@ -27,7 +27,7 @@ class ReservationDeletedUser extends Mailable public function envelope(): Envelope { return new Envelope( - subject: 'Reservation borttagen', + subject: 'vBytes - Reservation borttagen', ); } diff --git a/app/Mail/ReturnDateReminder.php b/app/Mail/ReturnDateReminder.php index 639154f..6dda7cf 100644 --- a/app/Mail/ReturnDateReminder.php +++ b/app/Mail/ReturnDateReminder.php @@ -30,7 +30,7 @@ class ReturnDateReminder extends Mailable public function envelope(): Envelope { return new Envelope( - subject: 'Påminnelse om återlämning', + subject: 'vBytes - Påminnelse om återlämning', ); } diff --git a/resources/views/emails/admin/reservationcreated.blade.php b/resources/views/emails/admin/reservationcreated.blade.php index db0a375..884b9c9 100644 --- a/resources/views/emails/admin/reservationcreated.blade.php +++ b/resources/views/emails/admin/reservationcreated.blade.php @@ -7,5 +7,6 @@

Reservation skapad

{{ $reservationName }} har reserverat {{ $reservationDesc }}

Mail: {{ $reservationEmail }}

+

Telefon: {{ $reservationPhone }}

\ No newline at end of file