{!! 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('icon', isset($menu_item->icon) ? $menu_item->icon : old('icon'), ['id' => 'add_menu_item_icon', 'class' => 'form-control input-field mb-2']) !!} Find your font code here. Example code:library_books
{!! 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
@if(isset($menu_item->id)) {{ trans('admin.Cancel') }} @endif
{!! Form::close() !!}
{!! Form::open(array('action' => 'Admin\MenuItemController@storeFromCategory', 'method' => 'POST')) !!}
{!! Form::label('parent_cat',trans('v4half.add_menu_for_category')) !!} {{ csrf_field() }}
{!! Form::close() !!}