@php
$img_path='';
if( isset($article))
$img_path=$article->image_path;
@endphp
{!! Form::label('categories', __("categories"), ['class' => 'awesome']) !!}
{!! Form::select('category_id[]', $categories,$cats, array('class' => 'form-control','multiple')) !!}
@if ($errors->has('category_id.0'))
{{ $errors->first('category_id.0') }}
@endif
@foreach( getTranslationField($entity?? null, 'title') as $field )
{!! Form::customInput('text', $field->name,$field->value) !!}
@endforeach
{!! Form::customInputImage( $img_path,'image')!!}
@foreach( getTranslationField($entity?? null, 'content') as $field )
{!! Form::editor( $field->name,$field->value) !!}
@endforeach