{{ Form::hidden('medicine_bill', isset($medicineBill) ? $medicineBill->id : null, ['id' => 'medicineBillId']) }} {{ Form::hidden('medicine_bill_status', isset($medicineBill) ? $medicineBill->payment_status : null, ['id' => 'medicineBillStatus']) }}
{{ __('messages.medicine_categories') }} | {{ __('messages.medicines') }} | {{--{{ __('lot no.') }} | --}}{{ __('messages.purchase_medicine.expiry_date') }} | {{ __('messages.medicine_bills.sale_price') }} | {{--{{ __('Purchase Price') }} | --}}{{ __('messages.service.quantity') }} | {{ __('messages.purchase_medicine.tax') }} | {{ __('messages.bill.amount') }} | @if ( !(isset($medicineBill))||(isset($medicineBill) && $medicineBill->payment_status != 1)){{ __('messages.common.add') }} | @endif
---|---|---|---|---|---|---|---|---|---|
{{ Form::select('category_id[]', $medicineCategories, isset($saleMedicine->medicine->category->id) ? $saleMedicine->medicine->category->id : null , ['class' => 'form-select select2Selector medicineBillCategoriesId', 'required', 'placeholder' => __('messages.medicine.select_category'), 'data-id' => '1', 'data-control' => 'select2']) }} | {{ Form::select('medicine[]', $medicines['medicines'], isset($saleMedicine->medicine->id) ? $saleMedicine->medicine->id:null, ['class' => 'form-select medicinePurchaseId purchaseMedicineId', 'placeholder' => __('messages.medicine_bills.select_medicine'), 'id' => 'medicineChooseId1', 'data-control' => 'select2', 'data-id' => 1, 'required']) }} | {{ Form::text('expiry_date[]', null, ['class' => 'form-control medicineBillExpiryDate', 'id' => 'expiry_date1', 'placeholder' => __('messages.purchase_medicine.expiry_date')]) }} | {{ Form::text('sale_price[]', number_format($saleMedicine->sale_price,2,'.',''), ['class' => 'form-control medicineBill-sale-price price-format ', 'id' => 'medicine_sale_price' . $key + 1, 'required']) }} | {{ Form::hidden('quantity1[]', $saleMedicine->sale_quantity, ['class' => 'previous-quantity', 'id' => 'previous-sale-qty' . $key + 1]) }}
{{ Form::number('quantity[]', $saleMedicine->sale_quantity, ['class' => 'form-control medicineBill-quantity', 'id' => 'quantity' . $key + 1, 'required']) }}
{{ __($saleMedicine->medicine->available_quantity) }}
|
{{ Form::number('tax_medicine[]', $saleMedicine->tax, ['class' => 'form-control medicineBill-tax','id' => 'tax' . $key + 1]) }}
{{ __('%') }}
|
{{ Form::text('amount[]', number_format($saleMedicine->sale_quantity * $saleMedicine->sale_price,2,'.',''), ['class' => 'form-control medicine-bill-amount price-format', 'readonly', 'id' => 'amount' . $key + 1]) }} | |||
{{ Form::select('category_id[]', $medicineCategories, null, ['class' => 'form-select medicineBillCategoriesId select2Selector','required','placeholder'=>'Select Category', 'data-id' => 1]) }} | {{ Form::select('medicine[]', [], null,['class' => 'form-select medicinePurchaseId purchaseMedicineId','placeholder'=>'Select Medicine','id'=>'c1','data-control'=>'select2','data-id'=>1,'required']) }} | {{ Form::text('expiry_date[]', null, ['class' => 'form-control medicineBillExpiryDate', 'id' => 'expiry_date1', 'placeholder' => __('messages.purchase_medicine.expiry_date')]) }} | {{ Form::text('sale_price[]', '0.00', ['class' => 'form-control medicineBill-sale-price price-format', 'required', 'id' => 'medicine_sale_price1']) }} |
{{ Form::number('quantity[]', 0, ['class' => 'form-control medicineBill-quantity', 'id' => 'quantity1', 'required']) }}
{{ __('0') }}
|
{{ Form::number('tax_medicine[]', 0, ['class' => 'form-control medicineBill-tax', 'id' => 'tax1']) }}
{{ __('%') }}
|
{{ Form::text('amount[]', '0.00', ['class' => 'form-control medicine-bill-amount price-format', 'readonly', 'id' => 'amount1']) }} |