@extends('layouts.master') @section('title') {{translate('add loan')}} @endsection @section('content')
{{translate('add loan')}}
{!! Form::open(array('url' => url('loan/loan_calculator/show'), 'method' => 'post', 'class' => 'form-horizontal',"enctype"=>"multipart/form-data")) !!}

{{translate('loan term')}} ({{translate('required field')}}):

{{translate('principal amount')}}:

{!! Form::label('principal',translate('principal').' '.translate('amount'),array('class'=>'col-sm-3 control-label')) !!}
{!! Form::text('principal',null, array('class' => 'form-control touchspin', 'placeholder'=>"",'required'=>'required')) !!}

{{translate('duration')}}:

{!! Form::label('loan_duration',translate('loan').' '.translate('duration'),array('class'=>'col-sm-3 control-label')) !!}
{!! Form::number('loan_duration',null, array('class' => 'form-control', 'placeholder'=>"5",'required'=>'required','id'=>'loan_duration')) !!}
{!! Form::select('loan_duration_type',array('day'=>translate('day').'(s)','week'=>translate('week').'(s)','month'=>translate('month').'(s)','year'=>translate('year').'(s)'),null, array('class' => 'form-control',"id"=>"loan_duration_type",'required'=>'required')) !!}

{{translate('repayment')}}:

{!! Form::label('repayment_cycle',translate('repayment_cycle'),array('class'=>'col-sm-3 control-label')) !!}
{!! Form::select('repayment_cycle',array('daily'=>translate('daily'),'weekly'=>translate('weekly'),'monthly'=>translate('monthly'),'bi_monthly'=>translate('bi_monthly'),'quarterly'=>translate('quarterly'),'semi_annual'=>translate('semi_annually'),'annual'=>translate('annual')),null, array('class' => 'form-control',"id"=>"repayment_cycle",'required'=>'required')) !!}

{!! Form::label('release_date',translate('expected').' '.translate('disbursement').' '.translate('date'),array('class'=>'col-sm-3 control-label')) !!}
{!! Form::text('release_date',date("Y-m-d"), array('class' => 'form-control date-picker', 'placeholder'=>"yyyy-mm-dd",'required'=>'required','id'=>'release_date')) !!}

{{translate('first_payment_date_optional')}}

{!! Form::label('first_payment_date',translate('first').' '.translate('repayment').' '.translate('date'),array('class'=>'col-sm-3 control-label')) !!}
{!! Form::text('first_payment_date',null, array('class' => 'form-control date-picker', 'placeholder'=>"yyyy-mm-dd",''=>'','id'=>'first_payment_date','required'=>'required')) !!}

{{translate('interest')}}:

{!! Form::label('interest_method',translate('interest').' '.translate('method'),array('class'=>'col-sm-3 control-label')) !!}
{!! Form::select('interest_method',array('flat_rate'=>translate('flat_rate'),'declining_balance_equal_installments'=>translate('declining_balance_equal_installments'),'declining_balance_equal_principal'=>translate('declining_balance_equal_principal'),'interest_only'=>translate('interest_only')),null, array('class' => 'form-control','required'=>'required')) !!}
{!! Form::label('interest_rate',translate('loan').' '.translate('interest').' %',array('class'=>'col-sm-3 control-label')) !!}
{!! Form::text('interest_rate',null, array('class' => 'form-control touchspin', 'placeholder'=>"",'required'=>'required')) !!}
{!! Form::select('interest_period',array('day'=>translate('per_day'),'week'=>translate('per_week'),'month'=>translate('per_month'),'year'=>translate('per_year')),null, array('class' => 'form-control', "id"=>"inputDefaultInterestPeriod",'required'=>'required')) !!}
{!! Form::label('grace_on_interest_charged',translate('grace_on_interest'),array('class'=>'col-sm-3 control-label')) !!}
{!! Form::number('grace_on_interest_charged',null, array('class' => 'form-control', 'placeholder'=>"2")) !!}

{{translate('loan_due_heading')}}:

{{translate('loan_decimal_msg')}}

{!! Form::label('decimal_places',translate('decimal_place'),array('class'=>'col-sm-3 control-label')) !!}
{!! Form::select('decimal_places',array('round_off_to_two_decimal'=>translate('round_off_to_two_decimal'),'round_off_to_integer'=>translate('round_off_to_integer')),null, array('class' => 'form-control',"id"=>"",'required'=>'required')) !!}

{!! Form::close() !!}
@endsection @section('footer-scripts') @endsection