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,12 @@
@component('mail::message')
# New PIREP Submitted
A new PIREP has been submitted by {{ $pirep->user->ident }} {{ $pirep->user->name }}
@component('mail::button', ['url' => route('admin.pireps.edit', [$pirep->id])])
View PIREP
@endcomponent
Thanks,<br>
{{ config('app.name') }}
@endcomponent

View File

@@ -0,0 +1,9 @@
@component('mail::message')
A new user has signed up!
Name: {{ $user->name }}!
Email: {{ $user->email }}
State: {{ UserState::label($user->state) }}
{{ config('app.name') }}
@endcomponent

View File

@@ -0,0 +1,12 @@
@component('mail::message')
# {{ $news->subject }}
$news->body
@component('mail::button', ['url' => route('frontend.pireps.show', [$pirep->id])])
View PIREP
@endcomponent
Thanks,<br>
{{ config('app.name') }}
@endcomponent

View File

@@ -0,0 +1,12 @@
@component('mail::message')
# PIREP Accepted!
Your PIREP has been accepted
@component('mail::button', ['url' => route('frontend.pireps.show', [$pirep->id])])
View PIREP
@endcomponent
Thanks,<br>
{{ config('app.name') }}
@endcomponent

View File

@@ -0,0 +1,12 @@
@component('mail::message')
# PIREP Accepted!
Your PIREP has been rejected
@component('mail::button', ['url' => route('frontend.pireps.show', [$pirep->id])])
View PIREP
@endcomponent
Thanks,<br>
{{ config('app.name') }}
@endcomponent

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