Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function __construct($file) |
||
22 | { |
||
23 | |||
24 | $institution = Institution_class::find($file['institution_class_id']); |
||
25 | |||
26 | $this->user = User::find($file['security_user_id']); |
||
27 | $this->subject = 'SIS Bulk upload: '. $file['subject'] .$institution->institution->code.': '. $institution->name.' ' . date('Y:m:d H:i:s'); |
||
28 | $this->from_address = env('MAIL_FROM_ADDRESS'); |
||
29 | $this->from_name = 'SIS Bulk Uploader'; |
||
30 | $this->with = [ |
||
31 | 'name' => $this->user->first_name, |
||
32 | 'link' => env('APP_URL').'/create/' |
||
33 | ]; |
||
34 | $this->viewData = [ |
||
35 | 'name'=>$this->user->first_name, "body" => "Student upload success, you can access the data from open email UI and dashboard", |
||
36 | 'link' => env('APP_URL').'/create/' |
||
37 | ]; |
||
55 |