@php /** @var string $errors */ $error_class = $errors->has('parent_id') ? 'parsley-error ' : ''; @endphp
{{ Form::select('parent_id', $menus, null, ['class' => $error_class . 'form-control select2', 'id' => 'parent_id', 'placeholder' => trans('menu.label_select_parent_id')]) }} @if ($errors->has('parent_id'))

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

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

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

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

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

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

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

@endif
@php /** @var string $errors */ $error_class = $errors->has('route_name') ? 'parsley-error ' : ''; @endphp
{{ Form::text('route_name', null, ['class' => $error_class . 'form-control', 'id' => 'route_name', 'required' => false]) }} @if ($errors->has('route_name'))

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

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

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

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

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

@endif
{{--
@php /** @var string $errors */ $error_class = $errors->has('role_id') ? 'parsley-error ' : ''; @endphp
{{ Form::select('role_id', $roles, null, ['class' => $error_class.'form-control select2', 'id' => 'role_id', 'placeholder' => trans('menu.label_select_one')]) }} @if ($errors->has('role_id'))

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

@endif
--}}
@php /** @var string $errors */ $error_class = $errors->has('menu_type') ? 'parsley-error ' : ''; @endphp *
{{ Form::radio('menu_type', 'Parent', null, ['class' => 'form-check-input', 'id' => 'menu_type_parent', 'required' => 1, 'checked' => @$menu->menu_type == 'Parent' ? true : ((!isset($menu->menu_type)) ? true : false )]) }}
{{ Form::radio('menu_type', 'Module', null, ['class' => 'form-check-input', 'id' => 'menu_type_module', 'required' => 1, 'checked' => @$menu->menu_type == 'Module' ? true : false]) }}
{{ Form::radio('menu_type', 'Single', null, ['class' => 'form-check-input', 'id' => 'menu_type_single', 'required' => 1, 'checked' => @$menu->menu_type == 'Single' ? true : false]) }}
@if ($errors->has('menu_type'))

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

@endif
@php /** @var string $errors */ $error_class = $errors->has('create_permissions') ? 'parsley-error ' : ''; @endphp *
{{ Form::radio('create_permissions', 'Yes', null, ['class' => 'form-check-input', 'id' => 'create_permissions_yes', 'required' => 1, 'checked' => @$menu->create_permissions == 'Yes' ? true : false]) }}
{{ Form::radio('create_permissions', 'No', null, ['class' => 'form-check-input', 'id' => 'create_permissions_no', 'required' => 1, 'checked' => @$menu->create_permissions == 'Yes' ? false : true]) }}
@if ($errors->has('create_permissions'))

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

@endif
@php /** @var string $errors */ $error_class = $errors->has('is_hidden') ? 'parsley-error ' : ''; @endphp *
{{ Form::radio('is_hidden', 'Yes', null, ['class' => 'form-check-input', 'id' => 'is_hidden_yes', 'required' => 1]) }}
{{ Form::radio('is_hidden', 'No', null, ['class' => 'form-check-input', 'id' => 'is_hidden_no', 'required' => 1, 'checked' => @$menu->is_hidden == 'Yes' ? false : true]) }}
@if ($errors->has('is_hidden'))

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

@endif
@php /** @var string $errors */ $error_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





@lang('menu.menu_actions')
@foreach ($actions as $action)
@if ($errors->has($action->slug))

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

@endif
@endforeach @if (!@$menu)
@if ($errors->has('deleted_list'))

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

@endif
@if ($errors->has('restore'))

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

@endif
@if ($errors->has('permanent_delete'))

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

@endif
@endif
@section('script') @endsection