Loan Information
{!! Form::label('disbursementDate', 'Disbursement Date:', ['class' => 'control-label']) !!} {!! Form::text('disbursementDate', date('d-m-Y', strtotime($loanApplication->disbursementDate)), [ 'class' => 'form-control', 'id' => 'disbursementDate', 'readonly', ]) !!}
{!! Form::label('loanCode', 'Loan Code:', ['class' => 'control-label']) !!} {!! Form::text('loanCode', $loanCode, [ 'class' => 'form-control', 'id' => 'loanCode', 'readonly', ]) !!}
{!! Form::label('mraLoanCode', 'MRA Loan Code:', ['class' => 'control-label']) !!} {!! Form::text('mraLoanCode', $mraLoanCode, [ 'class' => 'form-control', 'id' => 'mraLoanCode', 'readonly', ]) !!}
{!! Form::label('loanApplicationNo', 'Loan Application No:', ['class' => 'control-label']) !!} (Optional) {!! Form::text('loanApplicationNo', null, [ 'class' => 'form-control', 'id' => 'loanApplicationNo', 'autocomplete' => 'off', ]) !!}
{!! Form::label('installmentDate', 'Installment Date:', ['class' => 'control-label required']) !!} {!! Form::select('installmentDate', ['' => 'Select'], null, [ 'class' => 'form-control', 'id' => 'installmentDate', 'data-validate' => 'required', ]) !!}
{!! Form::label('installmentDay', 'Installment Day:', ['class' => 'control-label required']) !!} {!! Form::select('installmentDay', ['' => 'Select'], null, [ 'class' => 'form-control', 'id' => 'installmentDay', 'data-validate' => 'required', ]) !!}
{!! Form::label('firstRepayDate', 'First Repay Date:', ['class' => 'control-label']) !!} {!! Form::text('firstRepayDate', $firstRepayDate, [ 'class' => 'form-control', 'id' => 'firstRepayDate', 'readonly', ]) !!}
{!! Form::label('loanCycle', 'Loan Cycle:', ['class' => 'control-label']) !!} {!! Form::text('loanCycle', $loanCycle, [ 'class' => 'form-control', 'id' => 'loanCycle', 'readonly', ]) !!}
{!! Form::label('insuranceAmount', 'Insurance Amount:', ['class' => 'control-label']) !!} {!! Form::text('insuranceAmount', $insuranceAmount, [ 'class' => 'form-control', 'id' => 'insuranceAmount', 'readonly', ]) !!}
{!! Form::label('folioNum', 'Folio No:', ['class' => 'control-label']) !!} (Optional) {!! Form::text('folioNum', null, [ 'class' => 'form-control', 'id' => 'folioNum', 'autocomplete' => 'off', ]) !!}

Interest Calculation
{!! Form::label('interestCalculationMethod', 'Interest Calculation Method:', [ 'class' => 'control-label', ]) !!} {!! Form::text('interestCalculationMethod', null, [ 'class' => 'form-control', 'id' => 'interestCalculationMethod', 'readonly', ]) !!}
{!! Form::label('interestRate', 'Interest Rate:', ['class' => 'control-label']) !!} {!! Form::text('interestRate', null, [ 'class' => 'form-control', 'id' => 'interestRate', 'readonly', ]) !!}
{!! Form::label('interestDiscountAmount', 'Interest Discount Amount:', ['class' => 'control-label']) !!} (Optional) {!! Form::number('interestDiscountAmount', 0, [ 'class' => 'form-control', 'id' => 'interestDiscountAmount', 'autocomplete' => 'off', ]) !!}

