app/Http/Controllers/Admin/helpdesk/EmailsController.php 1 location
|
@@ 50-60 (lines=11) @@
|
| 47 |
|
* |
| 48 |
|
* @return type view |
| 49 |
|
*/ |
| 50 |
|
public function index(Emails $email) |
| 51 |
|
{ |
| 52 |
|
try { |
| 53 |
|
// fetch all the emails from emails table |
| 54 |
|
$emails = $email->get(); |
| 55 |
|
|
| 56 |
|
return view('themes.default1.admin.helpdesk.emails.emails.index', compact('emails')); |
| 57 |
|
} catch (Exception $e) { |
| 58 |
|
return redirect()->back()->with('fails', $e->getMessage()); |
| 59 |
|
} |
| 60 |
|
} |
| 61 |
|
|
| 62 |
|
/** |
| 63 |
|
* Show the form for creating a new resource. |
app/Http/Controllers/Admin/helpdesk/TemplateController.php 1 location
|
@@ 300-309 (lines=10) @@
|
| 297 |
|
* |
| 298 |
|
* @return type Response |
| 299 |
|
*/ |
| 300 |
|
public function formDiagno(Emails $email) |
| 301 |
|
{ |
| 302 |
|
try { |
| 303 |
|
$emails = $email->get(); |
| 304 |
|
|
| 305 |
|
return view('themes.default1.admin.helpdesk.emails.template.formDiagno', compact('emails')); |
| 306 |
|
} catch (Exception $e) { |
| 307 |
|
return redirect()->back()->with('fails', $e->getMessage()); |
| 308 |
|
} |
| 309 |
|
} |
| 310 |
|
|
| 311 |
|
/** |
| 312 |
|
* function to send emails. |