Conditions | 5 |
Paths | 16 |
Total Lines | 17 |
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 | |||
27 | $this->user = User::find($file['security_user_id']); |
||
28 | $this->subject = 'SIS Bulk Upload: ' .$file['subject'].' Empty ' . $institution->institution->code.': '. $institution->name.' '. date('Y:m:d H:i:s'); |
||
29 | $this->from_address = env('MAIL_FROM_ADDRESS'); |
||
30 | $this->from_name = 'SIS Bulk Uploader'; |
||
31 | $this->with = [ |
||
32 | 'name' => $this->user->first_name, |
||
33 | 'link' => \App::environment('local') || \App::environment('stage') ? env('APP_URL') : env('APP_URL').'/bulk-upload/' |
||
34 | ]; |
||
35 | $this->viewData = [ |
||
36 | 'name'=>$this->user->first_name, "body" => "No data Found in ". $file['filename']. ' Please re-upload the file with data', |
||
37 | 'link' => \App::environment('local') || \App::environment('stage') ? env('APP_URL') : env('APP_URL').'/bulk-upload/' |
||
38 | ]; |
||
56 |