menu_section) class="row" id="child_handle_{{$menu_section->menu_section}}" @else class="row new-child-div" id="parent_{{$menu->menu}}_child_handle_" @endif >
{{ Form::hidden('orig_menu', $menu->menu, ['id'=>'orig_menu']) }} {{ Form::hidden('sort', $menu_section->sort ) }}
@if(!$menu_section->menu_section) {{ Form::label_title("ADD A SECTION") }} @endif
{{ Form::label_inline("Section Name", "name") }} {{ Form::text_ex('name', $menu_section->name, 6) }}
{{ Form::label_inline("Menu", "menu") }} {{ Form::select_ex("menu", $menu->menu, $menus, 6) }}
{{ Form::label_inline("Description", "description") }} {{ Form::textarea_ex('description', $menu_section->description, 6) }}
{{ Form::label_inline("Footer", "footer") }} {{ Form::label_grey("Footer text appears at the end of each section, and is optional.", 6) }}
{{ Form::textarea_ex('footer_text', $menu_section->footer_text, 6, 3) }}
@if ($menu_section->show_section_price($menu))
{{ Form::label_inline("Section Price") }} {{ Form::label_grey("If the entire section has one price, enter it here. Otherwise, assign the price to each item later on.", 6) }}
{{ Form::dollar_ex('price', $menu_section->price) }}
@endif
{{ Form::checkbox_formatted('hide_header', $menu_section->hide_header, 'Hide this header? (Will display items)') }}
{{ Form::checkbox_formatted('hide', $menu_section->hide, 'Hide all items in this section') }}
{{ Form::checkbox_formatted('specials', $menu_section->specials, 'Specials only (Do not show on printed or web menus)') }}
@if($menu_section->menu_section) {{ Form::button_safe_save("Save", "child_list_manager.post_update( '". action('MenuSectionController@update', compact('menu_section'))."' , '". action('MenuSectionController@menu_section', compact('menu_section')) ."', child_selector.calc_handle_id('".$menu_section->menu_section."') );" ) }} {{ Form::button_ex("Cancel", "child_list_manager.get_one( '". action('MenuSectionController@menu_section', compact('menu_section')) ."', child_selector.calc_handle_id('".$menu_section->menu_section."') );" ) }} @if ($menu_section->can_delete()) {{ Form::button_ex("Delete Section", "child_list_manager.delete_one( '". action('MenuSectionController@destroy', compact('menu_section')) ."', child_selector.calc_handle_id('".$menu_section->menu_section."') );" ) }} @endif @else {{ Form::button_safe_save("Save", "child_list_manager.post_insert( '". action('MenuSectionController@store', compact('menu')) ."', child_selector.calc_new_handle_id('".$menu->menu."'), '". action('MenuSectionController@menu_section', ['menu_section'=>'XXX']) ."', child_selector.calc_handle_id('XXX') );" ) }} {{ Form::button_ex("Cancel", "child_list_manager.cancel_one( child_selector.calc_new_handle_id('".$menu->menu."'));" ) }} @endif