service_option) id="grandchild_handle_{{$service_option->service_option}}" data-pk="{{$service_option->service_option}}" @else class="new-grandchild-div" id="child_{{$service->service}}_grandchild_handle_" @endif >
@if($service_option->service_option) {{ Form::label_styled("EDIT SERVICE OPTION", "label-top-pad", \App\Helpers\FormComponentHelper::SIZE_LARGE) }} @else {{ Form::label_styled("ADD A SERVICE OPTION", "label-top-pad", \App\Helpers\FormComponentHelper::SIZE_EXLARGE) }} @endif
{{ Form::hidden('service_option', $service_option->service_option, [ 'id' => 'service'] ) }} {{ Form::hidden('service', $service->service, [ 'id' => 'service'] ) }} {{ Form::hidden('package', $service->package, [ 'id' => 'service'] ) }} {{ Form::hidden('sort', $service_option->sort ) }} @if ($service->package == 0)
{{ Form::label_inline("Duration", "duration") }} {{ Form::text_suffix("duration", $service_option->duration, 3, 'minutes', null, "duration_change(this, this.value)") }}
@endif
{{ Form::label_inline("Option", "name") }} {{ Form::text_ex('name', $service_option->name, 5) }}
{{ Form::label_inline("Price", "price", 3) }} {{ Form::dollar_ex('price', $service_option->price, "zero_price_show(this.value, '".$service_option->service_option."');", 3, null ) }}
@if ($service->package == 1)
{{ Form::label_inline('Service') }} {{ Form::button_tiny("ADD ANOTHER SERVICE", "add_new_service();") }}
@foreach($child_services as $child_service)
{{ Form::select_ex('child_service_option_link_'.$child_service->service_option_link.'_child_service_option_'. $child_service->service_option, $child_service->service_option, $available_services, 6, 3) }}
@endforeach
@endif
{{ Form::checkbox_formatted('hide', $service_option->hide, 'Hide from list') }}
@if($service_option->service_option) {{ Form::button_safe_save("Save", "grandchild_list_manager.post_update( '". action('ServiceOptionController@update', compact('service_option')) ."', '". action('ServiceOptionController@service_option', compact('service_option')) ."', grandchild_selector.calc_handle_id('".$service_option->service_option."') );") }} {{ Form::button_ex("Cancel", "grandchild_list_manager.get_one( '". action('ServiceOptionController@service_option', compact('service_option')) ."', grandchild_selector.calc_handle_id('".$service_option->service_option."') );") }} @if ($service_option->can_delete()) {{ Form::button_ex("Delete Item", "grandchild_list_manager.delete_one( '". action('ServiceOptionController@destroy', compact('service_option')) ."', grandchild_selector.calc_handle_id('".$service_option->service_option."') );") }} @endif @else {{ Form::button_safe_save("Save", "grandchild_list_manager.post_insert( '". action('ServiceOptionController@store', compact('service')) ."', grandchild_selector.calc_new_handle_id('".$service->service."'), '". action('ServiceOptionController@service_option', ['service_option'=>'XXX']) ."', grandchild_selector.calc_handle_id('XXX') );") }} {{ Form::button_ex("Cancel", "grandchild_list_manager.cancel_one( grandchild_selector.calc_new_handle_id('".$service->service."'))") }} @endif