Use Notification/Notifiable (#379)

* Add migrations for notifiables

* Configure spatie-backup to run as part of cron

* Convert Mailer to Notification; add pirep notifications

* Styling
This commit is contained in:
Nabeel S
2019-08-30 15:59:17 -04:00
committed by GitHub
parent b213f2bb4c
commit 7ace8bccd6
50 changed files with 1703 additions and 214 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')
# 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