@extends('layouts.app') @php $users = get_users(['user_role'=>2]) @endphp @php use App\Http\Controllers\Admin\TemplateController; $obj = new TemplateController(); $templates = Config('templates.templates'); $templates = isset( $templates ) ? $templates : []; @endphp @section('content')

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']) }}
@php $key = isset($data->key)?$data->key:''; @endphp {{ Form::hidden('type', null, ['class' => '', 'id' => '']) }}
Type is required
{{ Form::text('title', null, ['class' => 'form-control', 'id' => 'title']) }}
Title is required
{{ Form::text('notification_type', null, ['class' => 'form-control', 'id' => 'notification_type']) }}
Notification type is required
@php $status = isset($data->key)?$data->status:1; @endphp Status is required
{{ Form::text('subject', null, ['class' => 'form-control', 'id' => 'subject']) }}
{{ 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
Cancel
{{ Form::close() }}
@endsection