@extends('backend.template.main') @push('breadcrumb') @include('backend.shared._breadcrumb', [ 'breadcrumb' => $breadcrumb, ]) @endpush @section('content') {!! Form::open(['url' => Config::get('sysconfig.prefix').'/contents/'.$content->id, 'files' => true,'id' => 'my-form','method' => 'PATCH']) !!}

{{ __('menu.content')}}

{!!Form::label('name','Title',['class' => 'col-sm-3 control-label no-padding-right required'])!!}
{!!Form::text('txtname',old('txtname',$content->title),['class' => 'form-control','id'=>'name'])!!} @if ($errors->has('txtname'))

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

@endif
{!!Form::label('slug','Slug',['class' => 'col-sm-3 control-label no-padding-right required'])!!}
{!!Form::text('txtslug',old('txtslug',$content->slug),['class' => 'form-control','id' => 'slug' ])!!}
@if ($errors->has('txtslug'))

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

@endif
{!!Form::label('aliase','Aliase',['class' => 'col-sm-3 control-label no-padding-right'])!!}
{!!Form::text('txtaliase',old('txtaliase',$content->aliase),['class' => 'form-control'])!!}
{!!Form::label('contentcategory','Category',['class' => 'col-sm-3 control-label no-padding-right required'])!!}
{{--{!!Form::select('contentcategory',$contentCategory,old('contentcategory',$content->category_id),['class' => 'form-control'])!!}--}}
{!!Form::label('featuredfile','Featured Image',['class' => 'col-sm-3 control-label no-padding-right'])!!}
{!!Form::file('featuredfile',['id' =>'featuredfile'])!!} @if ($errors->has('featuredfile'))

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

@endif
{!!Form::label('shortdesc','Brief',['class' => 'col-sm-3 control-label no-padding-right'])!!}
{!!Form::textarea('shortdesc',old('shortdesc',$content->short_desc),['rows' => 5,'class' => 'form-control'])!!}
{!!Form::label('','Body',['class' => 'col-sm-3 control-label no-padding-right'])!!}
@foreach($content->getContentEntry as $item) @if($item->type=='text') @include('backend.shared._entryform.addtext', ['entryid' => $item->ordering,'entrytext' => $item->body,'record_id' => $item->id,'entrytitle' => $item->title ] ) @elseif($item->type == 'image') @include('backend.shared._entryform.addimage',['entryid' => $item->ordering,'record_id' => $item->id]) @php $imagarr[$item->ordering] = $item->body @endphp @endif @endforeach @if($content->date_event != '') @include('backend.shared._entryform.addEventTime',['date_event' => $content->date_event,'id' => $content->id]) @endif
{!!Form::hidden('entrycount',$content->getContentEntry->max('ordering'),['id' => 'entrycount'])!!}
{!!Form::label('','Add New Entry',['class' => 'col-sm-3 control-label no-padding-right'])!!}
Description Image Event Time Youtube Facebook Gallery
{!!Form::label('tagskey','Tags Key',['class' => 'col-sm-3 control-label no-padding-right'])!!}
{!!Form::text('txttagskey',old('txttagskey',$content->tags),['class' => 'form-control','id' => 'txttagskey'])!!}
{!!Form::label('status','Publish',['class' => 'col-sm-3 control-label no-padding-right'])!!}

{!!Form::label('metakey','Meta Key',['class' => 'col-sm-3 control-label no-padding-right'])!!}
{!!Form::text('txtmetakey',old('txtmetakey',$content->meta_key),['class' => 'form-control','id' => 'metakeyword'])!!}
{!!Form::label('metadesc','Meta Description',['class' => 'col-sm-3 control-label no-padding-right'])!!}
{!!Form::text('txtmetadesc',old('txtmetadesc',$content->meta_desc),['class' => 'form-control'])!!}
{!!Form::close()!!} @endsection @push('css_plugin') @endpush @push('css') @endpush @push('jslink') @endpush @push('jsscript') @include('backend.shared._tinymce',['textarea' => '.bodydesc']) {!!JsValidator::formRequest('App\Http\Requests\ContentRequest', '#my-form')!!} @endpush