@extends('layouts/microfin_layout') @section('title', '| Update Regular Loan') @section('content')
Update Regular Loan
{!! Form::open(array('name' => 'memberForm', 'url' => '', 'role' => 'form', 'id' => 'rootwizard', 'files' => 'true', 'class' => 'form-wizard validate', 'novalidate' => '')) !!}
Member and Loan Details
{!! Form::label('member', 'Member:', ['class' => 'control-label']) !!}
{!! Form::text('memberIdFk', $member->code.' - '.$member->name, array('class'=>'form-control', 'readonly' => 'readonly')) !!}
{!! Form::label('disbursement date', 'Disbursement Date:*', ['class' => 'control-label']) !!}
{!! Form::text('disbursementDate', $disbursementDate, ['class' => 'form-control', 'id' => 'disbursementDate', 'type' => 'text', 'readonly' => 'readonly', 'data-validate' => 'required, minlength[5]']) !!}
{!! Form::label('product', 'Product:', ['class' => 'control-label']) !!}
{!! Form::text('productIdFk', $productName, array('class'=>'form-control', 'readonly' => 'readonly')) !!}
{!! Form::label('loan code', 'Loan Code:', ['class' => 'control-label']) !!}
{!! Form::text('loanCode', $loan->loanCode, ['class' => 'form-control', 'type' => 'text', 'readonly' => 'readonly']) !!} {!! Form::hidden('loanId', encrypt($loan->id), ['class' => 'form-control', 'type' => 'text', 'readonly' => 'readonly']) !!}
Loan Configuration
{!! Form::label('loan application no', 'Loan Application No:', ['class' => 'control-label']) !!}
{!! Form::text('loanApplicationNo', $loan->loanApplicationNo, ['class' => 'form-control', 'id' => 'loanApplicationNo', 'type' => 'text']) !!}
{!! Form::label('repayment frequency', 'Repayment Frequency:*', ['class' => 'control-label']) !!}
{!! Form::select('repaymentFrequencyIdFk', array('' => 'Select') + $repaymentFrequency, $loan->repaymentFrequencyIdFk, array('class'=>'form-control', 'id' => 'repaymentFrequencyIdFk', 'data-validate' => 'required')) !!}
{!! Form::label('no of installment', 'No of Installment:*', ['class' => 'control-label']) !!}
{!! Form::select('numberOfInstallments', array('' => 'Select') + $installments, $loan->numberOfInstallment, array('class'=>'form-control', 'id' => 'numberOfInstallments', 'data-validate' => 'required')) !!}
{!! Form::label('first repay date', 'First Repay Date:*', ['class' => 'control-label']) !!}
{!! Form::text('firstRepayDate', $firstRepayDate, ['class' => 'form-control', 'id' => 'firstRepayDate', 'type' => 'text', 'readonly' => 'readonly', 'data-validate' => 'required']) !!}
{!! Form::label('loan cycle', 'Loan Cycle:', ['class' => 'control-label']) !!}
{!! Form::text('loanCycle', $loan->loanCycle, ['class' => 'form-control', 'id' => 'loanCycle', 'type' => 'text', 'readonly' => 'readonly', 'data-validate' => 'required']) !!}
{!! Form::label('loan amount', 'Loan Amount:*', ['class' => 'control-label']) !!}
{!! Form::text('loanAmount', $loan->loanAmount, ['class' => 'form-control', 'id' => 'loanAmount', 'type' => 'text', 'autocomplete' => 'off', 'data-validate' => 'required', 'readonly' => ((isset($loan->eventId) && $loan->eventId > 0) ? true : false)]) !!}
{!! Form::label('insurance amount', 'Insurance Amount:', ['class' => 'control-label']) !!}
{!! Form::text('insuranceAmount', $loan->insuranceAmount, ['class' => 'form-control', 'id' => 'insuranceAmount', 'type' => 'text', 'readonly' => 'readonly']) !!}
{{--
{!! Form::label('loan purpose', 'Loan Purpose:*', ['class' => 'control-label']) !!}
{!! Form::select('loanSubPurposeIdFk', ($loanPurpose), $loan->loanSubPurposeIdFk, array('class'=>'form-control', 'id' => 'loanSubPurposeIdFk', 'data-validate' => 'required')) !!}
--}}
{!! Form::label('folio number', 'Folio Number:', ['class' => 'control-label']) !!}
{!! Form::text('folioNum', $loan->folioNum, ['class' => 'form-control', 'id' => 'folioNum', 'type' => 'text']) !!}
{!! Form::label('loan_purpose_code_level_1', 'Loan Purpose (Layer-1):*', ['class' => 'control-label']) !!}
{!! Form::select('loan_purpose_code_level_1', $loan_purpose_level_1_list, $loan->loan_purpose_code_level_1, array('class'=>'form-control', 'id' => 'loan_purpose_code_level_1', 'data-validate' => 'required')) !!}
{!! Form::label('loan_purpose_code_level_2', 'Loan Purpose (Layer-2):*', ['class' => 'control-label']) !!}
{!! Form::select('loan_purpose_code_level_2', $loan_purpose_level_2_list, $loan->loan_purpose_code_level_2, array('class'=>'form-control', 'id' => 'loan_purpose_code_level_2', 'data-validate' => 'required')) !!}
{!! Form::label('loan_purpose_code_level_3', 'Loan Purpose (Layer-3):*', ['class' => 'control-label']) !!}
{!! Form::select('loan_purpose_code_level_3', $loan_purpose_level_3_list, $loan->loan_purpose_code_level_3, array('class'=>'form-control', 'id' => 'loan_purpose_code_level_3', 'data-validate' => 'required')) !!}
{!! Form::label('loan_purpose_code_level_4', 'Loan Purpose (Layer-4):*', ['class' => 'control-label']) !!}
{!! Form::select('loan_purpose_code_level_4', $loan_purpose_level_4_list, $loan->loan_purpose_code_level_4, array('class'=>'form-control', 'id' => 'loan_purpose_code_level_4', 'data-validate' => 'required')) !!}
Interest Calculation
{!! Form::label('interest calculation method', 'Interest Calculation Method:*', ['class' => 'control-label']) !!}
{!! Form::text('interestCalculationMethod', $loan->interestCalculationMethod, ['class' => 'form-control', 'id' => 'interestCalculationMethod', 'type' => 'text', 'readonly' => 'readonly', 'data-validate' => 'required, minlength[1]']) !!}
{!! Form::label('interest rate', 'Interest Rate:*', ['class' => 'control-label']) !!}
{!! Form::text('interestRate', $loan->interestRate, ['class' => 'form-control', 'id' => 'interestRate', 'type' => 'text', 'readonly' => 'readonly', 'data-validate' => 'required, minlength[1]']) !!}
@if($loan->interestDiscountAmount)
{!! Form::label('interestDiscountAmount', 'Interest Discount Amount:', ['class' => 'control-label']) !!}
{!! Form::text('interestDiscountAmount', $loan->interestDiscountAmount, ['class' => 'form-control', 'id' => 'interestDiscountAmount', 'type' => 'text', 'readonly' => 'readonly',]) !!}
@endif
Payments
{!! Form::label('total repay amount', 'Total Repay Amount:*', ['class' => 'control-label']) !!}
{!! Form::text('totalRepayAmount', $loan->totalRepayAmount, ['class' => 'form-control', 'id' => 'totalRepayAmount', 'type' => 'text', 'readonly' => 'readonly', 'data-validate' => 'required']) !!}
{!! Form::label('interest amount', 'Interest Amount:', ['class' => 'control-label']) !!}
{!! Form::text('interestAmount', $loan->interestAmount, ['class' => 'form-control', 'id' => 'interestAmount', 'type' => 'text', 'readonly' => 'readonly']) !!}
{!! Form::label('installment amount', 'Installment Amount:*', ['class' => 'control-label']) !!}
{!! Form::text('installmentAmount', $loan->installmentAmount, ['class' => 'form-control', 'id' => 'installmentAmount', 'type' => 'text', 'data-validate' => 'required', 'readonly' => 'readonly']) !!}
{!! Form::label('payment type', 'Payment Type:', ['class' => 'control-label']) !!}
{!! Form::select('paymentTypeIdFk', ($paymentType), $loan->paymentTypeIdFk, array('class'=>'form-control', 'id' => 'paymentTypeIdFk', 'data-validate' => 'required')) !!}
Extra Loan Information
{!! Form::label('extra installment amount', 'Extra Installment Amount:', ['class' => 'control-label']) !!}
@if ($extraInstallmentAmountGeneratePolity == 'automatic') {!! Form::text('extraInstallmentAmount', $loan->extraInstallmentAmount, ['class' => 'form-control', 'id' => 'extraInstallmentAmount', 'type' => 'text', 'readonly' => 'readonly']) !!} @else {!! Form::text('extraInstallmentAmount', $loan->extraInstallmentAmount, ['class' => 'form-control', 'id' => 'extraInstallmentAmount', 'type' => 'text']) !!} @endif
{!! Form::label('actual installment amount', 'Actual Installment Amount:', ['class' => 'control-label']) !!}
{!! Form::text('actualInstallmentAmount', $loan->actualInstallmentAmount, ['class' => 'form-control', 'id' => 'actualInstallmentAmount', 'type' => 'text', 'readonly' => 'readonly']) !!}
{!! Form::label('last installment amount', 'Last Installment Amount:', ['class' => 'control-label']) !!}
{!! Form::text('lastInstallmentAmount', $loan->lastInstallmentAmount, ['class' => 'form-control', 'id' => 'lastInstallmentAmount', 'type' => 'text', 'readonly' => 'readonly']) !!}
{!! Form::label('additional fee', 'Additional Fee:', ['class' => 'control-label']) !!}
{!! Form::text('additionalFee', $loan->additionalFee, ['class' => 'form-control', 'id' => 'additionalFee', 'type' => 'text', 'readonly' => 'readonly']) !!}
{!! Form::label('loan form fee', 'Loan Form Fee:', ['class' => 'control-label']) !!}
{!! Form::text('loanFormFee', $loan->loanFormFee, ['class' => 'form-control', 'id' => 'loanFormFee', 'type' => 'text', 'readonly' => 'readonly']) !!}
{!! Form::label('note', 'Note:', ['class' => 'control-label']) !!}
{!! Form::textarea('note', $loan->note, ['class' => 'form-control', 'id' => 'note', 'type' => 'textarea', 'rows' => '5', 'cols' => '50']) !!}
Guarantor's Details
{!! Form::label('guarantor#1 name', 'Guarantor#1 Name:*', ['class' => 'control-label']) !!}
{!! Form::text('firstGuarantorName', $loan->firstGuarantorName, ['class' => 'form-control', 'id' => 'firstGuarantorName', 'type' => 'text', 'data-validate' => 'required']) !!}
{!! Form::label('relation', 'Relation:*', ['class' => 'control-label']) !!}
{!! Form::text('firstGuarantorRelation', $loan->firstGuarantorRelation, ['class' => 'form-control', 'id' => 'firstGuarantorRelation', 'type' => 'text', 'data-validate' => 'required']) !!}
{!! Form::label('address', 'Address:*', ['class' => 'control-label']) !!}
{!! Form::text('firstGuarantorAddress', $loan->firstGuarantorAddress, ['class' => 'form-control', 'id' => 'firstGuarantorAddress', 'type' => 'text', 'data-validate' => 'required']) !!}
{!! Form::label('contact', 'Contact:*', ['class' => 'control-label']) !!}
{!! Form::text('firstGuarantorContact', $loan->firstGuarantorContact, ['class' => 'form-control', 'id' => 'firstGuarantorContact', 'type' => 'text', 'data-validate' => 'required']) !!}
{!! Form::label('guarantor#2 name', 'Guarantor#2 Name:', ['class' => 'control-label']) !!}
{!! Form::text('secondGuarantorName', $loan->secondGuarantorName, ['class' => 'form-control', 'id' => 'secondGuarantorName', 'type' => 'text']) !!}
{!! Form::label('relation', 'Relation:', ['class' => 'control-label']) !!}
{!! Form::text('secondGuarantorRelation', $loan->secondGuarantorRelation, ['class' => 'form-control', 'id' => 'secondGuarantorRelation', 'type' => 'text']) !!}
{!! Form::label('address', 'Address:', ['class' => 'control-label']) !!}
{!! Form::text('secondGuarantorAddress', $loan->secondGuarantorAddress, ['class' => 'form-control', 'id' => 'secondGuarantorAddress', 'type' => 'text']) !!}
{!! Form::label('contact', 'Contact:', ['class' => 'control-label']) !!}
{!! Form::text('secondGuarantorContact', $loan->secondGuarantorContact, ['class' => 'form-control', 'id' => 'secondGuarantorContact', 'type' => 'text']) !!}
Employment related Information

