@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
@if ($errors->has('files')) {{ $errors->first('files') }} @endif
@if( isset($article)) @component('settings::components.attachments-viewer',['delete'=>true]) @slot('attachments', $article->attachments) @slot('canAdd', true) @slot('view', 'timeline') @slot('attachableType', get_class($article)) @slot('attachableId', $article->id) @endcomponent @endif