Skip to content

Commit

Permalink
fix(mail): missing data in plain-text mails
Browse files Browse the repository at this point in the history
  • Loading branch information
Fenrikur committed Feb 1, 2024
1 parent 599732e commit fd5d28e
Show file tree
Hide file tree
Showing 19 changed files with 72 additions and 55 deletions.
4 changes: 2 additions & 2 deletions app/Notifications/AlternateTableOfferedNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ public function via(object $notifiable): array
public function toMail(object $notifiable): MailMessage
{
return (new MailMessage)
->greeting("Dear " . $notifiable->name . ",")
->subject(config('con.con_name') . ' Dealers\' Den - Alternate Table Size')
->greeting('Dear ' . $notifiable->name . ',')
->line('Thank you for your interest in a Dealership at Eurofurence. We appreciate your application and are excited to have you as a potential dealer at the convention.')
->line('Unfortunately, we regret to inform you that the table size you have applied for is no longer available. However, we have some alternative table sizes we would like to offer that may be suitable for your needs.')
->line('Currently, the following table size is available:')
->line($this->tableAssigned . ' - ' . $this->price / 100 . ' EUR')
->action('Review Dealership Package', url('/table/confirm'))
->line('We understand that this alternative option may not be what you had in mind when applying, but we hope that it will still meet your needs and enable you to participate in the Eurofurence Dealers\' Den. As we have limited space, we will be offering any available table sizes to other applications on the waiting list if we do not receive a response from you within the next seven days. So please let us know within this time frame whether you would like to accept one of the alternative options or decline the offer and be put on the waiting list. To do so, simply reply to this email.')
->line('We apologize for any inconvenience this may have caused you, and we hope to hear back from you soon. Thank you for your understanding and cooperation.')
->salutation(new HtmlString('Best regards,<br />the Eurofurence Dealers\' Den Team'));
->salutation(new HtmlString("Best regards,<br />\nthe Eurofurence Dealers' Den Team"));
}

public function toArray(object $notifiable): array
Expand Down
4 changes: 2 additions & 2 deletions app/Notifications/AlternateTableOfferedShareNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ public function via(object $notifiable): array
public function toMail(object $notifiable): MailMessage
{
return (new MailMessage)
->greeting("Dear " . $notifiable->name . ",")
->subject(config('con.con_name') . ' Dealers\' Den - Alternate Table Size')
->greeting('Dear ' . $notifiable->name . ',')
->line('Thank you for your interest as share in a Dealership at Eurofurence. We appreciate your application and are excited to have you as a potential dealer at the convention.')
->line('Unfortunately, we regret to inform you that the table size your Dealership has applied for is no longer available. However, we have offered your Dealership an alternative table size that may be suitable for your needs.')
->line('Currently, the following table size is available:')
->line($this->tableAssigned . ' - ' . $this->price / 100 . ' EUR')
->line('We understand that this alternative option may not be what you had in mind when applying, but we hope that it will still meet your needs and enable you to participate in the Eurofurence Dealers\' Den. Please consult with your Dealership about how you would like to proceed, as they are the ones who will have to accept or decline the offer and pay the abovementioned fee.')
->salutation(new HtmlString('Best regards,<br />the Eurofurence Dealers\' Den Team'));
->salutation(new HtmlString("Best regards,<br />\nthe Eurofurence Dealers' Den Team"));
}

public function toArray(object $notifiable): array
Expand Down
4 changes: 2 additions & 2 deletions app/Notifications/CanceledByDealershipNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ public function toMail($notifiable): MailMessage
{
return (new MailMessage)
->subject(config('con.con_name') . ' Dealers\' Den - Application Canceled by Dealership')
->greeting("Dear ".$notifiable->name.",")
->greeting('Dear ' . $notifiable->name . ',')
->line('The dealership you had joined has chosen to remove you from their application, thereby canceling your own application. But don\'t worry, all data you had entered remains in our system, allowing you pick one of the following options without having to reenter everything:')
->line('- Ask the dealership you were part of to allow you to rejoin if you think this happened in error,')
->line('- Get in touch with other dealers and join a different dealership or')
->line('- Apply for a full dealership yourself.')
->line('Thank you for your understanding.')
->salutation(new HtmlString('Best regards,<br />the Eurofurence Dealers\' Den Team'));
->salutation(new HtmlString("Best regards,<br />\nthe Eurofurence Dealers' Den Team"));
}

