@extends('layouts/microfin_layout') @section('title', '| Application Form') @section('content') @include('microfin.savings.stack') @stack('formStyleScript')
{{ $title }}
{!! Form::open(['url' => '', 'role' => 'form', 'class' => 'form-horizontal form-groups', 'id' => 'rootwizard']) !!} {!! Form::hidden('applicationId', $application->id) !!}
{!! Form::label('member', 'Member:', ['class' => 'col-sm-4 control-label required']) !!}
{!! Form::text('member', $application->memberName, [ 'class' => 'form-control', 'type' => 'text', $application->id > 0 ? 'disabled' : null ]) !!}
{!! Form::label('accountOpeningDate', 'Account Opening Date:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('accountOpeningDate', date('d-m-Y', strtotime($application->accountOpeningDate)), [ 'class' => 'form-control', 'type' => 'text', 'disabled' => 'disabled' ]) !!}
{!! Form::label('accountId', 'Savings Code:', ['class' => 'col-sm-4 control-label required']) !!}
{!! Form::text('accountId', $application->savingsCode, [ 'class' => 'form-control', 'type' => 'text', 'disabled' => 'disabled' ]) !!}
{!! Form::label('totalSavingInterestAmount', 'Total Savings Interest:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('totalSavingInterestAmount', number_format($accountBalance['totalInterestAmount'], 2), [ 'class' => 'form-control', 'readonly' => 'readonly' ]) !!}
{!! Form::label('totalRefundAmount', 'Total Refund Amount:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text( 'totalRefundAmount', number_format( $accountBalance['totalInterestAmount'] + $accountBalance['balance'] + $accountBalance['balanceInterest'], 2 ), [ 'class' => 'form-control', 'readonly' => 'readonly' ] ) !!}
{!! Form::label('closingDate', 'Application Date:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('closingDate', $application->applicationDate, [ 'class' => 'form-control', 'readonly' => 'readonly' ]) !!}
{!! Form::label('paymentMode', 'Payment Mode:', ['class' => 'col-sm-4 control-label required']) !!}
{!! Form::select('paymentMode', ['Cash' => 'Cash', 'Bank' => 'Bank', 'mobile_banking' => 'MFS'], $application->paymentMode, [ 'class' => 'form-control', 'disabled' => 'disabled' ]) !!}
{!! Form::label('bankAccountId', 'Member Bank Account:', ['class' => 'col-sm-4 control-label required']) !!}
{!! Form::select('bankAccountId', ['' => 'Select'] +$memberBankAccounts , @$application->bankAccountId, [ 'class' => 'form-control', 'disabled' => 'disabled' ]) !!}
{!! Form::label('savingsCertificate', 'Upload Certificate:', ['class' => 'col-sm-4 control-label required']) !!}
@if ($application->savingsCertificate) Show Uploaded Document @else N/A @endif
{!! Html::decode( Form::label('othersDoc', "Upload Other's Document(Optional):", [ 'class' => 'col-sm-4 control-label' ]) ) !!}
@if ($application->othersDoc) Show Uploaded Document @else N/A @endif
@stack('savingsAccountBalance')
{!! Form::label('remarks', 'Remarks:', ['class' => 'control-label']) !!} (Optional) {!! Form::textarea('remarks', null, [ 'class' => 'form-control mini_textarea', 'placeholder' => 'Write something here...' ]) !!}
    {!! Form::button('Reject', ['id' => 'reject', 'class' => 'btn btn-danger']) !!} {{-- @if ($application->originStepNo != $application->currenStepNo && $application->currenStepNo > 1) --}} {!! Form::button('Return', ['id' => 'return', 'class' => 'btn btn-warning']) !!} {{-- @endif --}} {!! Form::submit('Approve', ['id' => 'submit', 'class' => 'btn btn-info']) !!}
@include('gnr.tools.approvalConfig.approvalLogs')
{!! Form::close() !!}
@stack('memberSearch') @stack('formJavaScript') @endsection