@extends('layouts/microfin_layout') @section('title', '| Loan Payment Request List') @section('content') @php $pageNo = isset($_GET['page']) ? (int) $_GET['page'] : 1; @endphp

Loan Payment Request List

{!! Form::open([ 'url' => Request::url(), 'role' => 'form', 'class' => 'form-horizontal form-groups', 'id' => 'filterFormId', 'method' => 'get', ]) !!}
@if (count($branchList) > 1)
{!! Form::label('branchId', 'Branch:', ['class' => 'control-label']) !!} {!! Form::select('branchId', ['' => 'Select'] + $branchList, request()->all('branchId')['branchId'] ?? '', [ 'class' => 'form-control', 'id' => 'branchId', ]) !!}
@endif
{!! Form::label('samityId', 'Samity:', ['class' => 'control-label']) !!} {!! Form::select('samityId', ['' => 'Select'] + $samity, request()->all('samityId')['samityId'] ?? '', [ 'class' => 'form-control', 'id' => 'samityId', ]) !!}
{!! Form::label('loanTypeId', 'Loan Type:', ['class' => 'control-label']) !!} {!! Form::select( 'loanTypeId', ['' => 'Select'] + $loanProductTypes, request()->all('loanTypeId')['loanTypeId'] ?? '', [ 'class' => 'form-control', 'id' => 'loanTypeId', ]) !!}
{!! Form::label('productIdFk', 'Loan Product:', ['class' => 'control-label']) !!} {!! Form::select( 'productIdFk', ['' => 'Select'] + $loanProducts, request()->all('productIdFk')['productIdFk'] ?? '', [ 'class' => 'form-control', 'id' => 'productIdFk', ]) !!}
{!! Form::label('dateFrom', 'Date From:', ['class' => 'control-label']) !!} {!! Form::text('dateFrom', request()->all('dateFrom')['dateFrom'] ?? '', [ 'class' => 'form-control datepicker', 'id' => 'dateFrom', 'type' => 'text', 'readonly' => 'readonly', ]) !!}
{!! Form::label('dateTo', 'Date To:', ['class' => 'control-label']) !!} {!! Form::text('dateTo', request()->all('dateTo')['dateTo'] ?? '', [ 'class' => 'form-control datepicker', 'id' => 'dateTo', 'type' => 'text', 'readonly' => 'readonly', ]) !!}
{!! Form::label('paymentReq_authStatus', 'Request Status:', ['class' => 'control-label']) !!} {!! Form::select( 'paymentReq_authStatus', ['' => 'Select'] + $paymentReq_authStatus, request()->all('paymentReq_authStatus')['paymentReq_authStatus'] ?? '', ['class' => 'form-control', 'id' => 'paymentReq_authStatus'] ) !!}
{!! Form::label('memberCode', 'Member Code:', ['class' => 'control-label']) !!} {!! Form::text('memberCode', request()->all('memberCode')['memberCode'] ?? '', [ 'id' => 'memberCode', 'class' => 'form-control', 'autocomplete' => 'off', ]) !!}
{!! Form::label('processPayment', 'Payment Process:', ['class' => 'control-label']) !!} {!! Form::select( 'processPayment', ['' => 'Select'] + $processPayments, request()->all('processPayment')['processPayment'] ?? '', ['class' => 'form-control', 'id' => 'processPayment'] ) !!}
{!! Form::label('nidStatus', 'Nid Status:', ['class' => 'control-label']) !!} {!! Form::select( 'nidStatus', ['' => 'Select'] + $nidStatus, request()->all('nidStatus')['nidStatus'] ?? '', ['class' => 'form-control', 'id' => 'nidStatus'] ) !!}
{{--
{!! Form::label('awatingForPayment', 'Awaiting Payment:', ['class' => 'control-label']) !!} {!! Form::select( 'awatingForPayment', ['' => 'Select'] + $awatingForPayment, request()->all('awatingForPayment')['awatingForPayment'] ?? '', ['class' => 'form-control', 'id' => 'awatingForPayment'] ) !!}
--}}
{!! Form::label('submit', ' ', ['class' => 'control-label']) !!} {!! Form::submit('Search', ['id' => 'submit', 'class' => 'form-control btn btn-search']) !!}
{!! Form::close() !!} {{-- --}} @foreach ($loanApplications as $key => $v) {{-- --}} @endforeach
SL NO Member Name Member Code Nid Status Branch Loan Product Loan Period Loan Purpose Approved Loan AmountEntry ByRequest Date Request Status Action
{{ ($pageNo - 1) * 100 + ($key + 1) }} {{ $v->memberName }} {{ $v->memberCode }} {{ ucwords($v->nidStatus) }} {{ $v->branchName }} {{ $v->categoryName }} {{ $v->periodName }} {{ \Illuminate\Support\Str::words($v->loan_purpose_level_4, 4, $end='...') }} {{ number_format($v->loanAmount) }} {{ $v->entryBy }}{{ $v->paymentReqDate ? date('d-m-Y H:i A', strtotime($v->paymentReqDate)) : 'N/A' }} {{ ucfirst(str_replace('_', ' ',$v->paymentReq_approvalStatus)) }} @if($v->isAllowPaymentRequest) @endif @if ($v->isAllowForward) @endif @if($v->isAllowDisburse) @endif {{-- @if($v->authStatus == 'approved') @if(Auth()->user()->branchId == 1 && !$isLogedUserStep) @endif @endif --}} @if($v->isAllowToProcessPayment) @endif @if($v->isAllowSendToPending) @endif
{{ $loanApplications->appends(request()->input())->links() }}
@endsection {{-- Process to Payment (Start) --}} {{-- Process to Payment (End) --}}