{{ $pageTitle ?? __('messages.list') }}
{{ __('messages.back') }}
{{ Form::model($data, ['route' => ['notification-templates.update', $data->id], 'method' => 'patch', 'button-loader' => 'true']) }} {{ Form::hidden('id',null) }} {{ Form::hidden('type', $data->type ?? null) }} {{ Form::hidden('defaultNotificationTemplateMap[template_id]', $data->id ?? null) }}

@php $toValues = json_decode($data->to, true) ?? []; @endphp {{ Form::label('user_type', __('messages.user_type') . ': *', ['class' => 'form-control-label'], false) }} {{ Form::select('defaultNotificationTemplateMap[user_type]', $toValues, null, ['id' => 'userTypeSelect', 'class' => 'form-control select2js', 'required']) }}
{{ Form::label('status',trans('messages.status') .':',['class'=>'form-control-label'],false) }} {{ Form::select('status',['1' => __('messages.active') , '0' => __('messages.inactive') ],old('status'),[ 'id' => 'role' ,'class' =>'form-control select2js','required']) }}

@if(isset($buttonTypes)) @include('notificationtemplates.perameters-buttons',['buttonTypes' => $buttonTypes]) @endif

{{ __('messages.notification_template') }}

{{ Form::hidden("defaultNotificationTemplateMap[language]",'en') }}
{{ Form::textarea("defaultNotificationTemplateMap[template_detail]",null,['class' => 'form-control textarea tinymce-template','id' => "notification_mytextarea"]) }}

{{ __('messages.mail_template') }}

{{ 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::close() }}
@section('bottom_script') @endsection