@section('css') @endsection @extends('powerpanel.layouts.app') @section('title') {{Config::get('Constant.SITE_NAME')}} - Admin Panel @endsection @php $settings = json_decode(Config::get("Constant.MODULE.SETTINGS")); @endphp @section('content')
@if(Session::has('message')) @endif @if(Session::has('error')) @endif
{!! Form::open(['method' => 'post','id'=>'frmTemplateManagement']) !!}
@if(isset($templateManagement))

{{ $breadcrumb['inner_title']}}

@endif
@php if(isset($templateManagement_highLight->varTitle) && ($templateManagement_highLight->varTitle != $templateManagement->varTitle)){ $Class_title = " highlitetext"; }else{ $Class_title = ""; } @endphp {!! Form::text('template_name', isset($templateManagement->varTitle)?$templateManagement->varTitle:old('template_name'), array('maxlength' => 200,'id'=>'template_name','class' => 'form-control hasAlias seoField maxlength-handler titlespellingcheck','autocomplete'=>'off')) !!} {{ $errors->first('template_name') }}
@php if(isset($templateManagement_highLight->varSubject) && ($templateManagement_highLight->varSubject != $templateManagement->varSubject)){ $Class_title = " highlitetext"; }else{ $Class_title = ""; } @endphp {!! Form::text('template_subject', isset($templateManagement->varSubject)?$templateManagement->varSubject:old('template_subject'), array('maxlength' => 200,'id'=>'template_subject','class' => 'form-control hasAlias seoField maxlength-handler titlespellingcheck','autocomplete'=>'off')) !!} {{ $errors->first('template_subject') }}
{!! Form::textarea('description', isset($templateManagement->txtDescription)?$templateManagement->txtDescription:old('description'), array('placeholder' => trans('template-management::template.common.description'),'class' => 'form-control','id'=>'txtDescription')) !!} {{ $errors->first('description') }}

{{ trans('template-management::template.common.displayinformation') }}

@if(isset($templateManagement_highLight->chrPublish) && ($templateManagement_highLight->chrPublish != $templateManagement->chrPublish)) @php $Class_chrPublish = " highlitetext"; @endphp @else @php $Class_chrPublish = ""; @endphp @endif
@if(isset($templateManagement) && $templateManagement->chrAddStar == 'Y')

NOTE: This record is in Approval Request , so it can't be published/unpublished.

@elseif(isset($templateManagement) && $templateManagement->chrDraft == 'D' && $templateManagement->chrAddStar != 'Y') @include('powerpanel.partials.displayInfo',['Class_chrPublish'=>$Class_chrPublish,'display' => (isset($templateManagement->chrDraft)?$templateManagement->chrDraft:'D')]) @else @include('powerpanel.partials.displayInfo',['Class_chrPublish'=>$Class_chrPublish,'display' => (isset($templateManagement->chrPublish)?$templateManagement->chrPublish:'Y')]) @endif
@if(isset($templateManagement->fkMainRecord) && $templateManagement->fkMainRecord != 0) @else @if($userIsAdmin) @else @if((isset($chrNeedAddPermission) && $chrNeedAddPermission == 'N') && (isset($charNeedApproval) && $charNeedApproval == 'N')) @else @endif @endif @endif
{{ trans('template-management::template.common.cancel') }}
{!! Form::close() !!}
@endsection @section('scripts') @include('powerpanel.partials.ckeditor',['config'=>'docsConfig']) @if (Config::get('Constant.DEFAULT_VISUAL') == 'Y') @php Powerpanel\VisualComposer\Controllers\VisualComposerController::get_builder_css_js()@endphp @endif @endsection