{!! Form::hidden("admin_id",App\Libs\Adminauth::user()->id,['class'=>'form-control']) !!}
@php $input='title'; @endphp
{!! Form::rawLabel($input,trans('admin.Title')."*",['class' => 'col-md-2 control-label']) !!}
{!! Form::text($input,null,['class'=>'form-control']) !!} @foreach($errors->get($input) as $message) {{ $message }} @endforeach
@php $input='post_date'; @endphp
{!! Form::rawLabel($input,trans('admin.Date')."*",['class' => ' col-md-2 control-label']) !!}
{!! Form::text($input,null,['class'=>'datePicker form-control']) !!} @foreach($errors->get($input) as $message) {{ $message }} @endforeach
@php $input='summary'; @endphp
{!! Form::rawLabel($input,trans('admin.Summary'),['class' => 'col-md-2 control-label']) !!}
{!! Form::textarea($input,null,['class'=>'form-control']) !!} @foreach($errors->get($input) as $message) {{ $message }} @endforeach
@php $input='content'; @endphp
{!! Form::rawLabel($input,trans('admin.Content'),['class' => 'col-md-2 control-label']) !!}
{!! Form::textarea($input,html_entity_decode($row->$input),['class'=>'form-control froala']) !!} @foreach($errors->get($input) as $message) {{ $message }} @endforeach
@php $input='main_image'; @endphp
{!! Form::rawLabel($input,trans('admin.Main image')."*",['class' => 'col-md-2 control-label']) !!} {{trans("front.jpg,png,jpeg")}}, {{trans("front.Allowed max file size 4MB")}} {{trans("admin.Recommended resolution")}} 600x480
{!! Form::file($input,['class'=>'form-control fileinput','accept'=>'image/*','data-show-preview'=>'false','data-allowed-file-extensions'=>'["jpg", "png","jpeg"]']) !!} {!!viewValue($row->$input,'image')!!} @foreach($errors->get($input) as $message) {{ $message }} @endforeach
@if(ACL::can('publish-'.$module)) @php $input='published'; @endphp
{!! Form::rawLabel($input,trans('admin.Published'),['class' => 'col-md-2 control-label']) !!}
@endif
@php $input='images'; @endphp
{!! Form::label($input,trans('admin.Other images'),['class' => 'col-md-2 control-label']) !!} {{trans("front.jpg,png,jpeg")}}, {{trans("front.Allowed max file size 4MB")}} {{trans("admin.Recommended resolution")}} 600x480
{!! Form::file('images[]',['class'=>'form-control fileinput','multiple'=>true,'accept'=>'image/*','data-show-preview'=>'false','data-allowed-file-extensions'=>'["jpg", "png","jpeg"]']) !!}
@if($row->other_images)
@foreach($row->other_images as $key=>$value) {!!viewValue($value,'more_images',['url'=>'admin/news/delete-image/'.$value])!!} @endforeach
@endif
@php $input='meta_description'; @endphp
{!! Form::rawLabel($input,trans('admin.Meta description'),['class' => 'col-md-2 control-label']) !!}
{!! Form::textarea($input,null,['class'=>'form-control']) !!} @foreach($errors->get($input) as $message) {{ $message }} @endforeach
@php $input='meta_keywords'; @endphp
{!! Form::rawLabel($input,trans('admin.Meta keywords'),['class' => 'col-md-2 control-label']) !!}
{!! Form::text($input,null,['class'=>'form-control tags']) !!} @foreach($errors->get($input) as $message) {{ $message }} @endforeach
@section('javascripts') @stop