@extends('layouts/microfin_layout') @section('title', '| Add One Time Loan') @section('content')
New Opening One Time 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::select('memberIdFk', array('' => 'Select'), null, array('class'=>'form-control', 'id' => 'select-to', 'data-validate' => 'required')) !!}
{!! Form::label('disbursement date', 'Disbursement Date:*', ['class' => 'control-label']) !!}
{!! Form::text('disbursementDate', $value = null, ['class' => 'form-control', 'id' => 'disbursementDate', 'type' => 'text', 'readonly' => 'readonly', 'data-validate' => 'required, minlength[5]']) !!}
{!! Form::label('product', 'Product:*', ['class' => 'control-label']) !!}
{!! Form::select('productIdFk', array('' => 'Select'), null, array('class'=>'form-control', 'id' => 'productIdFk', 'data-validate' => 'required')) !!}
{!! Form::label('loan code', 'Loan Code:*', ['class' => 'control-label']) !!}
{!! Form::text('loanCode', $value = null, ['class' => 'form-control', 'id' => 'loanCode', 'type' => 'text', 'readonly' => 'readonly', 'data-validate' => 'required']) !!}
Loan Configuration
{!! Form::label('loan application no', 'Loan Application No:', ['class' => 'control-label']) !!}
{!! Form::text('loanApplicationNo', $value = null, ['class' => 'form-control', 'id' => 'loanApplicationNo', 'type' => 'text']) !!}
{!! Form::label('loan amount', 'Loan Amount:*', ['class' => 'control-label']) !!}
{!! Form::text('loanAmount', $value = null, ['class' => 'form-control', 'id' => 'loanAmount', 'type' => 'text', 'data-validate' => 'required']) !!} {!! Form::text('', $value = null, ['class' => 'form-control hidden', 'id' => 'maxLoanAmount', 'type' => 'hidden']) !!} {!! Form::text('', $value = null, ['class' => 'form-control hidden', 'id' => 'minLoanAmount', 'type' => 'hidden']) !!}
{!! Form::label('loan repay period', 'Loan Repay Period:*', ['class' => 'control-label']) !!}
{!! Form::select('loanRepayPeriodInMonth', (array('' => 'Select') + $damageData['loanRepayPeriod']), null, array('class'=>'form-control', 'id' => 'loanRepayPeriodInMonth', 'data-validate' => 'required')) !!}
{{--
{!! Form::label('no of repayment', 'No of Repayment:*', ['class' => 'control-label']) !!}
{!! Form::select('repaymentNo', array('1' => '1'), null, array('class'=>'form-control', 'id' => 'repaymentNo', 'data-validate' => 'required')) !!}
--}}
{!! Form::label('repay date', 'Repay Date:*', ['class' => 'control-label']) !!}
{!! Form::text('firstRepayDate', $value = null, ['class' => 'form-control', 'id' => 'repayDate', 'type' => 'text', 'readonly' => 'readonly', 'data-validate' => 'required']) !!}
{!! Form::label('insurance amount', 'Insurance Amount:', ['class' => 'control-label']) !!}
{!! Form::text('insuranceAmount', $value = null, ['class' => 'form-control', 'id' => 'insuranceAmount', 'type' => 'text', 'readonly' => 'readonly']) !!}
{!! Form::label('loan cycle', 'Loan Cycle:', ['class' => 'control-label']) !!}
{!! Form::text('loanCycle', $value = null, ['class' => 'form-control', 'id' => 'loanCycle', 'type' => 'text', 'readonly' => 'readonly', 'data-validate' => 'required']) !!}
{!! Form::label('folio number', 'Folio Number:', ['class' => 'control-label']) !!}
{!! Form::text('folioNum', $value = null, ['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', $damageData['loan_purpose_level_1_list'], null, 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', $damageData['loan_purpose_level_2_list'], null, 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', $damageData['loan_purpose_level_3_list'], null, 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', $damageData['loan_purpose_level_4_list'], null, array('class'=>'form-control', 'id' => 'loan_purpose_code_level_4', 'data-validate' => 'required')) !!}
Interest Calculation
{{--
{!! Form::label('mode of interest', 'Mode of Interest:*', ['class' => 'control-label']) !!}
{!! Form::text('interestMode', $value = null, ['class' => 'form-control', 'id' => 'interestMode', 'type' => 'text', 'readonly' => 'readonly', 'data-validate' => 'required, minlength[1]']) !!}
--}}
{!! Form::label('interest calculation method', 'Interest Calculation Method:*', ['class' => 'control-label']) !!}
{!! Form::text('interestCalculationMethod', $value = null, ['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', $value = null, ['class' => 'form-control', 'id' => 'interestRate', 'type' => 'text', 'readonly' => 'readonly', 'data-validate' => 'required, minlength[1]']) !!}
{{--
{!! Form::label('interest discount amount', 'Interest Discount Amount:', ['class' => 'control-label']) !!}
{!! Form::text('interestDiscountAmount', $value = null, ['class' => 'form-control', 'id' => 'interestDiscountAmount', 'type' => 'text', 'readonly' => 'readonly']) !!}
--}}
Opening Balance Information
{{--
{!! Form::label('old loan code', 'Old Loan Code:', ['class' => 'control-label']) !!}
{!! Form::text('oldLoanCode', $value = null, ['class' => 'form-control', 'id' => 'oldLoanCode', 'type' => 'text']) !!}
--}}
{!! Form::label('total paid amount', 'Total Paid Amount:*', ['class' => 'control-label']) !!}
{!! Form::text('paidLoanAmountOB', $value = null, ['class' => 'form-control', 'id' => 'paidLoanAmountOB', 'type' => 'text', 'readonly' => 'readonly','data-validate' => 'required']) !!}
{!! Form::label('principal amount', 'Principal Amount:*', ['class' => 'control-label']) !!}
{!! Form::text('principalAmountOB', $value = null, ['class' => 'form-control', 'id' => 'principalAmountOB', 'type' => 'text', 'data-validate' => 'required']) !!}
{!! Form::label('interest amount', 'Interest Amount:*', ['class' => 'control-label']) !!}
{!! Form::text('interestAmountOB', $value = null, ['class' => 'form-control', 'id' => 'interestAmountOB', 'type' => 'text', 'data-validate' => 'required']) !!}
{!! Form::label('due amount', 'Outstanding Amount:*', ['class' => 'control-label']) !!}
{!! Form::text('dueAmountOB', $value = null, ['class' => 'form-control', 'id' => 'dueAmountOB', 'type' => 'text', 'data-validate' => 'required','readonly' => 'readonly']) !!}
Payments
{!! Form::label('total repay amount', 'Total Repay Amount:*', ['class' => 'control-label']) !!}
{!! Form::text('totalRepayAmount', $value = null, ['class' => 'form-control', 'id' => 'totalRepayAmount', 'type' => 'text', 'readonly' => 'readonly', 'data-validate' => 'required']) !!}
{!! Form::label('interest amount', 'Interest Amount:', ['class' => 'control-label']) !!}
{!! Form::text('interestAmount', $value = null, ['class' => 'form-control', 'id' => 'interestAmount', 'type' => 'text', 'readonly' => 'readonly']) !!}
{!! Form::label('installment amount', 'Installment Amount:*', ['class' => 'control-label']) !!}
{!! Form::text('installmentAmount', $value = null, ['class' => 'form-control', 'id' => 'installmentAmount', 'type' => 'text', 'readonly' => 'readonly', 'data-validate' => 'required']) !!}
{!! Form::label('payment type', 'Payment Type:', ['class' => 'control-label']) !!}
{!! Form::select('paymentTypeIdFk', ($damageData['paymentType']), null, array('class'=>'form-control', 'id' => 'paymentTypeIdFk', 'data-validate' => 'required')) !!}
{!! Form::label('additional fee', 'Additional Fee:', ['class' => 'control-label']) !!}
{!! Form::text('additionalFee', $value = null, ['class' => 'form-control', 'id' => 'additionalFee', 'type' => 'text', 'readonly' => 'readonly']) !!}
{!! Form::label('loan form fee', 'Loan Form Fee:', ['class' => 'control-label']) !!}
{!! Form::text('loanFormFee', $value = null, ['class' => 'form-control', 'id' => 'loanFormFee', 'type' => 'text', 'readonly' => 'readonly']) !!}
{!! Form::label('note', 'Note:', ['class' => 'control-label']) !!}
{!! Form::textarea('note', $value = null, ['class' => 'form-control', 'id' => 'note', 'type' => 'textarea', 'rows' => '5', 'cols' => '50']) !!}
{!! Form::submit('Submit', ['id' => 'submit', 'class' => 'btn btn-info']) !!} Close
{!! Form::close() !!}