diff --git a/app/Http/Controllers/Agent/helpdesk/NotificationController.php b/app/Http/Controllers/Agent/helpdesk/NotificationController.php index 3b6a4969b..6c59b1d29 100644 --- a/app/Http/Controllers/Agent/helpdesk/NotificationController.php +++ b/app/Http/Controllers/Agent/helpdesk/NotificationController.php @@ -76,10 +76,6 @@ class NotificationController extends Controller $view = View::make('emails.notifications.admin', ['company' => $company, 'name' => $user_name]); $contents = $view->render(); $this->PhpMailController->sendEmail($from = $this->PhpMailController->mailfrom('1', '0'), $to = ['name' => $user_name, 'email' => $email], $message = ['subject' => 'Daily Report', 'scenario' => null, 'body' => $contents]); - -// \Mail::send('emails.notifications.admin', ['company' => $company, 'name' => $user_name], function ($message) use ($email, $user_name, $company) { -// $message->to($email, $user_name)->subject($company.' Daily Report '); -// }); } } @@ -103,10 +99,6 @@ class NotificationController extends Controller $view = View::make('emails.notifications.manager', ['company' => $company, 'name' => $user_name]); $contents = $view->render(); $this->PhpMailController->sendEmail($from = $this->PhpMailController->mailfrom('1', '0'), $to = ['name' => $user_name, 'email' => $email], $message = ['subject' => 'Daily Report', 'scenario' => null, 'body' => $contents]); - -// \Mail::send('emails.notifications.manager', ['company' => $company, 'name' => $user_name, 'dept_id' => $dept->id, 'dept_name' => $dept->name], function ($message) use ($email, $user_name, $company, $dept_name) { -// $message->to($email, $user_name)->subject($company.' Daily Report for department manager of '.$dept_name.' department.'); -// }); } } } @@ -132,10 +124,6 @@ class NotificationController extends Controller $view = View::make('emails.notifications.lead', ['company' => $company, 'name' => $user_name]); $contents = $view->render(); $this->PhpMailController->sendEmail($from = $this->PhpMailController->mailfrom('1', '0'), $to = ['name' => $user_name, 'email' => $email], $message = ['subject' => 'Daily Report', 'scenario' => null, 'body' => $contents]); - -// \Mail::send('emails.notifications.lead', ['company' => $company, 'name' => $user_name, 'team_id' => $team->id], function ($message) use ($email, $user_name, $company, $team_name) { -// $message->to($email, $user_name)->subject($company.' Daily Report for Team Lead of team '.$team_name); -// }); } } } @@ -157,13 +145,9 @@ class NotificationController extends Controller $view = View::make('emails.notifications.agent', ['company' => $company, 'name' => $user_name, 'user_id' => $user->id]); $contents = $view->render(); $this->PhpMailController->sendEmail($from = $this->PhpMailController->mailfrom('1', '0'), $to = ['name' => $user_name, 'email' => $email], $message = ['subject' => 'Daily Report', 'scenario' => null, 'body' => $contents]); - -// \Mail::send('emails.notifications.agent', ['company' => $company, 'name' => $user_name, 'user_id' => 1], function ($message) use ($email, $user_name, $company) { -// $message->to($email, $user_name)->subject($company.' Daily Report for Agents'); -// }); } } - + /** * Fetching company name. * @@ -183,12 +167,5 @@ class NotificationController extends Controller return $company; } - // // testing - // public function test(){ - // $email = "sujit.prasad@ladybirdweb.com"; - // $user_name = "sujit prasad"; - // \Mail::send('emails.notifications.test', ['user_id' => 1], function ($message) use($email, $user_name) { - // $message->to($email, $user_name)->subject('testing reporting'); - // }); - // } + }