Пример #1
0
 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;
 }
Пример #2
0
 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';
 }
Пример #3
0
 public function index()
 {
     MailTemplate::syncAll();
     $this->asExtension('ListController')->index();
     $this->bodyClass = 'compact-container';
 }
Пример #4
0
 public function index()
 {
     MailTemplate::syncAll();
     $this->asExtension('ListController')->index();
 }