public function getEmailTemplateOptions() { MailTemplate::syncAll(); $templates = MailTemplate::all(); $options[] = 'No Template Defined'; foreach ($templates as $key => $template) { $options[$template->code] = '<strong>' . $template->code . '</strong> - ' . $template->description; } return $options; }
public function index() { /* @todo Remove line if year >= 2015 */ if (!\System\Models\MailLayout::whereCode('default')->count()) { \Eloquent::unguard(); with(new \System\Database\Seeds\SeedSetupMailLayouts())->run(); } MailTemplate::syncAll(); $this->asExtension('ListController')->index(); $this->bodyClass = 'compact-container'; }
public function index() { MailTemplate::syncAll(); $this->asExtension('ListController')->index(); $this->bodyClass = 'compact-container'; }
public function index() { MailTemplate::syncAll(); $this->asExtension('ListController')->index(); }