@extends('layouts/microfin_layout') @section('title', $title) @section('content') @include('microfin.loan.stack') @stack('formStyleScript')
{{ $title }}
{!! 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']) !!}
{!! 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;', ]) !!}
{!! 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']) !!} @if ($loanApplication->mortgageDoc) Show Uploaded Document @endif
{!! Form::label('mortgageSavingsAccounts', 'Mortgage Savings Account(s):', [ 'class' => 'control-label required', ]) !!} {!! Form::text('mortgageSavingsAccounts', $loanApplication->mortgageSavingsCodes, [ 'class' => 'form-control', 'id' => 'mortgageSavingsAccounts', 'autocomplete' => 'off', 'style' => 'height:0px;', 'placeholder' => $isNewLoanEditable ?? 'Type account code and select from dropdown.', ]) !!}
@stack('newLoanInformation') @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('Reject', ['id' => 'reject', 'class' => 'btn btn-danger']) !!} @if ($loanApplication->originStepNo != $loanApplication->currenStepNo && $loanApplication->currenStepNo > 1) {!! Form::button('Return', ['id' => 'return', 'class' => 'btn btn-warning']) !!} @endif {!! Form::submit('Approve', ['id' => 'submit', 'class' => 'btn btn-info']) !!}
@endif {!! Form::close() !!} @include('gnr.tools.approvalConfig.approvalLogs')
@endsection