-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #406 from czqoocavatsim/JoshuaBranch
RosterInactivity Switched to Year Based
- Loading branch information
Showing
7 changed files
with
149 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?php | ||
|
||
namespace App\Notifications\Roster; | ||
|
||
use Illuminate\Bus\Queueable; | ||
use Illuminate\Notifications\Notification; | ||
use Illuminate\Contracts\Queue\ShouldQueue; | ||
use Illuminate\Notifications\Messages\MailMessage; | ||
|
||
class TwoMonthFromRemoval extends Notification | ||
{ | ||
use Queueable; | ||
protected $user; | ||
/** | ||
* Create a new notification instance. | ||
* | ||
* @return void | ||
*/ | ||
public function __construct($user) | ||
{ | ||
$this->user = $user; | ||
} | ||
|
||
/** | ||
* Get the notification's delivery channels. | ||
* | ||
* @param mixed $notifiable | ||
* | ||
* @return array | ||
*/ | ||
public function via($notifiable) | ||
{ | ||
return ['mail']; | ||
} | ||
|
||
/** | ||
* Get the mail representation of the notification. | ||
* | ||
* @param mixed $notifiable | ||
* | ||
* @return \Illuminate\Notifications\Messages\MailMessage | ||
*/ | ||
public function toMail($notifiable) | ||
{ | ||
return (new MailMessage())->view( | ||
'emails.roster.twomonthstillremoval', | ||
['user' => $this->user] | ||
)->subject('Two Months to Fufill Activity Requirements'); | ||
} | ||
|
||
/** | ||
* Get the array representation of the notification. | ||
* | ||
* @param mixed $notifiable | ||
* | ||
* @return array | ||
*/ | ||
public function toArray($notifiable) | ||
{ | ||
return [ | ||
// | ||
]; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
resources/views/emails/roster/twomonthstillremoval.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@extends('layouts.email') | ||
|
||
@section('to-line', 'Dear '. $user->fullName('F') . ',') | ||
|
||
@section('message-content') | ||
<p>Our records indicate that you currently do not meet the currency requirements for your endorsement with Gander Oceanic</p> | ||
|
||
<p>This is a friendly reminder that you must control a minimum of 1 hour per calendar year. You currently have {{$user->currency}} minutes recorded on Gander & Shanwick Positions.</p> | ||
|
||
<p></p> | ||
|
||
<p>If you believe this is a mistake or have any questions, please email the <a href="{{route('staff')}}">Chief Instructor</a> with your query.</p> | ||
@endsection | ||
|
||
@section('from-line') | ||
Sent by Gander Oceanic OCA | ||
@endsection | ||
|
||
@section('footer-to-line', $user->fullName('FLC').' ('.$user->email.')') | ||
|
||
@section('footer-reason-line') | ||
of Currency Policy Requirements | ||
@endsection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters