{{ Form::hidden('id',null) }} {{ Form::hidden('type', $data->type ?? null) }} {{ Form::hidden('defaultNotificationTemplateMap[template_id]', $data->id ?? null) }}

@if(isset($buttonTypes)) @include('mailtemplates.perameters-buttons',['buttonTypes' => $buttonTypes]) @endif
{{ Form::checkbox('status', $data->status, null, ['class' => 'custom-control-input' , 'id' => 'status' ]) }}



@php $toValues = json_decode($data->to, true) ?? []; @endphp
{{ Form::label('user_type', __('messages.user_type') . ' *', ['class' => 'form-control-label'], false) }} {{ Form::select('defaultMailTemplateMap[user_type]', array_combine($toValues, $toValues), $defaultMailTemplateMap['user_type'] ?? null, ['class' => 'form-control select2js', 'required']) }}
{{ Form::text("defaultMailTemplateMap[subject]",null,['class' => 'form-control']) }} {{ Form::hidden("defaultMailTemplateMap[status]",1,['class' => 'form-control']) }}
{{ Form::hidden("defaultMailTemplateMap[language]",'en') }}
{{ Form::textarea("defaultMailTemplateMap[template_detail]",null,['class' => 'form-control textarea tinymce-template','id' => "mytextarea"]) }}
{{ Form::text("defaultMailTemplateMap[notification_message]",null,['class' => 'form-control notification_message','id' => "en-notification_message"]) }}
{{ Form::text("defaultMailTemplateMap[notification_link]",null,['class' => 'form-control notification_link','id' => "en-notification_link"]) }}