{!! Form::label('name', trans('app.form.name') . '*', ['class' => 'with-help']) !!} {!! Form::text('name', null, ['class' => 'form-control', 'placeholder' => trans('app.placeholder.template_name'), 'required']) !!}
{!! Form::label('type', trans('app.form.email_template_type') . '*', ['class' => 'with-help']) !!} {!! Form::select('type', ['HTML' => trans('app.html'), 'Text' => trans('app.text')], null, ['class' => 'form-control select2-normal', 'id' => 'send_email', 'placeholder' => trans('app.placeholder.template_type'), 'required']) !!}
@unless (\Auth::user()->merchantId())
{!! Form::label('template_for', trans('app.form.template_for') . '*', ['class' => 'with-help']) !!} {!! Form::select('template_for', ['Platform' => trans('app.platform'), 'Merchant' => trans('app.merchant')], null, ['class' => 'form-control select2-normal', 'placeholder' => trans('app.placeholder.template_type'), 'required']) !!}
@endunless
{!! Form::label('sender_email', trans('app.form.template_sender_email') . '*', ['class' => 'with-help']) !!} {!! Form::email('sender_email', isset($template->sender_email) ? $template->sender_email : config('shop_settings.default_sender_email_address'), ['class' => 'form-control', 'placeholder' => trans('app.placeholder.valid_email'), 'required']) !!}
{!! Form::label('sender_name', trans('app.form.template_sender_name') . '*', ['class' => 'with-help']) !!} {!! Form::text('sender_name', isset($template->sender_name) ? $template->sender_name : config('shop_settings.default_email_sender_name'), ['class' => 'form-control', 'placeholder' => trans('app.placeholder.template_sender_name'), 'required']) !!}
{!! Form::label('subject', trans('app.form.subject') . '*', ['class' => 'with-help']) !!} {!! Form::text('subject', null, ['class' => 'form-control', 'placeholder' => trans('app.placeholder.template_subject'), 'required']) !!}
{!! Form::label('body', trans('app.form.template_body') . '*', ['class' => 'with-help']) !!} {!! Form::textarea('body', null, ['class' => 'form-control summernote-long', 'placeholder' => trans('app.placeholder.template_body'), 'required']) !!}

{{ trans('app.short_codes') }}

@include('admin.email-template._short_codes')

* {{ trans('app.form.required_fields') }}