| @@ 446-460 (lines=15) @@ | ||
| 443 | * |
|
| 444 | * @return type Response |
|
| 445 | */ |
|
| 446 | public function getSchedular(Email $email, Template $template, Emails $email1) |
|
| 447 | { |
|
| 448 | // try { |
|
| 449 | /* fetch the values of email from Email table */ |
|
| 450 | $emails = $email->whereId('1')->first(); |
|
| 451 | /* Fetch the values from Template table */ |
|
| 452 | $templates = $template->get(); |
|
| 453 | /* Fetch the values from Emails table */ |
|
| 454 | $emails1 = $email1->get(); |
|
| 455 | ||
| 456 | return view('themes.default1.admin.helpdesk.settings.crone', compact('emails', 'templates', 'emails1')); |
|
| 457 | // } catch { |
|
| 458 | ||
| 459 | // } |
|
| 460 | } |
|
| 461 | ||
| 462 | /** |
|
| 463 | * Update the specified resource in storage for cron job. |
|
| @@ 227-237 (lines=11) @@ | ||
| 224 | return \Redirect::back()->with('success', 'You have Successfully Activated this Set'); |
|
| 225 | } |
|
| 226 | ||
| 227 | public function edit($id, Template $template, Languages $language) |
|
| 228 | { |
|
| 229 | try { |
|
| 230 | $templates = $template->whereId($id)->first(); |
|
| 231 | $languages = $language->get(); |
|
| 232 | ||
| 233 | return view('themes.default1.admin.helpdesk.emails.template.edit', compact('templates', 'languages')); |
|
| 234 | } catch (Exception $e) { |
|
| 235 | return view('404'); |
|
| 236 | } |
|
| 237 | } |
|
| 238 | ||
| 239 | /** |
|
| 240 | * Update the specified resource in storage. |
|