{{ __('messages.advanced_payment.edit_advanced_payment') }}

{{ Form::open(['id'=>'editAdvancedPaymentForm']) }}
{{ Form::hidden('advanced_payment_id',null,['id'=>'patientAdvancePaymentId']) }}
{{ Form::label('patient_id', __('messages.advanced_payment.patient').(':'), ['class' => 'form-label']) }} {{ Form::select('patient_id', $patients ?? [], null, ['class' => 'form-select', 'id' => 'editPatientPaymentId','placeholder' => 'Select Patient', 'required','data-control' => 'select2']) }}
{{ Form::label('receipt_no', __('messages.advanced_payment.receipt_no').(':'),['class' => 'form-label']) }} {{ Form::text('receipt_no', null, ['class' => 'form-control ','id'=> 'editPatientPaymentReceiptNo','required','readonly']) }}
{{ Form::label('amount', __('messages.advanced_payment.amount').(':'),['class' => 'form-label']) }} {{ Form::text('amount', null, ['class' => 'form-control price-input ','id'=> 'editPatientPaymentAmount','required', 'onkeyup' => 'if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,"")', 'maxlength' => '7']) }}
{{ Form::label('date', __('messages.advanced_payment.date').(':'),['class' => 'form-label']) }} {{ Form::text('date', null, ['class' => 'form-control ','id' => 'editPatientPaymentDate','required','autocomplete' => 'off']) }}
{{ Form::button(__('messages.common.save'), ['type' => 'submit','class' => 'btn btn-primary me-2','id' => 'editPatientPaymentSave','data-loading-text' => " Processing..."]) }}
{{ Form::close() }}