@extends('layouts/acc_layout') @section('title', '| Loan Register') @section('content')
Loan Register
{{-- ////////////////////////////// --}}
{!! Form::open(['url'=>'','class'=>'form-horizontal form-groups']) !!}
{!! Form::label('donor', 'Donor:', ['class' => 'col-sm-4 control-label']) !!}
@php $donorList = array(''=>'Select Donor') + DB::table('gnr_bank')->pluck('name','id')->toArray(); @endphp {!! Form::select('donor',$donorList ,null, ['class'=>'form-control', 'id' => 'donor']) !!}

{!! Form::hidden('donorType',null,['id'=>'donorType']) !!}
{!! Form::label('loanProduct', 'Loan Product:', ['class' => 'col-sm-4 control-label']) !!}
@php $loanProductList = array(''=>'Select Loan Product') + DB::table('gnr_loan_product')->pluck('name','id')->toArray(); @endphp {!! Form::select('loanProduct',$loanProductList ,null, ['class'=>'form-control', 'id' => 'loanProduct']) !!}

{!! Form::label('branch', 'Branch:', ['class' => 'col-sm-4 control-label']) !!}
@php /*$donorBranchList = array(''=>'Select Branch') + DB::table('gnr_bank_branch')->pluck('name','id')->toArray();*/ $donorBranchList = DB::table('gnr_bank_branch')->select('name','id','bankId_fk')->get(); $bankShortNameList = array(); foreach ($donorBranchList as $key => $donorBranch) { $bankShortName = DB::table('gnr_bank')->where('id',$donorBranch->bankId_fk)->value('shortName'); array_push($bankShortNameList, $bankShortName); } @endphp

{!! Form::label('project', 'Project:', ['class' => 'col-sm-4 control-label']) !!}
@php $projects = DB::table('gnr_project')->select('id','name','projectCode')->get(); @endphp

{!! Form::label('projectType', 'Project Type:', ['class' => 'col-sm-4 control-label']) !!}
@php $projectTypes = DB::table('gnr_project_type')->select('id','name','projectTypeCode')->get(); @endphp

{!! Form::label('accNo', 'Account No:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('accNo', null, ['class'=>'form-control', 'id' => 'accNo']) !!}

{!! Form::label('agreementDate', 'Agreement/Sanction Date:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('agreementDate', null, ['class'=>'form-control', 'id' => 'agreementDate','readonly','style'=>'cursor:pointer']) !!}

{!! Form::label('loanSanctionNumber', 'Loan Sanction Number:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('loanSanctionNumber', null, ['class'=>'form-control', 'id' => 'loanSanctionNumber']) !!}

{!! Form::label('loanDate', 'Loan Date:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('loanDate', null, ['class'=>'form-control', 'id' => 'loanDate','readonly','style'=>'cursor:pointer']) !!}

{{-- End of 1st coloum --}}
{!! Form::label('interestRate', 'Interest Rate:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('interestRate', null, ['class'=>'form-control', 'id' => 'interestRate']) !!}

{!! Form::label('loanAmount', 'Loan Amount:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('loanAmount', null, ['class'=>'form-control', 'id' => 'loanAmount']) !!}

{!! Form::label('phase', 'Phase:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('phase', null, ['class'=>'form-control', 'id' => 'phase']) !!}

{!! Form::label('cycle', 'Cycle:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('cycle', null, ['class'=>'form-control', 'id' => 'cycle']) !!}

{!! Form::label('repaymentFrequency', 'Repayment Frequency:', ['class' => 'col-sm-4 control-label']) !!}
@php $monthArray = array(''=>'Select Duration','1'=>'1 month','2'=>'2 months','3'=>'3 months','4'=>'4 months','5'=>'5 months','6'=>'6 months','7'=>'7 months','8'=>'8 months','9'=>'9 months','10'=>'10 months','11'=>'11 months','12'=>'12 months'); @endphp {!! Form::select('repaymentFrequency', $monthArray,null, ['class'=>'form-control', 'id' => 'repaymentFrequency']) !!}

{!! Form::label('loanDuration', 'Loan Duration (Month):', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('loanDuration', null, ['class'=>'form-control', 'id' => 'loanDuration']) !!}

{!! Form::label('gracePeriod', 'Grace Period (Month):', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('gracePeriod', null, ['class'=>'form-control', 'id' => 'gracePeriod']) !!}

{!! Form::label('numOfInstallment', 'Number Of Installment:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('numOfInstallment', null, ['class'=>'form-control', 'id' => 'numOfInstallment']) !!}

{!! Form::label('status', 'Status:', ['class' => 'col-sm-4 control-label']) !!}
@php $statusArray = array(''=>'Select Status','1'=>'Activate','0'=>'Deactivate'); @endphp {!! Form::select('status', $statusArray,1, ['class'=>'form-control', 'id' => 'status']) !!}

{{-- End of 2nd coloum --}}


{!! Form::button('Create Schedule', ['id' => 'createSchedule', 'class' => 'btn btn-info','type'=>'button']) !!}


Installment No Installment Date Principal Amount (Tk) Interest Amount (Tk) Total Amount (Tk)


{!! Form::button('Submit', ['id' => 'submitButton', 'class' => 'btn btn-info','type'=>'button','disabled']) !!} Close
{!! Form::close() !!} {{-- ////////////////////////////// --}}