@if(isset($category)) {!! Form::open(['url' => action([\App\Http\Controllers\CategoryController::class, 'update'], [$category->id]), 'method' => 'PUT', 'id' => 'modal_add_form' ]) !!} @else {!! Form::open(['url' => action([\App\Http\Controllers\CategoryController::class, 'store']), 'method' => 'post', 'id' => 'modal_add_form','novalidate' ]) !!} @endif @php $name_label = !empty($module_category_data['taxonomy_label']) ? $module_category_data['taxonomy_label'] : __( 'category.category_name' ); $cat_code_enabled = isset($module_category_data['enable_taxonomy_code']) && !$module_category_data['enable_taxonomy_code'] ? false : true; $cat_code_label = !empty($module_category_data['taxonomy_code_label']) ? $module_category_data['taxonomy_code_label'] : __( 'category.code' ); $enable_sub_category = isset($module_category_data['enable_sub_taxonomy']) && !$module_category_data['enable_sub_taxonomy'] ? false : true; $category_code_help_text = !empty($module_category_data['taxonomy_code_help_text']) ? $module_category_data['taxonomy_code_help_text'] : __('app.category_code_help'); @endphp {!! Form::close() !!}