service_cat) id="parent_handle_{{$service_cat->service_cat}}" @else class="new-parent-div" id="parent_handle_" @endif >
@if($service_cat->service_cat) {{ Form::label_title("EDIT CATEGORY") }} @else {{ Form::label_title("ADD A CATEGORY") }} @endif
{{ Form::hidden('business', $business->business) }} {{ Form::hidden('sort', $service_cat->sort) }} {{ Form::row_text_inline('name', 'Service Category', $service_cat->name, 3, 6) }} {{ Form::row_textarea_inline('description', 'Description', $service_cat->description, 3, 6) }} {{ Form::hidden('service_tax', $service_tax) }} @if ($service_tax > 0)
{{ Form::label_inline("Category Tax", "tax_type") }} {{ Form::select_ex('tax_type', $service_cat->tax_type, \App\Models\Service_Cat::$tax_type, 6, null, "on_change_tax_type(this.value, '".$service_cat->service_cat."')") }}
{{ Form::label_inline("Tax Rate", "tax_rate") }} {{ Form::percent_ex('tax_rate', $service_cat->tax_rate, 2) }}
@endif
@if($service_cat->service_cat) {{ Form::button_safe_save("Save", "parent_list_manager.post_update( '". action('ServiceCatController@update', compact('service_cat'))."', '". action('ServiceCatController@service_cat', compact('service_cat'))."', parent_selector.calc_handle_id('".$service_cat->service_cat."'));") }} {{ Form::button_ex("Cancel", "parent_list_manager.get_one( '". action('ServiceCatController@service_cat', compact( 'service_cat'))."', parent_selector.calc_handle_id('".$service_cat->service_cat."') );") }} @if($service_cat->can_delete()) {{ Form::button_ex("Delete Category", "parent_list_manager.delete_one( '". action('ServiceCatController@destroy', compact('service_cat'))."', parent_selector.calc_handle_id('".$service_cat->service_cat."') );") }} @endif @else {{ Form::button_safe_save("Save", "parent_list_manager.post_insert( '". action('ServiceCatController@store', compact('business'))."', parent_selector.calc_new_handle_id(''), '". action('ServiceCatController@service_cat', ['service_cat'=>'XXX']) ."', parent_selector.calc_handle_id('XXX') );") }} @if (\App\Models\Service_Cat::all()->count() > 0) {{ Form::button_ex("Cancel", "parent_list_manager.cancel_one( parent_selector.calc_new_handle_id() );") }} @endif @endif