Self-Employment / Family Employment

Full Time Employment
Part Time Employment
{!! Form::label('Male', 'Male:*', ['class' => 'control-label']) !!}
{!! Form::text('FEFullTimeMale', $value = null, ['class' => 'form-control', 'id' => 'FEFullTimeMale', 'type' => 'number', 'autocomplete' => 'off', 'data-validate' => 'required', 'min' => 0, 'max' => 99 ]) !!}
{!! Form::label('Female', 'Female:*', ['class' => 'control-label']) !!}
{!! Form::text('FEFullTimeFemale', $value = null, ['class' => 'form-control', 'id' => 'FEFullTimeFemale', 'type' => 'number', 'autocomplete' => 'off', 'data-validate' => 'required', 'min' => 0, 'max' => 99 ]) !!}
{!! Form::label('Male', 'Male:*', ['class' => 'control-label']) !!}
{!! Form::text('FEPartTimeMale', $value = null, ['class' => 'form-control', 'id' => 'FEPartTimeMale', 'type' => 'number', 'autocomplete' => 'off', 'data-validate' => 'required', 'min' => 0, 'max' => 99 ]) !!}
{!! Form::label('Female', 'Female:*', ['class' => 'control-label']) !!}
{!! Form::text('FEPartTimeFemale', $value = null, ['class' => 'form-control', 'id' => 'FEPartTimeFemale', 'type' => 'number', 'autocomplete' => 'off', 'data-validate' => 'required', 'min' => 0, 'max' => 99 ]) !!}

