@extends('layouts/microfin_layout') @if(isset($isInterest) && $isInterest) @section('title', '| OTS Interest Payment') @else @section('title', '| Add Withdraw') @endif @section('content') @php use \App\Http\Controllers\microfin\savings\MfnSavingsWithdrawController as createForm; if(isset($isInterest) && $isInterest) { $prinDisplay = "none"; $intDisplay = "show"; } else { $prinDisplay = "show"; $intDisplay = "none"; } @endphp
@if(isset($isInterest) && $isInterest) OTS PAYMENT LIST @else Withdraw List @endif
@if(isset($isInterest) && $isInterest)
OTS Interest Payment
@else
New Withdraw
@endif
{!! 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']) !!} @if(Auth::user()->branchId==1) {!! createForm::select('branch', $branchList,null,'Branch:',['id'=>'branch']) !!} @endif {!! createForm::text('member','','Member:',['id'=>'member','autocomplete'=>'off']) !!} {!! createForm::select('savingsCode',[''=>'Select'],null,'Savings Code:',['id'=>'savingsCode','autocomplete'=>'off']) !!} {!! createForm::text('transactionDate',$softwareDate,'Transaction Date:',['id'=>'transactionDate','autocomplete'=>'off','readonly'=>'readonly']) !!} {!! 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']) !!}
{!! Form::label('actualSavingsAmount', 'Withdraw Principal Amount:', ['class' => 'col-sm-4 control-label']) !!}
{{-- -------------------//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////---------------------------------- --}} @if($moneyRecNoType == 'manual') {!! createForm::text('moneyRecNo','','Money Receipt No:',['id'=>'moneyRecNo','autocomplete'=>'off']) !!} @endif {{-- --------------------------/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--------------------------- --}}
{!! Form::label('withdrawInterestAmount', 'Withdraw Interest Amount:', ['class' => 'col-sm-4 control-label']) !!}
{{-- End First Column --}} {{-- Second Coloum --}}
{{-- {!! createForm::text('authorizedDeposit','','Authorized Deposit:',['id'=>'authorizedDeposit','autocomplete'=>'off','readonly'=>'readonly']) !!} --}}
{{-- {!! createForm::text('unauthorizedDeposit','','Unauthorized Deposit:',['id'=>'unauthorizedDeposit','autocomplete'=>'off','readonly'=>'readonly']) !!} --}}
{{-- {!! createForm::text('totalDeposit','','Total Deposit:',['id'=>'totalDeposit','autocomplete'=>'off','readonly'=>'readonly']) !!} --}}
{{-- {!! createForm::text('authorizedWithdraw','','Authorized Withdraw:',['id'=>'authorizedWithdraw','autocomplete'=>'off','readonly'=>'readonly']) !!} --}}
{{-- {!! createForm::text('unauthorizedWithdraw','','Unauthorized Withdraw:',['id'=>'unauthorizedWithdraw','autocomplete'=>'off','readonly'=>'readonly']) !!} --}}
{{-- {!! createForm::text('totalWithdraw','','Total Withdraw:',['id'=>'totalWithdraw','autocomplete'=>'off','readonly'=>'readonly']) !!} --}}
{{-- {!! createForm::text('balance','','Balance:',['id'=>'balance','autocomplete'=>'off','readonly'=>'readonly']) !!} --}}
{{-- 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; $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