@php $name_err_class = $errors->has('name') ? 'parsley-error ' : ''; @endphp *
{{ Form::text('name', null, ['class' => $name_err_class.'form-control', 'id' => 'name', 'required' => 1]) }} @if ($errors->has('name'))

{{$errors->first('name')}}

@endif
@php $icon_err_class = $errors->has('icon') ? 'parsley-error ' : ''; @endphp *
{{ Form::text('icon',null, ['class' => $icon_err_class.'form-control', 'id' => 'icon', 'placeholder' => 'fa fa-bars','required' => true]) }} @if ($errors->has('icon'))

{{$errors->first('icon')}}

@endif
@php $button_class_err_class = $errors->has('button_class') ? 'parsley-error ' : ''; @endphp
{{ Form::text('button_class',null, ['class' => $button_class_err_class.'form-control', 'id' => 'button_class', 'placeholder' => 'btn btn-primary', 'required' => false]) }} @if ($errors->has('button_class'))

{{$errors->first('button_class')}}

@endif
@php $slug_err_class = $errors->has('slug') ? 'parsley-error ' : ''; @endphp *
{{ Form::text('slug',null, ['class' => $slug_err_class.'form-control', 'id' => 'slug', 'placeholder' => 'add', 'required' => true]) }} @if ($errors->has('slug'))

{{$errors->first('slug')}}

@endif
@php $order_by_err_class = $errors->has('order_by') ? 'parsley-error ' : ''; @endphp *
{{ Form::number('order_by', null, ['class' => $order_by_err_class.'form-control', 'min' => 1, 'id' => 'order_by', 'required' => 1]) }} @if ($errors->has('order_by'))

{{$errors->first('order_by')}}

@endif
@php $status_err_class = $errors->has('status') ? 'parsley-error ' : ''; @endphp *
{{ Form::radio('status', '1',null, ['class' => 'form-check-input', 'id' => 'active', 'required' => 1, 'checked' => 1]) }}
{{ Form::radio('status', '0',null, ['class' => 'form-check-input', 'id' => 'inactive', 'required' => 1]) }}
@if ($errors->has('status'))

{{$errors->first('status')}}

@endif
@section('script') @endsection