{!! Form::open(array('action' => isset($menu_item->id) ? 'Admin\MenuItemController@update' :
'Admin\MenuItemController@store', 'method' =>isset($menu_item->id) ? 'PUT' : 'POST')) !!}
{{ csrf_field() }}
{!! Form::text('title', isset($menu_item->title) ? $menu_item->title : old('title'), ['id' =>
'add_menu_item_title', 'class' => 'form-control input-field mb-2']) !!}
{!! Form::text('url', isset($menu_item->url) ? $menu_item->url : old('url'), ['id' => 'add_menu_item_url',
'class' => 'form-control input-field mb-2']) !!}
{!! Form::select('target', ['_self'=> trans('v4.same_tab'), '_blank'=>trans('v4.new_tab')],
isset($menu_item->target) ? $menu_item->target : old('target') , ['class' => 'form-control input-field
mb-2']) !!}
{!! Form::text('custom_class', isset($menu_item->custom_class) ? $menu_item->custom_class :
old('custom_class'), ['id' => 'add_menu_item_custom_class', 'class' => 'form-control input-field mb-2']) !!}
@if(get_multilanguage_enabled())
{!! Form::select('language', get_buzzy_language_list_options(), ! empty($menu_item->language) ?
$menu_item->language : get_buzzy_locale() , [
"id"=>"changeLanguage",
'id' => 'add_menu_item_language', 'class' => 'form-control input-field mb-2']) !!}
@endif