@extends('layouts/microfin_layout') @section('title', '| Add Transaction') @section('content') @php use \App\Http\Controllers\microfin\savings\MfnSavingsDepositTypeController as createForm; @endphp
New One Time Loan Transaction
{!! Form::open(array('url' => '', 'role' => 'forl', 'id' => 'rootwizard', 'class' => 'form-horizontal form-groups', 'novalidate' => '')) !!}
{!! 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('loanId',[''=>'Select'],null,'Loan Id:',['id'=>'loanId','autocomplete'=>'off']) !!} {!! createForm::text('transactionDate',$softwareDate,'Transaction Date:',['id'=>'transactionDate','autocomplete'=>'off','readonly'=>'readonly','style'=>'cursor:pointer']) !!} {!! createForm::select('paymentType',['Cash'=>'Cash','Bank'=>'Bank'],null,'Payment Type:',['id'=>'paymentType','autocomplete'=>'off']) !!}
{!! Form::label('bank', 'Bank:', ['class' => 'col-sm-4 control-label']) !!}
{!! createForm::text('chequeNumber','','Cheque Number:',['id'=>'chequeNumber','autocomplete'=>'off']) !!}
@if ($dayBasisInterestCalculation == false) {!! createForm::text('transactionAmount','','Transaction Amount:',['id'=>'transactionAmount','autocomplete'=>'off']) !!} {{-- -------------------//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////---------------------------------- --}} @if($moneyRecNoType == 'manual') {!! createForm::text('moneyRecNo','','Money Receipt No:',['id'=>'moneyRecNo','autocomplete'=>'off']) !!} @endif {{-- --------------------------/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--------------------------- --}} {!! createForm::text('principalAmount','','Principal Amount:',['id'=>'principalAmount','autocomplete'=>'off','readonly'=>'readonly']) !!} {!! createForm::text('interestAmount','','Interest Amount:',['id'=>'interestAmount','autocomplete'=>'off','readonly'=>'readonly']) !!} @else {{-- -------------------//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////---------------------------------- --}} @if($moneyRecNoType == 'manual') {!! createForm::text('moneyRecNo','','Money Receipt No:',['id'=>'moneyRecNo','autocomplete'=>'off']) !!} @endif {{-- --------------------------/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--------------------------- --}} {!! createForm::text('principalAmount','','Principal Amount:',['id'=>'principalAmount','autocomplete'=>'off','readonly'=>'readonly']) !!} {!! createForm::text('interestAmount','','Interest Amount:',['id'=>'interestAmount','autocomplete'=>'off','readonly'=>'readonly']) !!} {!! createForm::text('transactionAmount','','Transaction Amount:',['id'=>'transactionAmount','autocomplete'=>'off']) !!} @endif
{{-- End First Column --}} {{-- Second Coloum --}}
{!! createForm::text('principalCollection','','Principal Collection:',['id'=>'principalCollection','autocomplete'=>'off','readonly'=>'readonly']) !!} {!! createForm::text('interestCollection','','Interest Collection:',['id'=>'interestCollection','autocomplete'=>'off','readonly'=>'readonly']) !!} {!! createForm::text('dueAmount','','Due Amount:',['id'=>'dueAmount','autocomplete'=>'off','readonly'=>'readonly']) !!} {!! createForm::text('advanceAmount','','Advance Amount:',['id'=>'advanceAmount','autocomplete'=>'off','readonly'=>'readonly']) !!} {!! createForm::text('outStanding','','Principal Outstanding:',['id'=>'outStanding','autocomplete'=>'off','readonly'=>'readonly']) !!} {!! createForm::text('interestOutStanding','','Interest Outstanding:',['id'=>'interestOutStanding','autocomplete'=>'off','readonly'=>'readonly']) !!} {!! Form::hidden('principalOutStandingHidden',null,['id'=>'principalOutStandingHidden']) !!} {!! Form::hidden('interestOutStandingHidden',null,['id'=>'interestOutStandingHidden']) !!} {!! createForm::text('installmentNo','','Installment No:',['id'=>'installmentNo','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 $memberIds = implode(',', DB::table('mfn_loan') ->where('softDel',0) ->where('loanTypeId',2) ->where('loanCompletedDate', '0000-00-00') ->where('branchIdFk',Auth::user()->branchId) ->pluck('memberIdFk') ->toArray() ); if (empty($memberIds)) { $memberIds = "0"; } $members = DB::table('mfn_member_information') ->where('softDel',0) ->where('status',1) ->where('branchId',Auth::user()->branchId) ->where('admissionDate','<=',$softDate) // ->whereIn('id',$memberIds) ->whereRaw("id in($memberIds)") ->select('id','name','code','branchId','samityId') ->get(); @endphp @endsection