@extends('header') @section('head') @parent @include('money_script') @stop @section('content') @parent @include('accounts.nav', ['selected' => ACCOUNT_TEMPLATES_AND_REMINDERS, 'advanced' => true]) {!! Former::vertical_open()->addClass('warn-on-exit') !!} @foreach (App\Models\AccountEmailSettings::$templates as $type) @foreach (['subject', 'template'] as $field) {{ Former::populateField("email_{$field}_{$type}", $templates[$type][$field]) }} @endforeach @endforeach @foreach ([TEMPLATE_REMINDER1, TEMPLATE_REMINDER2, TEMPLATE_REMINDER3] as $type) @foreach (['enable', 'num_days', 'direction', 'field'] as $field) {{ Former::populateField("{$field}_{$type}", $account->{"{$field}_{$type}"}) }} @endforeach @endforeach

{!! trans('texts.email_templates') !!}

@include('accounts.template', ['field' => 'invoice', 'active' => true]) @include('accounts.template', ['field' => 'quote']) @include('accounts.template', ['field' => 'proposal']) @include('accounts.template', ['field' => 'payment'])

 

{!! trans('texts.reminder_emails') !!}

@include('accounts.template', ['field' => 'reminder1', 'number' => 1, 'isReminder' => true, 'active' => true]) @include('accounts.template', ['field' => 'reminder2', 'number' => 2, 'isReminder' => true]) @include('accounts.template', ['field' => 'reminder3', 'number' => 3, 'isReminder' => true]) @include('accounts.template', ['field' => 'reminder4', 'number' => 4, 'isReminder' => true])
@if (Auth::user()->hasFeature(FEATURE_EMAIL_TEMPLATES_REMINDERS))
{!! Button::success(trans('texts.save'))->submit()->large()->appendIcon(Icon::create('floppy-disk')) !!}
@else @endif {!! Former::close() !!} @include('partials.email_templates') @stop