@extends('client_panel.layouts.app') @section('title') {{ __('messages.payment.add_payment') }} @endsection @section('header_toolbar')

@yield('title')

@endsection @section('content')
@include('flash::message')
{{ Form::open(['id'=>'clientPaymentForm', 'enctype' => 'multipart/form-data']) }}
{{ Form::hidden('invoice_id',$totalPayable['id'],['id'=>'invoice_id']) }}
{{ Form::label('payable_amount',__('messages.payment.payable_amount').':', ['class' => 'form-label mb-3']) }}
{{ Form::text('payable_amount', $totalPayable['total_amount'], ['id'=>'payable_amount','class' => 'form-control ','readonly']) }} {{ getInvoiceCurrencySymbol($invoice->currency_id) }}
{{ Form::label('payment_type',__('messages.payment.payment_type').':', ['class' => 'form-label required mb-3']) }} {{ Form::select('payment_type', $paymentType, key((($paymentType))),['id'=>'payment_type','class' => 'form-select','placeholder'=> __('messages.payment.select_payment_type'),'required']) }}
{{ Form::label('amount',__('messages.invoice.amount').':', ['class' => 'form-label required mb-3']) }} {{ Form::number('amount', null, ['id'=>'amount','class' => 'form-control','step'=>'any','oninput'=>"this.value = this.value.replace(/[^0-9.]/g, '')",'required']) }}
{{ Form::label('payment_mode',__('messages.payment.payment_mode').':', ['class' => 'form-label required mb-3']) }} {{ Form::select('payment_mode',$paymentMode, null,['id'=>'payment_mode','class' => 'form-select','placeholder'=> __('messages.payment.select_payment_mode'),'required']) }}
{{ Form::label('transactionId',__('messages.payment.transaction_id').':', ['class' => 'form-label mb-3']) }} {{ Form::text('transaction_id', null, ['id'=>'transactionId','class' => 'form-control']) }}
{{ Form::label('mobile_number',__('messages.payment.mobile_number').':', ['class' => 'form-label mb-3']) }} {{ Form::text('mobile_number', $contact, ['id'=>'mobile_number','class' => 'form-control']) }}
{{ Form::label('notes',__('messages.invoice.note').':', ['class' => 'form-label mb-3']) }} {{ Form::textarea('notes', $invoice->note, ['id'=>'payment_note','class' => 'form-control','rows'=>'2']) }}
{{ Form::label('paymentAttachment','Attach File'.':', ['class' => 'form-label mb-3']) }} {{ Form::file('payment_attachment', ['id'=>'paymentAttachment','class' => 'form-control']) }}
{{ Form::close() }}
@endsection @section('scripts') @endsection