Add & Edit {{ucfirst($type)}} Template
@php echo get_session_message() @endphp
@php echo get_session_errors($errors) @endphp
{{ Form::model($data ?? '', ['route'=>['templates.store'],'files' => 'true', 'class' => 'needs-validation', 'id' => 'submit-form', 'autocomplete' => 'off']) }}
Template For
@php $key = isset($data->key)?$data->key:''; @endphp
Select
@foreach( $templates as $index => $values )
@php $tsel = $key == $values->key ? 'selected' : '' @endphp
{{$values->title}} ({{$values->type}})
@endforeach
{{ Form::hidden('type', null, ['class' => '', 'id' => '']) }}
Type is required
Title
{{ Form::text('title', null, ['class' => 'form-control', 'id' => 'title']) }}
Title is required
Notification Type
{{ Form::text('notification_type', null, ['class' => 'form-control', 'id' => 'notification_type']) }}
Notification type is required
Subject
{{ Form::text('subject', null, ['class' => 'form-control', 'id' => 'subject']) }}
Content
{{ Form::textarea('content', null, ['class' => 'form-control editor', 'id' => 'content']) }}
{{ Form::hidden('dynamic_slug', null, ['class' => 'dynamic_slug', 'id' => 'dynamic_slug']) }}
Please use these variables {!! $data->dynamic_slug ?? '' !!} for replacing dynamic value between in
@php echo "{{ }}" @endphp
e.g : @php echo "{{ $variable }}" @endphp
Content is required
{{ Form::close() }}