{{ __('messages.payment.edit_payment') }}

{{ Form::open(['id'=>'editPaymentForm']) }}
{{ Form::label('invoice',__('messages.invoice.invoice').':', ['class' => 'form-label required mb-3']) }} {{ Form::text('invoice_id',null,['id'=>'edit_invoice_id','class' => 'form-control form-control-solid','readonly']) }} {{ Form::hidden('invoice',null,['id'=>'invoice']) }}
{{ Form::label('due_amount',__('messages.invoice.due_amount').':', ['class' => 'form-label mb-3']) }}
{{ Form::text('due_amount', null, ['id'=>'totalDue_amount','class' => 'form-control form-control-solid','placeholder'=>__('messages.invoice.due_amount'),'readonly','disabled']) }} {{ getCurrencySymbol() }}
{{ Form::label('paid_amount',__('messages.invoice.paid_amount').':', ['class' => 'form-label mb-3']) }}
{{ Form::text('paid_amount', null, ['id'=>'totalPaid_amount','class' => 'form-control form-control-solid','placeholder'=>__('messages.invoice.paid_amount'),'readonly','disabled']) }} {{ getCurrencySymbol() }}
{{ Form::label('payment_date',__('messages.payment.payment_date').(':'),['class' => 'form-label required mb-3']) }} {{ Form::text('payment_date', null, ['class' => 'form-control form-control-solid ', 'id' => 'edit_payment_date','placeholder'=>__('messages.payment.payment_date'), 'autocomplete' => 'off','required','data-focus'=>"false"]) }}
{{ Form::label('amount',__('messages.invoice.amount').':', ['class' => 'form-label required mb-3']) }}
{{ Form::number('amount', null, ['id'=>'edit_amount','class' => 'form-control form-control-solid','step'=>'any','oninput'=>"validity.valid||(value=value.replace(/[e\+\-]/gi,''))",'min'=>'0','required','placeholder'=>__('messages.invoice.amount')]) }} {{ getCurrencySymbol() }}
{{ Form::label('payment_mode',__('messages.payment.payment_mode').':', ['class' => 'form-label required mb-3']) }} {{ Form::text('payment_mode','Cash',['id'=>'edit_payment_mode','readonly','class' => 'form-control form-control-solid ']) }}
{{ Form::label('notes',__('messages.invoice.note').':', ['class' => 'form-label required fs-6 text-gray-700 mb-3']) }} {{ Form::textarea('notes', null, ['id'=>'edit_payment_note','class' => 'form-control form-control-solid','rows'=>'5','required']) }}
{{ Form::hidden('paymentId',null,['id'=>'paymentId']) }} {{ Form::hidden('transactionId',null,['id'=>'transactionId']) }}
{{ Form::button(__('messages.common.pay'), ['type' => 'submit','class' => 'btn btn-primary me-2','id' => 'editFormButton','data-loading-text' => " Processing...", 'data-new-text' => __('messages.common.pay')]) }}
{{ Form::close() }}