@include('microfin.loan.stack') @stack('memberInformation') @stack('savingsInformation') @stack('prevLoanInformation')

Mortgage Information
@if (isset($member))
{!! Form::label('isMortgage', 'Is Mortgage Allowed?:', ['class' => 'col-md-2 control-label required']) !!}
{!! Form::label('mortgageTypeId', 'Mortgage Type:', ['class' => 'control-label required']) !!} {!! Form::select('mortgageTypeId', $mortgageTypes, $loanApplication->mortgageTypeId, [ 'class' => 'form-control', 'id' => 'mortgageTypeId', ]) !!}
{!! Form::label('mortgageDate', 'Mortgage Date:', ['class' => 'control-label required']) !!} {!! Form::text('mortgageDate', $loanApplication->mortgageDate, [ 'class' => 'form-control', 'id' => 'mortgageDate', 'autocomplete' => 'off', 'readonly', 'style' => 'cursor:pointer;', ]) !!}
{!! Form::label('mortgageAmount', 'Mortgage Amount:', ['class' => 'control-label required']) !!} {!! Form::number('mortgageAmount', $loanApplication->mortgageAmount, [ 'class' => 'form-control', 'id' => 'mortgageAmount', 'autocomplete' => 'off', ]) !!}
{!! Form::label('mortgageDoc', 'Mortgage Document:', ['class' => 'control-label']) !!}
{!! Form::file('mortgageDoc', ['class' => 'form-control', 'id' => 'mortgageDoc']) !!} @if ($loanApplication->mortgageDoc) Show Uploaded Document @endif
@else

Please at first choose a member!
@endif

New Loan Requirement
@if (isset($member))
{!! Form::label('loanTypeId', 'Loan Type:', ['class' => 'col-md-2 control-label required']) !!}
@foreach ($loanProductTypes as $loanProductType) @endforeach
{{--
{!! Form::label('productCategoryId', 'Loan Product:', ['class' => 'control-label required']) !!} {!! Form::select( 'productCategoryId', ['' => 'Select Product'] + $loanCategories, $loanApplication->categoryIdFk, ['class' => 'form-control', 'id' => 'productCategoryId'] ) !!}
--}}
{!! Form::label('productIdFk', 'Loan Product:', ['class' => 'control-label']) !!} {!! Form::select('productIdFk', $eligibleProduct, $loanApplication->productIdFk ? $loanApplication->productIdFk : $member->primaryProductId, [ 'class' => 'form-control', 'disabled' => false, ]) !!}
{!! Form::label('loanAmount', 'Loan Amount:', ['class' => 'control-label required']) !!} {{-- min: {{ $minLoanAmount }}/-, max: {{ $maxLoanAmount }}/- --}} {!! Form::number('loanAmount', $loanApplication->loanAmount, [ 'class' => 'form-control', 'id' => 'loanAmount', 'autocomplete' => 'off', ]) !!}
{!! Form::label('loanPeriod', 'Loan Period:', ['class' => 'control-label required']) !!} {!! Form::select('loanPeriod', ['' => 'Select Period'] + $periods, $loanApplication->loanPeriod, [ 'class' => 'form-control', 'id' => 'loanPeriod', ]) !!}
{!! Form::label('purposeId', 'Loan Perpose:', ['class' => 'control-label required']) !!} {!! Form::select('purposeId', ['' => 'Select Perpose'] + $getEconomicPurposes, $loanApplication->purposeId, [ 'class' => 'form-control', 'id' => 'purposeId', ]) !!}
@else

Please at first choose a member!
@endif