bug fixes, daily reports, holidays
This commit is contained in:
27
app/Mail/DailyReportSubmitted.php
Normal file
27
app/Mail/DailyReportSubmitted.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class DailyReportSubmitted extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
public $report;
|
||||
public $user;
|
||||
|
||||
public function __construct($report, $user)
|
||||
{
|
||||
$this->report = $report;
|
||||
$this->user = $user;
|
||||
}
|
||||
|
||||
public function build()
|
||||
{
|
||||
return $this->subject('New Daily Report: ' . $this->user->name . ' - ' . $this->report->report_date->format('d M Y'))
|
||||
->view('emails.reports.submitted');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user