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