@if(@$emailtemplate)
{!! Form::model($emailtemplate, ['url'=>route('emailtemplates.update', @$emailtemplate->id), 'id'=>'form_emailtemplate', 'method'=>'POST', 'role'=>'form']) !!}
@else
{!! Form::open(['url'=>route('emailtemplates.store'), 'id'=>'form_emailtemplate', 'method'=>'POST', 'role'=>'form']) !!}
@endif
{{Form::label('type', 'Type')}}*
{{Form::select('type', config('constants.email_template_types'),@$emailtemplate->type, [
'class' => "form-control",
'id' => "type",
'data-live-search'=>'true',
])}}
@if($errors->has('type'))
{{$errors->first('type')}}
@endif
{{Form::label('subject', 'Subject')}}*
{{Form::text('subject',@$emailtemplate->subject, [
'class' => "form-control",
'id' => "subject",
])}}
@if($errors->has('subject'))
{{$errors->first('subject')}}
@endif
{{Form::label('status', 'Status')}}
{!!Form::select('status', ['1'=>'Active','0'=>'InActive'], @$emailtemplate->status, ['class' => 'form-control'])!!}
{!! Form::label('template', 'Template:', ['class' => 'control-label']) !!}
*
{{ Form::textarea('template', @$emailtemplate->template, ['class' => 'form-control textarea', "style"=>"width: 100%; height: 300px; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; padding: 10px;",'placeholder' => 'Description']) }}
{{ $errors->first('template', ':message') }}
{{Form::submit('Submit', [ 'class' => "btn btn-primary btn-flat" ])}}