Payments
{!! Form::label('totalRepayAmount', 'Total Repay Amount:', [ 'class' => 'control-label', ]) !!} {!! Form::text('totalRepayAmount', null, [ 'class' => 'form-control', 'id' => 'totalRepayAmount', 'readonly', ]) !!}
{!! Form::label('interestAmount', 'Interest Amount:', ['class' => 'control-label']) !!} {!! Form::text('interestAmount', null, [ 'class' => 'form-control', 'id' => 'interestAmount', 'readonly', ]) !!}
{!! Form::label('installmentAmount', 'Installment Amount:', ['class' => 'control-label']) !!} {!! Form::text('installmentAmount', null, [ 'class' => 'form-control', 'id' => 'installmentAmount', 'readonly', ]) !!}
{!! Form::label('paymentTypeIdFk', 'Payment Type:', ['class' => 'control-label required']) !!} @if(count($paymentType) == 1) {!! Form::select('paymentTypeIdFk', $paymentType, null, [ 'class' => 'form-control', 'id' => 'paymentTypeIdFk', 'readonly' => 'readonly', ]) !!} @else {!! Form::select('paymentTypeIdFk', ['' => 'Select']+$paymentType, null, [ 'class' => 'form-control', 'id' => 'paymentTypeIdFk', ]) !!} @endif
@if(isset($paidBankAccount))
{!! Form::label('bankName', 'Bank Name:', ['class' => 'control-label required']) !!} {!! Form::text('bankName', $paidBankAccount->bankName, [ 'class' => 'form-control', 'type' => 'text', 'readonly' => 'readonly', ]) !!}
{!! Form::label('bankAcNumber', 'Bank Acc. Number:', ['class' => 'control-label required']) !!} {!! Form::text('bankAcNumber', $paidBankAccount->bankAcNumber, [ 'class' => 'form-control', 'type' => 'text', 'readonly' => 'readonly', ]) !!}
{!! Form::label('txType', 'Txn Type:', ['class' => 'control-label required']) !!} {!! Form::text('txType', $paidBankAccount->txType, [ 'class' => 'form-control', 'type' => 'text', 'readonly' => 'readonly', ]) !!}
{!! Form::label('batchNumber', 'Batch Number:', ['class' => 'control-label required']) !!} {!! Form::text('batchNumber', $paidBankAccount->batchNumber, [ 'class' => 'form-control', 'type' => 'text', 'readonly' => 'readonly', ]) !!}
@else
{!! Form::label('ledgerId', 'Bank Name:', ['class' => 'control-label required']) !!} {!! Form::select('ledgerId', ['' => 'Select'], null, [ 'class' => 'form-control', 'id' => 'ledgerId', ]) !!}
@endif
{!! Form::label('chequeNo', 'Cheque No:', ['class' => 'control-label required']) !!} {!! Form::text('chequeNo', $value = null, [ 'class' => 'form-control', 'id' => 'chequeNo', 'type' => 'text', ]) !!}
{!! Form::label('chequeDate', 'Cheque Date:', ['class' => 'control-label required']) !!} {!! Form::text('chequeDate', $value = null, [ 'class' => 'form-control datepicker', 'id' => 'chequeDate', 'type' => 'text', 'readonly' => 'readonly', ]) !!}

Extra Loan Information
{!! Form::label('extraInstallmentAmount', 'Extra Installment Amount:', [ 'class' => 'control-label', ]) !!} @if ($extraInstallmentAmountGeneratePolity == 'automatic') {!! Form::text('extraInstallmentAmount', null, [ 'class' => 'form-control', 'id' => 'extraInstallmentAmount', 'readonly', ]) !!} @else {!! Form::text('extraInstallmentAmount', null, [ 'class' => 'form-control', 'id' => 'extraInstallmentAmount', 'type' => 'text', ]) !!} @endif
{!! Form::label('actualInstallmentAmount', 'Actual Installment Amount:', ['class' => 'control-label']) !!} {!! Form::text('actualInstallmentAmount', null, [ 'class' => 'form-control', 'id' => 'actualInstallmentAmount', 'type' => 'text', 'readonly', ]) !!}
{!! Form::label('lastInstallmentAmount', 'Last Installment Amount:', ['class' => 'control-label']) !!} {!! Form::text('lastInstallmentAmount', null, [ 'class' => 'form-control', 'id' => 'lastInstallmentAmount', 'readonly', ]) !!}
{!! Form::label('additionalFee', 'Additional Fee:', ['class' => 'control-label']) !!} {!! Form::text('additionalFee', $additionalFee, [ 'class' => 'form-control', 'id' => 'additionalFee', 'readonly', ]) !!}
{!! Form::label('loanFormFee', 'Loan Form Fee:', ['class' => 'control-label']) !!} {!! Form::text('loanFormFee', $loanFormFee, [ 'class' => 'form-control', 'id' => 'loanFormFee', 'readonly', ]) !!}
{!! Form::label('note', 'Note:', ['class' => 'control-label']) !!}(Optional) {!! Form::textarea('note', $value = null, [ 'class' => 'form-control mini_textarea', 'id' => 'note', ]) !!}