public function toArray($notifiable): array
Expand Down
4 changes: 2 additions & 2 deletions app/Notifications/CanceledBySelfNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ public function toMail($notifiable): MailMessage
{
return (new MailMessage)
->subject(config('con.con_name') . ' Dealers\' Den - Application Canceled')
->greeting("Dear ".$notifiable->name.",")
->greeting('Dear ' . $notifiable->name . ',')
->line('This mail confirms that you have successfully canceled your registration for the Dealers\' Den at this year\'s Eurofurence. We are sorry to see you go and would love to see you back next year.')
->line('Should you change your mind, you can resubmit your application or join another dealership until the end of the application phase.')
->salutation(new HtmlString('Best regards,<br />the Eurofurence Dealers\' Den Team'));
->salutation(new HtmlString("Best regards,<br />\nthe Eurofurence Dealers' Den Team"));
}

public function toArray($notifiable): array
Expand Down
2 changes: 1 addition & 1 deletion app/Notifications/JoinNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function toMail($notifiable): MailMessage
->line('We wish to inform you that ' . $this->joinName . ' has successfully joined your dealership as ' . $this->joinType . ' via your invite code.')
->line('If you did not invite them, please go to "Shares & Assistants" in the Dealers\' Den Registration system to generate a new invite code or disable invitations and remove them from your dealership:')
->action('Manage Shares and Assistants', url('/applications/invitees'))
->salutation(new HtmlString('Best regards,<br />the Eurofurence Dealers\' Den Team'));
->salutation(new HtmlString("Best regards,<br />\nthe Eurofurence Dealers' Den Team"));
}

public function toArray($notifiable): array
Expand Down
6 changes: 3 additions & 3 deletions app/Notifications/TableAcceptanceReminderNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ public function via(object $notifiable): array
public function toMail(object $notifiable): MailMessage
{
return (new MailMessage)
->greeting("Dear " . $notifiable->name . ",")
->subject(config('con.con_name') . ' Dealers\' Den - Reminder')
->greeting('Dear ' . $notifiable->name . ',')
->line('We recently sent you an email notifying you of your successful application for a dealership at ' . config('con.con_name') . '. Congratulations again!')
->line('However, we noticed that you have yet to confirm your placement as a dealer. This confirmation is crucial to secure your spot in the Dealer\'s Den.')
->line('To confirm your dealership, please click on the following button. By doing so, you are agreeing to the Dealers\' Den\'s terms and conditions, and your Eurofurence event registration will be updated to include the fee for the assigned dealership.')
->action('Review Dealership Package', url('/table/confirm'))
->line(new HtmlString('If you have any questions or concerns regarding the payment or subsequent processes, please contact Dealers\' Den management via <a href="mailto:'. config('con.dealers_email') .'">' . config('con.dealers_email') . '</a>.'))
->line(new HtmlString('If you have any questions or concerns regarding the payment or subsequent processes, please contact Dealers\' Den management via <a href="mailto:' . config('con.dealers_email') . '">' . config('con.dealers_email') . '</a>.'))
->line('Thank you for your prompt attention to this matter. We are excited about your participation in ' . config('con.con_name') . ' Dealers\' Den and look forward to seeing your unique pieces on display at the convention.')
->salutation(new HtmlString('Best regards,<br />the Eurofurence Dealers\' Den Team'));
->salutation(new HtmlString("Best regards,<br />\nthe Eurofurence Dealers' Den Team"));
}

