| Total Complexity | 6 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class ExportReady extends Mailable |
||
| 11 | { |
||
| 12 | use Queueable, SerializesModels; |
||
|
|
|||
| 13 | |||
| 14 | /** |
||
| 15 | * Create a new message instance. |
||
| 16 | * |
||
| 17 | * @return void |
||
| 18 | */ |
||
| 19 | public function __construct($user) |
||
| 20 | { |
||
| 21 | $this->user = $user; |
||
| 22 | $this->subject = 'The DoE data is ready to download '. date('Y:m:d H:i:s'); |
||
| 23 | $this->from_address = env('MAIL_FROM_ADDRESS'); |
||
| 24 | $this->from_name = 'SIS Bulk Uploader'; |
||
| 25 | $this->with = [ |
||
| 26 | 'name' => $this->user->first_name, |
||
| 27 | 'link' => \App::environment('local') || \App::environment('stage') ? env('APP_URL').'/downloadExportexamination' : env('APP_URL').'/bulk-upload/downloadExportexamination' |
||
| 28 | ]; |
||
| 29 | |||
| 30 | $this->viewData = [ |
||
| 31 | 'name'=>$this->user->first_name, "body" =>'Your requested file is ready to download', |
||
| 32 | 'link' => \App::environment('local') || \App::environment('stage') ? env('APP_URL').'/downloadExportexamination' : env('APP_URL').'/bulk-upload/downloadExportexamination' |
||
| 33 | ]; |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Build the message. |
||
| 38 | * |
||
| 39 | * @return $this |
||
| 40 | */ |
||
| 41 | public function build() |
||
| 48 | } |
||
| 49 | } |
||
| 50 |