@extends('layouts/microfin_layout') @section('title', '| Add Loan Product') @section('content')
New Loan Product
{!! Form::open(['url' => '', 'role' => 'form', 'id' => 'rootwizard', 'class' => 'form-horizontal form-groups validate', 'autocomplete'=>'off']) !!}
{!! Form::label('name', 'Name:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('name', $value = null, ['class' => 'form-control', 'id' => 'name','type' => 'text']) !!}
{!! Form::label('short name', 'Short Name:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('shortName', $value = null, ['class' => 'form-control', 'id' =>'shortName', 'type' => 'text']) !!}
{!! Form::label('loan product code', 'Loan Product Code:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('code', $value = null, ['class' => 'form-control', 'id' => 'code','type' => 'text' ]) !!}
{!! 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')) !!}
{!! Form::label('MRA Product Category', 'MRA Product Category:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::select('mraProductType', ($mraProductType), '4', array('class'=>'form-control', 'id' => 'isInsuranceApplicable')) !!}
{!! 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')) !!}
{!! Form::label('Samity Category', 'Samity Category:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::select('samityCatId', $samityCategories, null, array('class'=>'form-control', 'id' => 'samityCatId')) !!}
{!! Form::label('start date', 'Start Date:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('startDate', $value = $currentFiscalYearStartDate, ['class' => 'form-control datepicker', 'id' => 'startDate', 'type' => 'text', 'readonly' => 'readonly', 'style' => 'cursor:pointer']) !!}
{!! 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')) !!}
{{--
--}}
{!! 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']) !!}
{!! 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']) !!}
{!! 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']) !!}
{!! Form::label('years to eligible write-off', 'Years to Eligible Write-Off:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('yearsEligibleWriteOff', $value = null, ['class' => 'form-control', 'id' => 'yearsEligibleWriteOff', 'type' => 'text']) !!}
{!! 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')) !!}
{!! Form::label('insurance calculation method', 'Insurance Calculation Method:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::select('insuranceCalculationMethod', ($insuranceCalculationMethod), '1', array('class'=>'form-control', 'id' => 'insuranceCalculationMethod')) !!}
{!! Form::label('insuranceAmountPercentage', 'Insurance Amount Percentage(%) Against Principal Loan Amount:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('insuranceAmountPercentage', $value = null, ['class' => 'form-control', 'id' => 'insuranceAmountPercentage', 'type' => 'text']) !!}
{!! Form::label('eligible repayment frequency', 'Eligible Repayment Frequency:*', ['class' => 'col-sm-3 control-label']) !!}
Repayment Frequency
Grace Period
Installments
@foreach($repaymentFrequency as $key => $val)
{!! Form::checkbox('eligibleRepaymentFrequencys[]', ($key), false, array('class' => 'eligibleRepaymentFrequencys cbr')) !!} {!! Form::label(Illuminate\Support\Str::lower($val), ($val)) !!}
{!! Form::text('gracePeriod[]', null, ['class' => 'gracePeriod form-control', 'type' => 'text', 'placeholder'=>' Number of Days', 'style' => 'padding: 0!important;margin:0!important;height: 25px;','readonly'=>'readonly']) !!}
{!! Form::text('installments[]', null, ['class' => 'installments form-control', 'type' => 'text','placeholder'=>' e.g. 12, 18, 24, 36, 46', 'style' => 'padding: 0!important;margin:0!important;height: 25px;', 'readonly'=>'readonly']) !!}
@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('additional fee', 'Additional Fee:*', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('additionalFee', $value = null, ['class' => 'form-control', 'id' => 'additionalFee', 'type' => 'text' ]) !!}
{!! Form::submit('Submit', ['id' => 'submit', 'class' => 'btn btn-info']) !!} Close
{!! Form::close() !!}
@endsection