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

Loan Application 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('authStatus', 'Application Status:', ['class' => 'control-label']) !!} {!! Form::select( 'authStatus', ['' => 'Select'] + $authStatus, request()->all('authStatus')['authStatus'] ?? '', ['class' => 'form-control', 'id' => '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('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 Branch Loan Product Loan Period Loan Purpose Approved Loan Amount Entry By Application Date Application Status Action
{{ ($pageNo - 1) * 100 + ($key + 1) }} {{ $v->memberName }} {{ $v->memberCode }} {{ $v->branchName }} {{ $v->categoryName }} {{ $v->periodName }} {{ \Illuminate\Support\Str::words($v->loan_purpose_level_4, 4, $end='...') }} {{ number_format($v->loanAmount) }} {{ $v->entryBy }} {{ date('d-m-Y', strtotime($v->applicationDate)) }} {{ ucfirst(str_replace('_', ' ',$v->approvalStatus)) }} @if (in_array($v->authStatus, ['pending', 'returned'])) @endif @if ($v->isAllowForward) @endif @if($v->isAllowUnapproved) @endif
{{ $loanApplications->appends(request()->input())->links() }}
@endsection {{-- Delete Modal --}} {{-- End Delete Modal --}}