menu_item) id="grandchild_handle_{{$menu_item->menu_item}}" data-pk="{{$menu_item->menu_item}}" @else class="new-grandchild-div" id="child_{{$menu_section->menu_section}}_grandchild_handle_" @endif >
@if($menu_item->menu_item) {{ Form::label_styled("", "label-top-pad", \App\Helpers\FormComponentHelper::SIZE_LARGE) }} @else {{ Form::label_styled("ADD A MENU ITEM", "label-top-pad", \App\Helpers\FormComponentHelper::SIZE_EXLARGE) }} @endif
{{ Form::hidden('menu_section', $menu_section->menu_section, [ 'id' => 'menu_section'] ) }} {{ Form::hidden('prix_fixe', $menu->prix_fixe, [ 'id' => 'prix_fixe'] ) }} {{ Form::hidden('section_price', $menu_section->price, [ 'id' => 'section_price'] ) }} {{ Form::hidden('sort', $menu_item->sort ) }}
{{ Form::label_inline("Item Name", "name") }} {{ Form::text_ex('name', $menu_item->name, 6) }}
{{ Form::label_inline("Description", "description") }} {{ Form::textarea_ex('description', $menu_item->description, 6) }}
@if(\App\Models\Menu_Item::can_see_price($menu, $menu_section))
{{ Form::label_inline("Price Method", "price_type") }} {{ Form::select_ex('price_type', $menu_item->price_type, \App\Models\Menu_Item::$price_type_map, 6, null, "on_change_price_type(this.selectedIndex, '".$menu_item->menu_item."')") }}
{{ Form::label_inline("Price", "price", 3) }} {{ Form::dollar_ex('price', $menu_item->price, null, 3, null) }}
{{ Form::label_styled("Price", null, \App\Helpers\FormComponentHelper::SIZE_SMALL, 3, 3) }} {{ Form::label_styled("", "per-col", \App\Helpers\FormComponentHelper::SIZE_SMALL, 1) }} {{ Form::label_styled("Serving Size", 'no-padding-col', \App\Helpers\FormComponentHelper::SIZE_SMALL, 2) }}
@for($x = 1; $x <= 6; $x++) @include("business.menu._portion_price", [ 'price_name' =>'portion_price_'.$x, 'size_name' => 'portion_size_'.$x, 'price' => $menu_item->{'portion_price_'.$x}, 'size' => $menu_item->{'portion_size_'.$x} ]) @endfor
@endif
{{ Form::label_inline("Available From", "start_date") }} {{ Form::date_ex('start_date', $menu_item->start_date, 3, 'menu_item_start_date_'.$menu_item->menu_item) }}
{{ Form::label_inline("Available To", "end_date") }} {{ Form::date_ex('end_date', $menu_item->end_date, 3, 'menu_item_end_date_'.$menu_item->menu_item) }}
{{ Form::checkbox_formatted("hide", $menu_item->hide, "Hide from list") }}
@if($menu_item->menu_item) {{ Form::button_safe_save("Save", "grandchild_list_manager.post_update( '". action('MenuItemController@update', compact('menu_item')) ."', '". action('MenuItemController@menu_item', compact('menu_item')) ."', grandchild_selector.calc_handle_id('".$menu_item->menu_item."') );") }} {{ Form::button_ex("Cancel", "grandchild_list_manager.get_one( '". action('MenuItemController@menu_item', compact('menu_item')) ."', grandchild_selector.calc_handle_id('".$menu_item->menu_item."') );") }} @if ($menu_item->can_delete()) {{ Form::button_ex("Delete Item", "grandchild_list_manager.delete_one( '". action('MenuItemController@destroy', compact('menu_item')) ."', grandchild_selector.calc_handle_id('".$menu_item->menu_item."') );") }} @endif @else {{ Form::button_safe_save("Save", "grandchild_list_manager.post_insert( '". action('MenuItemController@store', compact( 'menu_section')) ."', grandchild_selector.calc_new_handle_id('".$menu_section->menu_section."'), '". action('MenuItemController@menu_item', ['menu_item'=>'XXX']) ."', grandchild_selector.calc_handle_id('XXX'));") }} {{ Form::button_ex("Cancel", "grandchild_list_manager.cancel_one( grandchild_selector.calc_new_handle_id('".$menu_section->menu_section."'));") }} @endif