public function toArray(object $notifiable): array
Expand Down
10 changes: 5 additions & 5 deletions app/Notifications/TableAcceptedNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@ public function via($notifiable): array
public function toMail($notifiable): MailMessage
{
return (new MailMessage)
->greeting("Dear " . $notifiable->name . ",")
->subject(config('con.con_name') . ' Dealers\' Den - Package Confirmed and Next Steps')
->greeting('Dear ' . $notifiable->name . ',')
->line('We have received your confirmation for your dealer package at the ' . config('con.con_name') . ' Dealers\' Den. Thank you for taking the time to review and confirm your table assignment and dealer package details. We are excited to have you join us as a dealer at the convention!')
->line('Your confirmed table assignment details are as follows:')
->line('Table Number: ' . $this->tableNumber)
->line('Assigned Table Size: ' . $this->tableAssigned)
->line('Final Dealer Package Price: ' . $this->price / 100 . ' EUR' )
->line(new HtmlString('As you have confirmed your dealer package, the final price has been added to your Eurofurence registration fee. To complete the payment, please log in to the Eurofurence registration system at <a href="'. config('con.idp_url') .'">' . config('con.idp_url') . '</a> and follow the payment instructions.'))
->line('Final Dealer Package Price: ' . $this->price / 100 . ' EUR')
->line(new HtmlString('As you have confirmed your dealer package, the final price has been added to your Eurofurence registration fee. To complete the payment, please log in to the Eurofurence registration system at <a href="' . config('con.idp_url') . '">' . config('con.idp_url') . '</a> and follow the payment instructions.'))
->line('In the coming weeks, we will be sending you more information about the Dealers\' Den setup, event schedules, and other important details to help you prepare for the convention. Please keep an eye on your email for these updates.')
->line(new HtmlString('If you have any questions or concerns, feel free to reach out to us at <a href="mailto:'. config('con.dealers_email') .'">' . config('con.dealers_email') . '</a>. We are here to help ensure a smooth and enjoyable experience for all our dealers.'))
->line(new HtmlString('If you have any questions or concerns, feel free to reach out to us at <a href="mailto:' . config('con.dealers_email') . '">' . config('con.dealers_email') . '</a>. We are here to help ensure a smooth and enjoyable experience for all our dealers.'))
->line('Once again, thank you for your participation in ' . config('con.con_name') . ' Dealers\' Den. We are looking forward to seeing your amazing art and items showcased at the event!')
->salutation(new HtmlString('Best regards,<br />the Eurofurence Dealers\' Den Team'));
->salutation(new HtmlString("Best regards,<br />\nthe Eurofurence Dealers' Den Team"));
}

public function toArray($notifiable): array
Expand Down
4 changes: 2 additions & 2 deletions app/Notifications/TableAcceptedShareNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public function via($notifiable): array
public function toMail($notifiable): MailMessage
{
return (new MailMessage)
->greeting("Dear " . $notifiable->name . ",")
->subject(config('con.con_name') . ' Dealers\' Den - Package Confirmed and Next Steps')
->greeting('Dear ' . $notifiable->name . ',')
->line('Your Dealership has successfully confirmed its package at the ' . config('con.con_name') . ' Dealers\' Den. We are excited to have you join us as a dealer at the convention!')
->line('The table assignment details are as follows:')
->line('Table Number: ' . $this->tableNumber)
Expand All @@ -42,7 +42,7 @@ public function toMail($notifiable): MailMessage
->line('In the coming weeks, we will be sending you more information about the Dealers\' Den setup, event schedules, and other important details to help you prepare for the convention. Please keep an eye on your email for these updates.')
->line(new HtmlString('If you have any questions or concerns, feel free to reach out to us at <a href="mailto:' . config('con.dealers_email') . '">' . config('con.dealers_email') . '</a>. We are here to help ensure a smooth and enjoyable experience for all our dealers.'))
->line('Once again, thank you for your participation in ' . config('con.con_name') . ' Dealers\' Den. We are looking forward to seeing your amazing art and items showcased at the event!')
->salutation(new HtmlString('Best regards,<br />the Eurofurence Dealers\' Den Team'));
->salutation(new HtmlString("Best regards,<br />\nthe Eurofurence Dealers' Den Team"));
}

