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,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