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:
12
resources/views/mail/admin/pirep/submitted.blade.php
Normal file
12
resources/views/mail/admin/pirep/submitted.blade.php
Normal 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
|
||||
9
resources/views/mail/admin/user/registered.blade.php
Normal file
9
resources/views/mail/admin/user/registered.blade.php
Normal 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
|
||||
12
resources/views/mail/pirep/accepted.blade.php
Normal file
12
resources/views/mail/pirep/accepted.blade.php
Normal 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
|
||||
12
resources/views/mail/pirep/rejected.blade.php
Normal file
12
resources/views/mail/pirep/rejected.blade.php
Normal 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
|
||||
17
resources/views/mail/user/new_login_details.blade.php
Normal file
17
resources/views/mail/user/new_login_details.blade.php
Normal 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
|
||||
8
resources/views/mail/user/pending.blade.php
Normal file
8
resources/views/mail/user/pending.blade.php
Normal 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
|
||||
12
resources/views/mail/user/registered.blade.php
Normal file
12
resources/views/mail/user/registered.blade.php
Normal 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
|
||||
9
resources/views/mail/user/rejected.blade.php
Normal file
9
resources/views/mail/user/rejected.blade.php
Normal 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
|
||||
Reference in New Issue
Block a user