@extends('admin.layouts.app') @section('title', 'Applications | PG Finsev') @section('page-title', 'Applications') @section( 'page-description', 'Manage and review client applications' ) @push('styles') @endpush @section('content')

Client Applications

Track application progress, KYC and payment status.

Total Applications
{{ $totalApplications }}
Registered client applications
Pending KYC
{{ $pendingKyc }}
Awaiting verification
KYC Verified
{{ $verifiedKyc }}
Verified applications
Payment Completed
{{ $paidApplications }}
Successfully paid
Search & Filter Applications
Reset

Applications

Showing {{ $applications->firstItem() ?? 0 }} - {{ $applications->lastItem() ?? 0 }} of {{ $applications->total() }}
@if($applications->count()) @foreach($applications as $application) @php /* |-------------------------------------------------------------------------- | Application data |-------------------------------------------------------------------------- */ $profile = $application->clientProfile; $kyc = $application->clientKyc; $employment = $application->clientEmployment; $payment = $application->payments ->sortByDesc('created_at') ->first(); /* |-------------------------------------------------------------------------- | Completion |-------------------------------------------------------------------------- */ $profileDone = $profile !== null; $kycDone = $kyc && $kyc->status === 'verified'; $employmentDone = $employment !== null; $paymentDone = $payment && $payment->status === 'paid'; $completed = 0; if ($profileDone) { $completed++; } if ($kycDone) { $completed++; } if ($employmentDone) { $completed++; } if ($paymentDone) { $completed++; } $progress = round( ($completed / 4) * 100 ); @endphp @endforeach
Client Application KYC Payment Employment Progress Action
{{ strtoupper( substr( $application->name, 0, 1 ) ) }}
{{ $application->name }} {{ $application->email }}
@if($profileDone) Started @else Not Started @endif @if( $kyc && $kyc->status === 'verified' ) Verified @elseif( $kyc && $kyc->status === 'rejected' ) Rejected @elseif($kyc) Pending @else Not Submitted @endif @if( $payment && $payment->status === 'paid' ) Paid @elseif( $payment && in_array( $payment->status, [ 'created', 'pending' ] ) ) Pending @elseif( $payment && in_array( $payment->status, [ 'failed', 'cancelled', 'cancelled_by_user' ] ) ) Failed @else Not Paid @endif @if($employmentDone) Completed @else Pending @endif
{{ $progress }}% Complete
View
@else
No applications found.
@endif
@if($applications->hasPages())
Page {{ $applications->currentPage() }} of {{ $applications->lastPage() }}
{{ $applications->onEachSide(1)->links() }}
@endif
@endsection