-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat(invite): add confirmation step to invite process #39 * feat(invite): send emails to invitee and dealership #39 * fix: styling, wording and redirect issues
- Loading branch information
Showing
16 changed files
with
343 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
|
||
namespace App\Notifications; | ||
|
||
use Illuminate\Bus\Queueable; | ||
use Illuminate\Contracts\Queue\ShouldQueue; | ||
use Illuminate\Notifications\Messages\MailMessage; | ||
use Illuminate\Notifications\Notification; | ||
use Illuminate\Support\HtmlString; | ||
|
||
class JoinNotification extends Notification implements ShouldQueue | ||
{ | ||
use Queueable; | ||
|
||
private string $joinType; | ||
private string $joinName; | ||
|
||
public function __construct(string $joinType, string $joinName) | ||
{ | ||
$this->joinType = ucfirst($joinType); | ||
$this->joinName = $joinName; | ||
} | ||
|
||
public function via($notifiable): array | ||
{ | ||
return ['mail']; | ||
} | ||
|
||
public function toMail($notifiable): MailMessage | ||
{ | ||
return (new MailMessage) | ||
->subject(config('con.con_name') . ' Dealers\' Den - ' . $this->joinType . ' Joined') | ||
->greeting("Dear $notifiable->name,") | ||
->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')); | ||
} | ||
|
||
public function toArray($notifiable): array | ||
{ | ||
return []; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
namespace App\Notifications; | ||
|
||
use Illuminate\Bus\Queueable; | ||
use Illuminate\Contracts\Queue\ShouldQueue; | ||
use Illuminate\Notifications\Messages\MailMessage; | ||
use Illuminate\Notifications\Notification; | ||
use Illuminate\Support\HtmlString; | ||
|
||
class WelcomeShareNotification extends Notification implements ShouldQueue | ||
{ | ||
use Queueable; | ||
|
||
private string $dealershipName; | ||
|
||
public function __construct(string $dealershipName) | ||
{ | ||
$this->dealershipName = $dealershipName; | ||
} | ||
|
||
public function via($notifiable): array | ||
{ | ||
return ['mail']; | ||
} | ||
|
||
public function toMail($notifiable): MailMessage | ||
{ | ||
return (new MailMessage) | ||
->subject(config('con.con_name') . ' Dealers\' Den - Application Received') | ||
->greeting('Dear ' . $notifiable->name . ',') | ||
->line('Thank you for your application as part of your joint dealership with ' . $this->dealershipName . ' at the upcoming Eurofurence. Your interest in being a part of this year\'s Dealers\' Den is very much appreciated.') | ||
->line('We have received your application and will review it once the Dealership application period has ended. We understand that waiting can be difficult, but please know that we are working hard to review all applications in a timely manner. Once we have reviewed all the applications, we will get in touch with you to provide you with all the necessary information about the next steps.') | ||
->line('Thank you in advance for your patience. The Dealers\' Den management is looking forward to reviewing your application.') | ||
->salutation(new HtmlString('Best regards,<br />the Eurofurence Dealers\' Den Team')); | ||
} | ||
|
||
public function toArray($notifiable): array | ||
{ | ||
return []; | ||
} | ||
} |
Oops, something went wrong.