@extends('Backend::layout') @section('head') @stop @section('content') {{ HTML::widgetBox(['name' => $data ? trans('GlobalTranslations::common.edit') . (isset($templateName) ? ' (' . $templateName . ')' : null) : trans('GlobalTranslations::common.add') . (isset($templateName) ? ' (' . $templateName . ')' : null), 'icon' => 'icon-user'], [ [ 'name' => trans('MailingEvents::common.show_available_variables'), 'url' => '#', 'attributes' => [ 'id' => 'show-available-variables-button', ], 'icon' => 'icon-question-sign', ] ]) }}
@if(isset($availableVariables)) @foreach($availableVariables as $variable => $value) @if($value['required'] == 0) #{{{ $variable }}}# @else #{{{ $variable }}}# * @endif @endforeach

* - {{ trans("MailingEvents::common.variables_that_are_required_in_content") }} @else {{ trans('MailingEvents::common.no_variables_available') }} @endif
{{ Former::populate($data) }} {{ Former::open()->id('template-form') }} {{ Former::text('be_emte_name')->star() }} {{ Former::text('be_emte_subject') }} {{ Former::textarea('be_emte_content')->class('tinymce')->star() }} {{ Former::select('be_emte_emte_id')->addOption('-', '')->fromQuery($emailTemplates, 'be_emte_name', 'be_emte_id') }} {{ Former::textarea('be_emte_footer_preview') }} @if(isset($eventName))
{{ trans("GlobalTranslations::common.loading_please_wait") }}
@endif {{ Former::actions( Former::btn_primary_submit(trans('GlobalTranslations::common.save')), Former::default_reset(trans('GlobalTranslations::common.reset_changes'))->onclick('location.reload();')) }} {{ Former::close() }} {{ HTML::widgetBox(false) }} @stop