@if (module_is_active('AIAssistant')) @include('aiassistant::ai.generate_ai_btn', [ 'template_module' => 'product', 'module' => 'ProductService', ]) @endif
{{ Form::label('name', __('Name'), ['class' => 'form-label']) }}
{{ Form::text('name',!empty($productService->name)?$productService->name:'', ['class' => 'form-control','required' => 'required', 'placeholder' => __('Enter Name')]) }}
{{ Form::label('sku', __('SKU'), ['class' => 'form-label']) }}
{{ Form::text('sku', !empty($productService->sku)?$productService->sku:'', ['class' => 'form-control','required' => 'required', 'placeholder' => __('Enter SKU')]) }}
{{ Form::label('tax_id', __('Tax'), ['class' => 'form-label']) }} {{ Form::select('tax_id[]', $tax, !empty($productService->tax_id)?explode(',', $productService->tax_id):'', ['class' => 'form-control choices tax_data', 'id' => 'choices-multiple1', 'multiple']) }}
{{ Form::label('category_id', __('Category'), ['class' => 'form-label']) }} {{ Form::select('category_id', $category, !empty($productService->category_id)?$productService->category_id:'', ['class' => 'form-control', 'required' => 'required']) }}
{{ __('Please add constant category. ') }}{{ __('Add Category') }}
{{ Form::label('description', __('Description'), ['class' => 'form-label']) }} {!! Form::textarea('description', !empty($productService->description)?$productService->description:'', ['class' => 'form-control', 'rows' => '2', 'placeholder' => __('Enter Description')]) !!}
@if (module_is_active('CustomField') && !$customFields->isEmpty())
@include('custom-field::formBuilder')
@endif
{{ Form::label('sale_price', __('Sale Price'), ['class' => 'form-label']) }}
{{ Form::number('sale_price',!empty($productService->sale_price)?$productService->sale_price:'', ['class' => 'form-control', 'step' => '0.01','required' => 'required', 'placeholder' => __('Enter Sale Price')]) }}
{{ Form::label('purchase_price', __('Purchase Price'), ['class' => 'form-label']) }}
{{ Form::number('purchase_price', !empty($productService->purchase_price)?$productService->purchase_price:'', ['class' => 'form-control', 'step' => '0.01','required' => 'required', 'placeholder' => __('Enter Purchase Price')]) }}
@stack('add_column_in_productservice')
{{ Form::label('unit_id', __('Unit'), ['class' => 'form-label']) }} {{ Form::select('unit_id', $unit, !empty($productService->unit_id)?$productService->unit_id:'', ['class' => 'form-control', 'required' => 'required']) }}
@if($type != 'service')
{{ Form::label('quantity', __('Quantity'), ['class' => 'form-label']) }} {{ Form::number('quantity', !empty($productService->quantity)?$productService->quantity:'0', ['class' => 'form-control', 'min' => '0','required' => 'required', 'placeholder' => __('Enter Quantity')]) }}
@endif
{{ Form::label('image', __('Image'), ['class' => 'col-form-label']) }}
{{ __('Cancel') }}