public function toArray($notifiable): array
Expand Down
10 changes: 5 additions & 5 deletions app/Notifications/TableOfferedNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ public function via(object $notifiable): array
public function toMail(object $notifiable): MailMessage
{
return (new MailMessage)
->greeting("Dear " . $notifiable->name . ",")
->subject(config('con.con_name') . ' Dealers\' Den - Application Accepted')
->greeting('Dear ' . $notifiable->name . ',')
->line('We are thrilled to inform you that your application for a dealership at ' . config('con.con_name') . ' has been accepted! Congratulations!')
->line(new HtmlString('To review and confirm your placement as a dealer at ' . config('con.con_name') . ', please click on the button below. By accepting the offered table, you are agreeing to the <a href="'. config('con.dealers_tos_url') .'">Dealers\' Den\'s terms and conditions</a>, and the payment process will be initiated.'))
->line(new HtmlString('To review and confirm your placement as a dealer at ' . config('con.con_name') . ', please click on the button below. By accepting the offered table, you are agreeing to the <a href="' . config('con.dealers_tos_url') . '">Dealers\' Den\'s terms and conditions</a>, and the payment process will be initiated.'))
->action('Review Dealership Package', url('/table/confirm'))
->line(new HtmlString('Once you have confirmed the package, your Eurofurence event registration will be updated to include the fee for the assigned dealership. All payments must be handled through the Eurofurence registration system, available at <a href="'. config('con.idp_url') .'">' . config('con.idp_url') . '</a>. Please note that you are required to pay all fees, including the Eurofurence event registration fee, within ' . config('con.payment_timeframe') . ' of receiving this email to secure your placement as a dealer. If payment is overdue, Dealers\' Den management may void your placement and offer the space to the next dealer on the waiting list.'))
->line(new HtmlString('Once you have confirmed the package, your Eurofurence event registration will be updated to include the fee for the assigned dealership. All payments must be handled through the Eurofurence registration system, available at <a href="' . config('con.idp_url') . '">' . config('con.idp_url') . '</a>. Please note that you are required to pay all fees, including the Eurofurence event registration fee, within ' . config('con.payment_timeframe') . ' of receiving this email to secure your placement as a dealer. If payment is overdue, Dealers\' Den management may void your placement and offer the space to the next dealer on the waiting list.'))
->line('Although all placements may be subject to change until the start of the convention, you will be sent an email containing the preliminary dealership table assignment for information.')
->line(new HtmlString('If you have any questions or concerns regarding the payment or subsequent processes, please contact Dealers\' Den management via <a href="mailto:'. config('con.dealers_email') .'">' . config('con.dealers_email') . '</a>.'))
->line(new HtmlString('If you have any questions or concerns regarding the payment or subsequent processes, please contact Dealers\' Den management via <a href="mailto:' . config('con.dealers_email') . '">' . config('con.dealers_email') . '</a>.'))
->line('Thank you again for your interest and participation in ' . config('con.con_name') . ' Dealers\' Den! We are looking forward to seeing you and your beautiful artwork and items on display at the convention, and have no doubt that it will be a huge hit among our attendees.')
->salutation(new HtmlString('Best regards,<br />the Eurofurence Dealers\' Den Team'));
->salutation(new HtmlString("Best regards,<br />\nthe Eurofurence Dealers' Den Team"));
}

public function toArray(object $notifiable): array
Expand Down
4 changes: 2 additions & 2 deletions app/Notifications/TableOfferedShareNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ public function via(object $notifiable): array
public function toMail(object $notifiable): MailMessage
{
return (new MailMessage)
->greeting("Dear " . $notifiable->name . ",")
->subject(config('con.con_name') . ' Dealers\' Den - Application Accepted')
->greeting('Dear ' . $notifiable->name . ',')
->line('We are thrilled to inform you that the application for the dealership at ' . config('con.con_name') . ' which you are part of has been accepted! Congratulations!')
->line('The table still has to be accepted by Dealership who will also be responsible for paying the table fee, so consult with them in case you have any questions.')
->line('Please note that you are required to pay all fees, including the Eurofurence event registration fee, within ' . config('con.payment_timeframe') . ' of receiving this email to secure your placement as a dealer. If payment is overdue, Dealers\' Den management may void your placement.')
->line('Thank you again for your interest and participation in ' . config('con.con_name') . ' Dealers\' Den! We are looking forward to seeing you and your beautiful artwork and items on display at the convention, and have no doubt that it will be a huge hit among our attendees.')
->salutation(new HtmlString('Best regards,<br />the Eurofurence Dealers\' Den Team'));
->salutation(new HtmlString("Best regards,<br />\nthe Eurofurence Dealers' Den Team"));
}

public function toArray(object $notifiable): array
Expand Down
Loading

0 comments on commit fd5d28e

Please sign in to comment.