391 Notification refactorings (#441)

* Refactor notifications to allow easier plugins

* Notification refactoring

* Formatting

* Move news to NewsService; cleanup of events

* More refactoring; added send email out for news item and the template

* Formatting

* Formatting
This commit is contained in:
Nabeel S
2019-11-20 10:16:01 -05:00
committed by GitHub
parent 02973a0f22
commit ea3ab21beb
66 changed files with 754 additions and 718 deletions

View File

@@ -0,0 +1,17 @@
@component('mail::message')
Your new login details for {{ config('app.name') }} follow:
Do not share this information with anyone else! <br />
<strong>E-Mail Address:</strong> {{ $user->email }}<br />
<strong>Temporary Password:</strong> {{ $newpw }}<br /><br />
Your account is now ready for use.<br />
Upon first login, please reset your password.
@component('mail::button', ['url' => url('/login')])
Login & Reset Password
@endcomponent
Thanks,<br />
Management, {{ config('app.name') }}
@endcomponent

View File

@@ -0,0 +1,8 @@
@component('mail::message')
# Thanks for signing up, {{ $user->name }}!
You will be notified as soon as your account is approved!
Thanks,<br>
Management, {{ config('app.name') }}
@endcomponent

View File

@@ -0,0 +1,12 @@
@component('mail::message')
# Thanks for signing up, {{ $user->name }}!
Your account is ready to use.
@component('mail::button', ['url' => url('/login')])
Visit your account now!
@endcomponent
Thanks,<br>
Management, {{ config('app.name') }}
@endcomponent

View File

@@ -0,0 +1,9 @@
@component('mail::message')
# Hi {{ $user->name }},
Your registration to our airline was denied. Please contact
an administrator with any questions you may have.
Thanks,<br>
Management, {{ config('app.name') }}
@endcomponent