Wage-Based Employment

Full Time Employment
Part Time Employment
{!! Form::label('Male', 'Male:', ['class' => 'control-label']) !!}
{!! Form::text('FEFullTimeMaleWage', $value = null, ['class' => 'form-control', 'id' => 'FEFullTimeMaleWage', 'type' => 'number', 'autocomplete' => 'off', 'min' => 0, 'max' => 99 ]) !!}
{!! Form::label('Female', 'Female:', ['class' => 'control-label']) !!}
{!! Form::text('FEFullTimeFemaleWage', $value = null, ['class' => 'form-control', 'id' => 'FEFullTimeFemaleWage', 'type' => 'number', 'autocomplete' => 'off', 'min' => 0, 'max' => 99 ]) !!}
{!! Form::label('Male', 'Male:', ['class' => 'control-label']) !!}
{!! Form::text('OFEPartTimeMaleWage', $value = null, ['class' => 'form-control', 'id' => 'OFEPartTimeMaleWage', 'type' => 'number', 'autocomplete' => 'off', 'min' => 0, 'max' => 99 ]) !!}
{!! Form::label('Female', 'Female:', ['class' => 'control-label']) !!}
{!! Form::text('OFEPartTimeFemaleWage', $value = null, ['class' => 'form-control', 'id' => 'OFEPartTimeFemaleWage', 'type' => 'number', 'autocomplete' => 'off', 'min' => 0, 'max' => 99 ]) !!}
Upload Member Photo

Member Profile Picture



Your captured image will appear here...
{!! Form::file('profileImage', array('class' => 'profileImage', 'id' => 'profileImage', 'onchange' => 'loadProfileImageFile(event)', 'disabled' => 'true')) !!}

Member National ID Signature



Your captured image will appear here...
{!! Form::file('memberNidImage', array('class' => 'signature', 'id' => 'regularMemberNidImage', 'onchange' => 'loadMemberNidImageFile(event)')) !!}
Upload Member's Guarantor Photo

Member's Guarantor Picture



Your captured image will appear here...
{!! Form::file('guarantorImage', array('class' => 'guarantorImage', 'id' => 'guarantorImage', 'onchange' => 'loadGuarantorImageFile(event)')) !!}

Member's Guarantor National ID Signature



Your captured image will appear here...
{!! Form::file('guarantorNidImage', array('class' => 'signature', 'id' => 'guarantorNidSignatureImage', 'onchange' => 'loadguarantorNidImageFile(event)')) !!}
{!! Form::close() !!}
@endsection