| Conditions | 3 |
| Paths | 4 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function __construct($file) |
||
| 20 | { |
||
| 21 | |||
| 22 | $institution = Institution_class::find($file['institution_class_id']); |
||
| 23 | |||
| 24 | |||
| 25 | $this->user = User::find($file['security_user_id']); |
||
| 26 | $this->subject = 'SIS Bulk Upload: IncorrectTemplate'.$institution->institution->code.': '. $institution->name.' '. date('Y:m:d H:i:s'); |
||
| 27 | $this->from_address = env('MAIL_FROM_ADDRESS'); |
||
| 28 | $this->from_name = 'SIS Bulk Uploader'; |
||
| 29 | $this->with = [ |
||
| 30 | 'name' => $this->user->first_name, |
||
| 31 | 'link' => env('APP_ENV','local') == 'stage' | 'local' | 'prod' ? env('APP_URL').'/download/' .$file['filename'] : env('APP_URL').'/bulk-upload/download/' .$file['filename'] |
||
| 32 | ]; |
||
| 33 | $this->viewData = [ |
||
| 34 | 'name'=>$this->user->first_name, "body" => "The Template you used for upload having some issues, please reconfirm and re-upload with correct template", |
||
| 35 | 'link' => env('APP_ENV','local') == 'stage' | 'local' | 'prod' ? env('APP_URL').'/download/' .$file['filename'] : env('APP_URL').'/bulk-upload/download/' .$file['filename'] |
||
| 36 | ]; |
||
| 53 |