@extends('layouts/microfin_layout') @section('title', '| Add Loan Product') @section('content')
New Loan Product
{!! Form::open(array('url' => '', 'role' => 'form', 'id' => 'rootwizard', 'class' => 'form-horizontal form-groups validate')) !!}
{!! Form::label('name', 'Name:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('name', $product->name, ['class' => 'form-control', 'id' => 'name', 'type' => 'text', 'data-validate' => 'required, minlength[5]' ]) !!} {!! Form::text('productId', $product->id, ['class' => 'hidden', 'id' => 'productId', 'type' => 'hidden']) !!}
{{--
{!! Form::label('loan product category', 'Loan Product Category:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::select('productCategoryId', ($productCategory), null, array('class'=>'form-control', 'id' => 'productCategoryId', 'data-validate' => 'required')) !!}
--}} {{--
{!! Form::label('funding organization', 'Funding Organization:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::select('fundingOrganizationId', (array('' => 'Select') + $fundingOrganization), null, array('class'=>'form-control', 'id' => 'fundingOrganizationId', 'data-validate' => 'required')) !!}
--}}
{!! Form::label('short name', 'Short Name:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('shortName', $product->shortName, ['class' => 'form-control', 'id' => 'shortName', 'type' => 'text', 'data-validate' => 'required, minlength[3]' ]) !!}
{!! Form::label('loan product code', 'Loan Product Code:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('code', $product->code, ['class' => 'form-control', 'id' => 'code', 'type' => 'text', 'data-validate' => 'required' ]) !!}
{{--
{!! Form::label('start date', 'Start Date:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('startDate', $value = null, ['class' => 'form-control datepicker', 'id' => 'startDate', 'type' => 'text', 'readonly' => 'readonly', 'data-validate' => 'required']) !!}
{!! Form::label('is primary product', 'Is Primary Product:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::select('isPrimaryProduct', ($boolean), '1', array('class'=>'form-control', 'id' => 'isPrimaryProduct', 'data-validate' => 'required')) !!}
{!! Form::label('minimum loan amount', 'Minimum Loan Amount:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('minLoanAmount', $value = null, ['class' => 'form-control', 'id' => 'minLoanAmount', 'type' => 'text', 'data-validate' => 'required, minlength[4]' ]) !!}
{!! Form::label('maximum loan amount', 'Maximum Loan Amount:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('maxLoanAmount', $value = null, ['class' => 'form-control', 'id' => 'maxLoanAmount', 'type' => 'text','data-validate' => 'required, minlength[4]' ]) !!}
{!! Form::label('average loan amount', 'Average Loan Amount:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('avgLoanAmount', $value = null, ['class' => 'form-control', 'id' => 'avgLoanAmount', 'type' => 'text', 'data-validate' => 'required, minlength[4]' ]) !!}
{!! Form::label('grace period', 'Grace Period:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::select('gracePeriodId', ($gracePeriod), null, array('class'=>'form-control', 'id' => 'gracePeriodId', 'data-validate' => 'required')) !!}
{!! Form::label('years to eligible write-off', 'Years to Eligible Write-Off:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::select('yearsEligibleWriteOffId', ($yearsEligibleWriteOff), null, array('class'=>'form-control', 'id' => 'yearsEligibleWriteOffId')) !!}
{!! Form::label('is insurance applicable', 'Is Insurance Applicable:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::select('isInsuranceApplicable', ($boolean), '1', array('class'=>'form-control', 'id' => 'isInsuranceApplicable', 'data-validate' => 'required')) !!}
{!! Form::label('insurance calculation method', 'Insurance Calculation Method:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::select('insuranceCalculationMethodId', ($insuranceCalculationMethod), '1', array('class'=>'form-control', 'id' => 'insuranceCalculationMethodId', 'data-validate' => 'required')) !!}
{!! Form::label('insurance amount', 'Insurance Amount:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('insuranceAmount', $value = null, ['class' => 'form-control', 'id' => 'insuranceAmount', 'type' => 'text']) !!} Add More
{!! Form::label('maximum insurance amount', 'Maximum Insurance Amount:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('maxInsuranceAmount', $value = null, ['class' => 'form-control', 'id' => 'maxInsuranceAmount', 'type' => 'text' ]) !!}
{!! Form::label('maximum loan amount for insurance applicable', 'Maximum Loan Amount for Insurance Applicable:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('maxLoanAmountForInsuranceApplicable', $value = null, ['class' => 'form-control', 'id' => 'maxLoanAmountForInsuranceApplicable', 'type' => 'text' ]) !!}
{!! Form::label('mandatory savings amount of proposed loan amount', 'Mandatory Savings Amount(%) of Proposed Loan Amount:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('mandatorySavingsAmountOfProposedLoanAmount', $value = null, ['class' => 'form-control', 'id' => 'mandatorySavingsAmountOfProposedLoanAmount', 'type' => 'text', 'data-validate' => 'required, minlength[1]' ]) !!}
{!! Form::label('is multiple loan allowed', 'Is Multiple Loan Allowed:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::select('isMultipleLoanAllowed', array(0 => 'No'), 0, array('class'=>'form-control', 'id' => 'isMultipleLoanAllowed', 'data-validate' => 'required')) !!}
{!! Form::label('number of installment', 'Number of Installment:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('installmentNum', $value = null, ['class' => 'form-control', 'id' => 'installmentNum', 'type' => 'text', 'data-validate' => 'required' ]) !!} eg: 12,18,45
{!! Form::label('loan product type', 'Loan Product Type:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::select('productTypeId', ($loanProductType), '1', array('class'=>'form-control', 'id' => 'productTypeId', 'data-validate' => 'required')) !!}
{!! Form::label('repayment frequency', 'Repayment Frequency:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::select('repaymentFrequencyId', ($repaymentFrequency), null, array('class'=>'form-control', 'id' => 'repaymentFrequencyId', 'data-validate' => 'required')) !!}
{!! Form::label('enforced installment amount is only service charge', 'Enforced Installment Amount is only Service Charge:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::select('enforcedInstallmentAmountOnlyServiceCharge', ($boolean), '0', array('class'=>'form-control', 'id' => 'enforcedInstallmentAmountOnlyServiceCharge')) !!}
{!! Form::label('eligible repayment frequency', 'Eligible Repayment Frequency:*', ['class' => 'col-sm-3 control-label']) !!}
@foreach($repaymentFrequency as $key => $val)
{!! Form::checkbox('eligibleRepaymentFrequencyId[]', ($key), false, array('class' => 'eligibleRepaymentFrequencyId cbr')) !!} {!! Form::label(Illuminate\Support\Str::lower($val), ($val)) !!}
@endforeach
{!! Form::label('form fee', 'Form Fee:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('formFee', $value = null, ['class' => 'form-control', 'id' => 'formFee', 'type' => 'text' ]) !!}
{!! Form::label('health service fee', 'Health Service Fee:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('healthServiceFee', $value = null, ['class' => 'form-control', 'id' => 'healthServiceFee', 'type' => 'text' ]) !!}
{!! Form::label('risk insurance', 'Risk Insurance:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('riskInsurance', $value = null, ['class' => 'form-control', 'id' => 'riskInsurance', 'type' => 'text' ]) !!} [per Thousand]
{!! Form::label('additional fee calculation method', 'Additional Fee Calculation Method:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::select('additionalFeeCalculationMethodId', ($insuranceCalculationMethod), '1', array('class'=>'form-control', 'id' => 'additionalFeeCalculationMethodId', 'data-validate' => 'required')) !!}
{!! Form::label('additional fee', 'Additional Fee:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('additionalFee', $value = null, ['class' => 'form-control', 'id' => 'additionalFee', 'type' => 'text' ]) !!}
{!! Form::label('maximum loan amount for additional fee applicable', 'Maximum Loan Amount for Additional Fee Applicable:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('maxLoanAmountForAdditionalFeeApplicable', $value = null, ['class' => 'form-control', 'id' => 'maxLoanAmountForAdditionalFeeApplicable', 'type' => 'text' ]) !!}
{!! Form::label('admission fee', 'Admission Fee:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('admissionFee', $value = null, ['class' => 'form-control', 'id' => 'admissionFee', 'type' => 'text']) !!}
--}}
{!! Form::submit('Submit', ['id' => 'submit', 'class' => 'btn btn-info']) !!} Close
{!! Form::close() !!}
@endsection