@section('title') {{ __($module_action) }} {{ __($module_title) }} @endsection @section('content')
{{ $pageTitle ?? __('messages.edit') }}
{{ __('messages.back') }}
{{ Form::model($data, ['route' => ['backend.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]', [], null, ['id' => 'userTypeSelect', 'class' => 'form-control select2js', 'required']) }}

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

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

{{ Form::text('defaultNotificationTemplateMap[notification_subject]', null, ['class' => 'form-control']) }}
{{ Form::hidden('defaultNotificationTemplateMap[language]', 'en') }} {{ Form::textarea('defaultNotificationTemplateMap[notification_template_detail]', null, ['class' => 'form-control textarea tinymce-template', 'id' => 'mytextarea_mail']) }}

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

{{ Form::text('defaultNotificationTemplateMap[subject]', null, ['class' => 'form-control']) }} {{ Form::hidden('defaultNotificationTemplateMap[status]', 1, ['class' => 'form-control']) }}
{{ Form::hidden('defaultNotificationTemplateMap[language]', 'en') }} {{ Form::textarea('defaultNotificationTemplateMap[template_detail]', null, ['class' => 'form-control textarea tinymce-template', 'id' => 'mytextarea']) }}
@endsection @push('after-scripts') @endpush