Email Templates
@if($message = Session::get('success'))
Success! {{ $message }}
@elseif($message = Session::get('error'))
Error!{{ $message }}
@endif
{!! Form::open(["route" => ["email-template.update", $emailtemplates->id], "method" => "POST", "id" => "template_form_add"]) !!}
{!! Form::close() !!}
{!! Form::select('email_type',$admin_notification_type,$emailtemplates->admin_notifications_type_id,['class'=>'form-control js-select2 w-100-p','multiple'=>false,'disabled'=>true,'id'=>'js-corporate-pro-role','data-placeholder'=>'Select']) !!}
@if ($errors->has('email_type'))
{{--{!! $errors->first('email_type') !!}--}}
@endif
{!! Form::text('email_subject',$emailtemplates->email_subject,['class'=>'form-control','placeholder'=>'Enter Title','maxlength'=>'290','id'=>'media_title','onkeypress'=>'return allowOnlyLettersAndSpaceForTitle(event,this);'])!!}
@if ($errors->has('email_subject'))
{{--{!! $errors->first('email_subject') !!}--}}
@endif
{!! Form::text('to_email',$emailtemplates->to_email_address,['class'=>'form-control','placeholder'=>'Enter To Mail','maxlength'=>'290','id'=>'to_email'])!!}
@if ($errors->has('to_email'))
{{--{!! $errors->first('to_email') !!}--}}
@endif
{!! Form::text('cc_email',$emailtemplates->cc_email_address,['class'=>'form-control','placeholder'=>'Enter CC Mail','maxlength'=>'290','id'=>'cc_email'])!!}
@if ($errors->has('cc_email'))
{{--{!! $errors->first('cc_email') !!}--}}
@endif
{!!Form::textarea('email_content',$emailtemplates->email_content,['class'=>'form-control summernote','placeholder'=>'Content','id'=>'content'])!!}
@if($errors->has('email_content'))
@endif
@foreach($email_content_variables as $var)
{{$var}}
@endforeach