@if($customFields)
{!! trans('lang.main_fields') !!}
@endif
{!! Form::label('name', trans("lang.category_name"), ['class' => 'col-md-3 control-label text-md-right mx-1']) !!}
{!! Form::text('name', null, ['class' => 'form-control','placeholder'=> trans("lang.category_name_placeholder")]) !!}
{{ trans("lang.category_name_help") }}
{!! Form::label('color', trans("lang.category_color"), ['class' => 'col-md-3 control-label text-md-right mx-1']) !!}
{!! Form::text('color', null, ['class' => 'form-control','placeholder'=> trans("lang.category_color_placeholder")]) !!}
{{ trans("lang.category_color_help") }}
{!! Form::label('description', trans("lang.category_description"), ['class' => 'col-md-3 control-label text-md-right mx-1']) !!}
{!! Form::textarea('description', null, ['class' => 'form-control','placeholder'=> trans("lang.category_description_placeholder") ]) !!}
{{ trans("lang.category_description_help") }}
{!! Form::label('image', trans("lang.category_image"), ['class' => 'col-md-3 control-label text-md-right mx-1']) !!}
{{ trans('lang.media_select')}}
{{ trans("lang.category_image_help") }}
@prepend('scripts') @endprepend
{!! Form::label('order', trans("lang.category_order"), ['class' => 'col-md-3 control-label text-md-right mx-1']) !!}
{!! Form::number('order', null, ['class' => 'form-control','step'=>'1','min'=>'0', 'placeholder'=> trans("lang.category_order_placeholder")]) !!}
{{ trans("lang.category_order_help") }}
{!! Form::label('parent_id', trans("lang.category_parent_id"),['class' => 'col-md-3 control-label text-md-right mx-1']) !!}
{!! Form::select('parent_id', $parentCategory, null, ['data-empty'=>trans("lang.category_parent_id_placeholder"), 'class' => 'select2 not-required form-control']) !!}
{{ trans("lang.category_parent_id_help") }}
@if($customFields)
{!! trans('lang.custom_field_plural') !!}
{!! $customFields !!}
@endif
{!! Form::label('featured', trans("lang.category_featured_help"),['class' => 'control-label my-0 mx-3'],false) !!} {!! Form::hidden('featured', 0, ['id'=>"hidden_featured"]) !!} {!! Form::checkbox('featured', 1, null) !!}
{{trans('lang.cancel')}}