service) class="row" id="child_handle_{{$service->service}}" @else class="row new-child-div" id="parent_{{$service_cat->service_cat}}_child_handle_" @endif >
{{ Form::hidden('orig_child_cat', $service_cat->service_cat, ['id'=>'orig_child_cat']) }} {{ Form::hidden('business', $business->business) }} {{ Form::hidden('popularity', $service->popularity) }} {{ Form::hidden('service_tax', $service_tax) }} {{ Form::hidden('package', $service->package) }} {{ Form::hidden('sort', $service->sort) }}
@if(!$service->service) @if ($service->package == 0) {{ Form::label_title("ADD A SERVICE") }} @else {{ Form::label_title("ADD A PACKAGE") }} @endif @endif
@if ($service->package == 0) {{ Form::label_inline("Service Name", "name") }} @else {{ Form::label_inline("Package Name", "name") }} @endif {{ Form::text_ex('name', $service->name, 5) }}
@if ($service->package == 0)
{{ Form::label_grey("Add-ons are not available on the services menu when purchasing a GC, but are available when creating a booking.", 5, 3) }}
{{ Form::checkbox_formatted('addon', $service->addon, 'Add-on') }}
@endif
{{ Form::label_inline("Description", "description") }} {{ Form::textarea_ex('description', $service->description, 5) }}
@if($service->service)
{{ Form::label_inline("Category", "service_cat") }} {{ Form::select_ex("service_cat", $service_cat->service_cat, $service_cats, 5, null, null, "child_cat") }}
@else {{ Form::hidden('service_cat', $service_cat->service_cat) }} @endif @if ($service_tax > 0)
{{ Form::label_inline("Category Tax", "tax_type") }} {{ Form::select_ex("tax_type", $service->tax_type, \App\Models\Service_Cat::$tax_type, 5, null, "on_change_service_tax_type(this.value, '".$service->service."')") }}
{{ Form::label_inline("Tax Rate", "tax_rate") }} {{ Form::percent_ex('tax_rate', $service->tax_rate, 3) }}
@endif @if ($service->package == 0)
{{ Form::label_inline("Processing Time", "processing_time") }} {{ Form::text_suffix("processing_time", $service->processing_time, 3, 'in minutes') }}
{{ Form::checkbox_formatted('noprof', $service->noprof, "Doesn't require professionals") }}
@endif
{{ Form::checkbox_formatted('hide', $service->hide, "Hide from list") }}
@if($service->service) {{ Form::button_safe_save("Save", "child_list_manager.post_update( '" . action('ServiceController@update', compact('service'))."' , '" . action('ServiceController@service', compact('service'))."', child_selector.calc_handle_id('".$service->service."') );" ) }} {{ Form::button_ex("Cancel", "child_list_manager.get_one( '" . action('ServiceController@service', compact('service'))."', child_selector.calc_handle_id('".$service->service."') );" ) }} @if ($service->can_delete()) @if ($service->package == 0) {{ Form::button_ex("Delete Service", "child_list_manager.delete_one( '" . action('ServiceController@destroy', compact('service'))."', child_selector.calc_handle_id('".$service->service."') );" ) }} @else {{ Form::button_ex("Delete Package", "child_list_manager.delete_one( '" . action('ServiceController@destroy', compact('service'))."', child_selector.calc_handle_id('".$service->service."'), 'Package' );" ) }} @endif @endif @else {{ Form::button_safe_save("Save", "child_list_manager.post_insert( '" . action('ServiceController@store', compact('service_cat'))."', child_selector.calc_new_handle_id('".$service_cat->service_cat."'), '" . action('ServiceController@service', ['service'=>'XXX'])."', child_selector.calc_handle_id('XXX') );" ) }} {{ Form::button_ex("Cancel", "child_list_manager.cancel_one( child_selector.calc_new_handle_id('".$service_cat->service_cat."'));" ) }} @endif