@extends('layouts/microfin_layout') @section('title', $title) @section('content') @include('microfin.loan.stack') @stack('formStyleScript')
{{ $title }}
@if(isset($responseTitle) && $responseTitle == 'Warning!')
 

{{$responseText}}

@else
{!! Form::open(['url' => '#', 'role' => 'form', 'class' => 'form-horizontal form-groups', 'id' => 'rootwizard']) !!} {!! Form::hidden('edit_id', $loanApplication->id) !!} {!! Form::hidden('applicationId', $loanApplication->id) !!}
Member Information
{!! Form::label('member', 'Member:', ['class' => 'control-label required']) !!} {!! Form::text('memberIdFk', $loanApplication->memberName, [ 'class' => 'form-control', 'id' => 'member', 'type' => 'text', 'data-validate' => 'required', 'autocomplete' => 'off', 'disabled' => true, ]) !!}
@stack('memberInformation') @stack('savingsInformation') @stack('prevLoanInformation')

Mortgage Information
{!! Form::label('isMortgage', 'Is Mortgage Allowed?:', ['class' => 'col-md-2 control-label required']) !!}
@if($loanApplication->isMortgage)
{!! Form::label('mortgageTypeId', 'Mortgage Type:', ['class' => 'control-label required']) !!} {!! Form::select('mortgageTypeId', $mortgageTypes, $loanApplication->mortgageTypeId, [ 'class' => 'form-control', 'id' => 'mortgageTypeId', 'disabled' => true, ]) !!}
{!! 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;', 'disabled' => true, ]) !!}
{!! Form::label('mortgageAmount', 'Mortgage Amount:', ['class' => 'control-label required']) !!} {!! Form::number('mortgageAmount', $loanApplication->mortgageAmount, [ 'class' => 'form-control', 'id' => 'mortgageAmount', 'autocomplete' => 'off', 'disabled' => true, ]) !!}
{{--
{!! Form::label('mortgageDoc', 'Mortgage Document:', ['class' => 'control-label required']) !!}
@if ($loanApplication->mortgageDoc) Show Uploaded Document @else N.B: Not yet upload @endif
--}}
{!! Form::label('mortgageDoc', 'Mortgage Document:', ['class' => 'control-label']) !!}
{!! Form::file('mortgageDoc', [ 'class' => 'form-control', 'id' => 'mortgageDoc', 'disabled' => true, ]) !!} @if ($loanApplication->mortgageDoc) Show Uploaded Document @endif
@endif
@stack('newLoanInformation')

Payment Request
1) class="col-md-3" @else class="col-md-3 hidden" @endif> {!! Form::label('paymentMode', 'Member Disbursement Mode:', ['class' => 'control-label required']) !!} {!! Form::select('paymentMode', $paymentMode, $loanApplication->paymentMode, [ 'class' => 'form-control', 'id' => 'paymentMode', 'disabled' => true ]) !!}
{!! Form::label('bankAccountId', 'Member Bank Account:', ['class' => 'control-label required']) !!} {!! Form::select('bankAccountId',(@$memberBankAccounts) ? ['' => 'Select'] +$memberBankAccounts : ['' => 'Select'] , $loanApplication->bankAccountId, [ 'class' => 'form-control', 'id' => 'bankAccountId', 'disabled' => true ]) !!}
{!! Form::label('appFrontSide', 'Application Front Side:', ['class' => 'control-label required', 'title' => 'Upload Loan Application Form(Front Side)']) !!}
{!! Form::file('appFrontSide', [ 'class' => 'form-control', 'id' => 'appFrontSide', 'disabled' => true ]) !!} @if ($loanApplication->appFrontSide) Show Uploaded Document @endif
{!! Form::label('appBackSide', 'Application Back Side:', ['class' => 'control-label required', 'title' => 'Upload Loan Application Form(Back Side)']) !!}
{!! Form::file('appBackSide', [ 'class' => 'form-control', 'id' => 'appBackSide', 'disabled' => true ]) !!} @if ($loanApplication->appBackSide) Show Uploaded Document @endif
@if($action_type == 'forward')
{!! Form::label('remarks', 'Remarks:', ['class' => 'control-label']) !!} (Optional) {!! Form::textarea('remarks', null, [ 'class' => 'form-control mini_textarea', 'placeholder' => 'Write something here...', ]) !!}
@endif
@if($action_type == 'forward')
    {!! Form::button('Return', ['id' => 'return', 'class' => 'btn btn-warning']) !!} {!! Form::submit('Approve', ['id' => 'submit', 'class' => 'btn btn-info']) !!}
@endif @if($action_type == 'create')
    {!! Form::submit('Submit to Payment Request', ['id' => 'paymentRequest', 'class' => 'btn btn-info']) !!}
@endif {!! Form::close() !!} @include('gnr.tools.approvalConfig.approvalLogs')
@endif
@endsection