{{ Form::label('item_category_id', __('messages.item_stock.item_category').':', ['class' => 'form-label']) }} {{ Form::select('item_category_id', $itemCategories, $itemStock->item_category_id, ['id' => 'editStockItemCategory','class' => 'form-select stockCategory','required','placeholder' => 'Select Item Category', 'data-control' => 'select2']) }}
{{ Form::label('item_id', __('messages.item_stock.item').':', ['class' => 'form-label']) }} {{ Form::select('item_id', [null], $itemStock->item_id, ['id' => 'editStockItems','class' => 'form-select stockItems', 'required', 'disabled', 'placeholder' => 'Select Item']) }}
{{ Form::label('supplier_name', __('messages.item_stock.supplier_name').':', ['class' => 'form-label']) }} {{ Form::text('supplier_name', null, ['id'=>'supplierName','class' => 'form-control']) }}
{{ Form::label('store_name', __('messages.item_stock.store_name').':', ['class' => 'form-label']) }} {{ Form::text('store_name', null, ['id'=>'storeName','class' => 'form-control']) }}
{{ Form::label('quantity', __('messages.item_stock.quantity').':', ['class' => 'form-label']) }} {{ Form::text('quantity', null, ['id'=>'quantity','class' => 'form-control','required', 'onkeyup' => 'if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,"")', 'maxlength' => '4','minlength' => '1']) }}
{{ Form::label('purchase_price', __('messages.item_stock.purchase_price').':', ['class' => 'form-label']) }} {{ Form::text('purchase_price', null, ['id'=>'purchasePrice','class' => 'form-control price-input','required', 'onkeyup' => 'if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,"")', 'maxlength' => '6','minlength' => '1']) }}
{{ Form::label('description', __('messages.item_stock.description').(':'), ['class' => 'form-label']) }} {{ Form::textarea('description', null, ['class' => 'form-control', 'rows' => 4]) }}
{{ Form::label('attachment', __('messages.document.attachment').':', ['class' => 'fs-5 fw-bold mb-2 d-block']) }}
{{ Form::submit(__('messages.common.save'), ['class' => 'btn btn-primary', 'id' => 'btnSave']) }} {!! __('messages.common.cancel') !!}