@extends('layouts/microfin_layout') @section('title', '| Add Closing') @section('content') @php use \App\Http\Controllers\microfin\savings\MfnSavingsClosingController as createForm; @endphp
New Closing
{!! Form::open(array('url' => '', 'role' => 'forl', 'id' => 'rootwizard', 'class' => 'form-horizontal form-groups', 'novalidate' => '')) !!} {{--
--}}
{{--
Member
--}}
{!! Form::hidden('memberId',null,['id'=>'memberId']) !!} {!! Form::hidden('branchId',null,['id'=>'branchId']) !!} {!! Form::hidden('samityId',null,['id'=>'samityId']) !!} {!! Form::hidden('workingAreaId',null,['id'=>'workingAreaId']) !!} {!! createForm::text('member','','Member:',['id'=>'member','autocomplete'=>'off']) !!} {!! createForm::select('savingsCode',[''=>'Select'],null,'Savings Code:',['id'=>'savingsCode','autocomplete'=>'off']) !!}
{!! createForm::text('depositAmount','','Deposit Amount:',['id'=>'depositAmount','autocomplete'=>'off','readonly'=>'readonly']) !!} {!! createForm::text('payableAmount','','Payable Amount:',['id'=>'payableAmount','autocomplete'=>'off','readonly'=>'readonly']) !!}
{!! createForm::text('totalSavingInterestAmount','0','Total Saving Interest:',['id'=>'totalSavingInterestAmount','autocomplete'=>'off'])!!} {!! createForm::text('adjustment_amount','0','Adjustment Interest:',['id'=>'adjustment_amount','autocomplete'=>'off', 'readonly' => 'readonly'])!!} {!! createForm::text('deductInterest','0','Deduct Generate Interest:',['id'=>'deductInterest','autocomplete'=>'off', 'readonly'=>'readonly']) !!} {!! createForm::text('totalRefundAmount','0','Total Refund Amount:',['id'=>'totalRefundAmount','autocomplete'=>'off', 'readonly'=>'readonly']) !!} {{-- -------------------//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////---------------------------------- --}} @if($moneyRecNoType == 'manual') {!! createForm::text('moneyRecNo','','Money Receipt No:',['id'=>'moneyRecNo','autocomplete'=>'off']) !!} @endif {{-- --------------------------/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--------------------------- --}} {!! createForm::text('closingDate',null,'Closing Date:',['id'=>'closingDate','autocomplete'=>'off','readonly'=>'readonly','style'=>'cursor:pointer']) !!} {!! createForm::select('paymentMode',['Cash'=>'Cash','Bank'=>'Bank'],null,'Mode of Payment:',['id'=>'paymentMode','autocomplete'=>'off']) !!}
{!! Form::label('bank', 'Bank:', ['class' => 'col-sm-4 control-label']) !!}
{!! createForm::text('chequeNumber','','Cheque Number:',['id'=>'chequeNumber','autocomplete'=>'off']) !!}
{{-- {!! createForm::text('amount','','Amount:',['id'=>'amount','autocomplete'=>'off']) !!} --}} {!! createForm::text('matured_text','N/A','Matured Status:',['id'=>'matured_text','autocomplete'=>'off', 'readonly'=>'readonly']) !!}
{{-- End First Column --}} {{-- Second Coloum --}}
{{-- End Second Coloum --}}
    {!! Form::submit('Submit', ['id' => 'submit', 'class' => 'btn btn-info'])!!} {!! Form::submit('Submit & Continue', ['id' => 'submitAndContinue', 'class' => 'btn btn-info']) !!} {{-- -----------------------////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////-------------------------- --}} @if($isMoneyReceiptPrintAllow == 1) {!! Form::submit('Submit & Print', ['id' => 'submitAndPrint', 'class' => 'btn btn-info']) !!} @endif {{-- --------------------------////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////----------------------- --}}
{!! Form::close() !!}
@php $userBranchId = Auth::user()->branchId; if ($userBranchId==1) { $members = []; } else{ $members = DB::table('mfn_member_information')->where('softDel',0)->where('status',1)->where('branchId',$userBranchId)->where('admissionDate','<=',$softDate) ->selectRaw('id, name, CASE WHEN (oldMemberCode IS NULL OR oldMemberCode = "") THEN code ELSE CONCAT(code, " [ ", oldMemberCode, " ]") END as code, branchId, samityId') ->get(); } @endphp @endsection