@extends('layouts.app') @section('content')

@lang('templates::global.templates.title')

{!! Form::model($template, ['method' => 'PUT', 'route' => ['admin.templates.update', $template->id],'class'=>'formvalidation']) !!}
@lang('global.app_edit')
{!! Form::label('title', trans('templates::global.templates.fields.title').'*', ['class' => 'control-label form-label']) !!}
{!! Form::text('title', old('title'), ['class' => 'form-control', 'placeholder' => 'Title', 'required' => '']) !!}

@if($errors->has('title'))

{{ $errors->first('title') }}

@endif
{!! Form::label('key', trans('templates::global.templates.fields.key').'*', ['class' => 'control-label form-label']) !!}
{!! Form::text('key', old('key'), ['class' => 'form-control', 'placeholder' => 'Key', 'required' => '']) !!}

@if($errors->has('key'))

{{ $errors->first('key') }}

@endif
{!! Form::label('type', trans('templates::global.templates.fields.type').'*', ['class' => 'control-label']) !!} {!! Form::select('type', $enum_type, old('type'), ['class' => 'form-control select2', 'required' => '']) !!}

@if($errors->has('type'))

{{ $errors->first('type') }}

@endif
{!! Form::label('subject', trans('templates::global.templates.fields.subject').'*', ['class' => 'control-label form-label']) !!}
{!! Form::text('subject', old('subject'), ['class' => 'form-control', 'placeholder' => 'Subject', 'required' => '']) !!}

@if($errors->has('subject'))

{{ $errors->first('subject') }}

@endif
{!! Form::label('from_email', trans('templates::global.templates.fields.from-email'), ['class' => 'control-label form-label']) !!}
{!! Form::text('from_email', old('from_email'), ['class' => 'form-control', 'placeholder' => 'From Email']) !!}

@if($errors->has('from_email'))

{{ $errors->first('from_email') }}

@endif
{!! Form::label('from_name', trans('templates::global.templates.fields.from-name'), ['class' => 'control-label form-label']) !!}
{!! Form::text('from_name', old('from_name'), ['class' => 'form-control', 'placeholder' => 'From Name']) !!}

@if($errors->has('from_name'))

{{ $errors->first('from_name') }}

@endif
{!! Form::label('content', trans('templates::global.templates.fields.content').'*', ['class' => 'control-label']) !!} {!! Form::textarea('content', old('content'), ['class' => 'form-control editor', 'placeholder' => 'Content', 'required' => '']) !!}

@if($errors->has('content'))

{{ $errors->first('content') }}

@endif
{!! Form::submit(trans('global.app_update'), ['class' => 'btn btn-danger wave-effect']) !!} {!! Form::close() !!} @stop @section('javascript') @parent @include('admin.common.standard-ckeditor') @stop