Guarantor's Details
{!! Form::label('firstGuarantorName', 'Guarantor#1 Name:*', ['class' => 'control-label required']) !!} {!! Form::text('firstGuarantorName', null, [ 'class' => 'form-control', 'id' => 'firstGuarantorName', ]) !!}
{!! Form::label('firstGuarantorRelation', 'Relation:', ['class' => 'control-label required']) !!} {!! Form::text('firstGuarantorRelation', null, [ 'class' => 'form-control', 'id' => 'firstGuarantorRelation', ]) !!}
{!! Form::label('firstGuarantorAddress', 'Address:', ['class' => 'control-label required']) !!} {!! Form::text('firstGuarantorAddress', $value = null, [ 'class' => 'form-control', 'id' => 'firstGuarantorAddress', ]) !!}
{!! Form::label('firstGuarantorContact', 'Contact:', ['class' => 'control-label required']) !!} {!! Form::text('firstGuarantorContact', null, [ 'class' => 'form-control', 'id' => 'firstGuarantorContact', ]) !!}
{!! Form::label('secondGuarantorName', 'Guarantor#2 Name:', ['class' => 'control-label']) !!}
{!! Form::text('secondGuarantorName', null, [ 'class' => 'form-control', 'id' => 'secondGuarantorName', ]) !!}
{!! Form::label('secondGuarantorRelation', 'Relation:', ['class' => 'control-label']) !!}
{!! Form::text('secondGuarantorRelation', null, [ 'class' => 'form-control', 'id' => 'secondGuarantorRelation', ]) !!}
{!! Form::label('secondGuarantorAddress', 'Address:', ['class' => 'control-label']) !!}
{!! Form::text('secondGuarantorAddress', null, [ 'class' => 'form-control', 'id' => 'secondGuarantorAddress', ]) !!}
{!! Form::label('secondGuarantorContact', 'Contact:', ['class' => 'control-label']) !!}
{!! Form::text('secondGuarantorContact', null, [ 'class' => 'form-control', 'id' => 'secondGuarantorContact', ]) !!}

Employment Related Information
Self-Employment / Family Employment
N.B: Minimum Self-Employment Should be 1
Full Time Employment
{!! Form::label('Male', 'Male:', ['class' => 'control-label']) !!} {!! Form::number('FEFullTimeMale', null, [ 'class' => 'form-control', 'id' => 'FEFullTimeMale', 'type' => 'number', 'autocomplete' => 'off', 'min' => 0, 'max' => 99, ]) !!}
{!! Form::label('Female', 'Female:', ['class' => 'control-label']) !!} {!! Form::number('FEFullTimeFemale', null, [ 'class' => 'form-control', 'id' => 'FEFullTimeFemale', 'type' => 'number', 'autocomplete' => 'off', 'data-validate' => 'required', 'min' => 0, 'max' => 99, ]) !!}
Part Time Employment
{!! Form::label('Male', 'Male:', ['class' => 'control-label']) !!}
{!! Form::number('FEPartTimeMale', null, [ 'class' => 'form-control', 'id' => 'FEPartTimeMale', 'type' => 'number', 'autocomplete' => 'off', 'min' => 0, 'max' => 99, ]) !!}
{!! Form::label('Female', 'Female:', ['class' => 'control-label']) !!}
{!! Form::number('FEPartTimeFemale', null, [ 'class' => 'form-control', 'id' => 'FEPartTimeFemale', 'type' => 'number', 'autocomplete' => 'off', 'min' => 0, 'max' => 99, ]) !!}
Wage-Based Employment
Full Time Employment
{!! Form::label('Male', 'Male:', ['class' => 'control-label']) !!}
{!! Form::number('FEFullTimeMaleWage', null, [ 'class' => 'form-control', 'id' => 'FEFullTimeMaleWage', 'type' => 'number', 'autocomplete' => 'off', 'min' => 0, 'max' => 99, ]) !!}
{!! Form::label('Female', 'Female:', ['class' => 'control-label']) !!}
{!! Form::number('FEFullTimeFemaleWage', null, [ 'class' => 'form-control', 'id' => 'FEFullTimeFemaleWage', 'type' => 'number', 'autocomplete' => 'off', 'min' => 0, 'max' => 99, ]) !!}
Part Time Employment
{!! Form::label('Male', 'Male:', ['class' => 'control-label']) !!}
{!! Form::number('OFEPartTimeMaleWage', null, [ 'class' => 'form-control', 'id' => 'OFEPartTimeMaleWage', 'type' => 'number', 'autocomplete' => 'off', 'min' => 0, 'max' => 99, ]) !!}
{!! Form::label('Female', 'Female:', ['class' => 'control-label']) !!}
{!! Form::number('OFEPartTimeFemaleWage', null, [ 'class' => 'form-control', 'id' => 'OFEPartTimeFemaleWage', 'type' => 'number', 'autocomplete' => 'off', 'min' => 0, 'max' => 99, ]) !!}