@extends('layouts.app') @section('title', 'Pending Loans') @section('content')
Filter & Search Loans
Clear
@if(Auth::user()->hasPermission('loans.approve', 'approve'))
@csrf
@endif @if(Auth::user()->hasPermission('loans.reject', 'reject'))
@csrf
@endif 0 loans selected
@if(Auth::user()->hasPermission('loans.view')) Export CSV Export PDF @endif
Pending Loan Applications
{{ $loans->total() }}
@forelse($loans as $loan) @empty @endforelse
LOAN NUMBER CLIENT AMOUNT STATUS INTEREST RATE DURATION MONTHLY PAYMENT TOTAL REPAYMENT PURPOSE TYPE APPLICATION DATE ACTIONS
{{ $loan->loan_number }}
{{ $loan->client->first_name }} {{ $loan->client->last_name }}
{{ $loan->client->client_number }}
${{ number_format($loan->amount, 2) }} @if($loan->status == 'pending') Pending @elseif($loan->status == 'rejected') Rejected @elseif($loan->status == 'waiting') Waiting @else {{ ucfirst($loan->status) }} @endif {{ number_format($loan->interest_rate, 2) }}% {{ $loan->duration_months }} months ${{ number_format($loan->monthly_payment, 2) }} ${{ number_format($loan->total_repayment, 2) }} {{ $loan->purpose }} {{ ucfirst($loan->loan_type) }} {{ $loan->application_date->format('M d, Y') }}
@if($loan->status === 'pending') @if(Auth::user()->hasPermission('loans.approve', 'approve'))
@csrf
@endif @if(Auth::user()->hasPermission('loans.reject', 'reject')) @endif @if(Auth::user()->hasPermission('loans.wait', 'wait')) @endif @elseif($loan->status === 'waiting') @if(Auth::user()->hasPermission('loans.approve', 'approve'))
@csrf @method('PUT')
@endif @elseif($loan->status === 'rejected') @if(Auth::user()->hasPermission('loans.delete'))
@csrf @method('DELETE')
@endif @endif

No pending loan applications found

All loan applications have been processed or there are no applications matching your filters.

@if(request()->hasAny(['search', 'loan_type', 'min_amount', 'max_amount', 'start_date', 'end_date'])) Clear Filters @endif
@if($loans->hasPages())
Showing {{ $loans->firstItem() }} to {{ $loans->lastItem() }} of {{ $loans->total() }} loans
{{ $loans->appends(request()->query())->links() }}
@endif
@endsection