@extends('layouts/microfin_layout') @section('title', '| Application Form') @section('content') @include('microfin.savings.stack') @stack('formStyleScript')
@if (@$application->id > 0) Edit @else Add @endif OTS Close Application
{!! Form::open(['url' => '', 'role' => 'form', 'class' => 'form-horizontal form-groups', 'id' => 'rootwizard']) !!} {!! Form::hidden('memberId', @$application->memberId, ['id' => 'memberId']) !!} {!! Form::hidden('editId', @$application->id) !!}
@if (count($branchList) > 1)
{!! Form::label('branch', 'Branch:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::select('branchId', ['' => 'Select'] + $branchList, null, [ 'class' => 'form-control', 'id' => 'branch' ]) !!}
@endif
{!! Form::label('member', 'Member:', ['class' => 'col-sm-4 control-label required']) !!}
{!! Form::text('member', @$application->memberName, [ 'class' => 'form-control', 'id' => 'member', 'type' => 'text', 'data-validate' => 'required', 'autocomplete' => 'off', @$application->id > 0 ? 'disabled' : null ]) !!}
{!! Form::label('accountId', 'Savings Code:', ['class' => 'col-sm-4 control-label required']) !!}
{!! Form::select( 'accountId', isset($accounts) ? ['' => 'Select'] + $accounts : ['' => 'Select'], @$application->accountId, [ 'class' => 'form-control', 'id' => 'accountId' ] ) !!}
{!! Form::label('totalSavingInterestAmount', 'Total Savings Interest:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('totalSavingInterestAmount', 0, [ 'id' => 'totalSavingInterestAmount', 'autocomplete' => 'off', 'class' => 'form-control', 'readonly' => 'readonly' ]) !!}
{!! Form::label('totalRefundAmount', 'Total Refund Amount:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('totalRefundAmount', 0, [ 'id' => 'totalRefundAmount', 'autocomplete' => 'off', 'class' => 'form-control', 'readonly' => 'readonly' ]) !!}
{!! Form::label('closingDate', 'Closing Date:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('closingDate', null, [ 'id' => 'closingDate', 'autocomplete' => 'off', 'class' => 'form-control', 'readonly' => 'readonly' ]) !!}
{!! Form::label('paymentMode', 'Member Payment Mode:', ['class' => 'col-sm-4 control-label required']) !!}
{!! Form::select('paymentMode', ['' => 'Select', 'Cash' => 'Cash', 'Bank' => 'Bank', 'mobile_banking' => 'MFS'], @$application->paymentMode, [ 'class' => 'form-control', 'id' => 'paymentMode' ]) !!}
{!! Form::label('bankAccountId', 'Member Bank Account:', ['class' => 'col-sm-4 control-label required']) !!}
{!! Form::select('bankAccountId',(@$memberBankAccounts) ? ['' => 'Select'] +$memberBankAccounts : ['' => 'Select'] , @$application->bankAccountId, [ 'class' => 'form-control', (@$application->paymentMode == 'Cash') ? 'disabled' : null ]) !!}
{!! Form::label('savingsCertificate', 'Upload Certificate:', ['class' => 'col-sm-4 control-label required']) !!}
{!! Form::file('savingsCertificate', ['class' => 'form-control', 'id' => 'savingsCertificate']) !!} @if (@$application->savingsCertificate) Show Uploaded Document @endif
{!! Html::decode( Form::label('othersDoc', "Upload Other's Document(Optional):", [ 'class' => 'col-sm-4 control-label' ]) ) !!}
{!! Form::file('othersDoc', ['class' => 'form-control', 'id' => 'othersDoc']) !!} @if (@$application->othersDoc) Show Uploaded Document @endif
@stack('savingsAccountBalance') {{-- @stack('savingsAccountBalance') --}}
    {!! Form::submit('Submit', ['id' => 'submit', 'class' => 'btn btn-info']) !!} {{-- @if(!isset($application->id)) {!! Form::submit('Submit & Continue', ['id' => 'submitAndContinue', 'class' => 'btn btn-info']) !!}@endif --}}






{!! Form::close() !!}
@stack('memberSearch') @stack('formJavaScript') @endsection