@extends('layouts.admin') @section('title', 'KYC Details - ' . $kycVerification->user->full_name) @section('content')
{{ strtoupper(substr($kycVerification->user->first_name, 0, 1) . substr($kycVerification->user->last_name, 0, 1)) }}

{{ $kycVerification->user->full_name }}

{{ strtoupper($kycVerification->type) }} Verification

@if($kycVerification->status === 'pending') Pending Review @elseif($kycVerification->status === 'verified') Verified @elseif($kycVerification->status === 'failed') Failed @else Expired @endif Submitted {{ $kycVerification->created_at->diffForHumans() }}
@if($kycVerification->status === 'pending') @elseif($kycVerification->status !== 'pending')
@csrf
@endif @if($kycVerification->document_path) Download Document @endif

Verification Details

{{ strtoupper($kycVerification->type) }}

{{ $kycVerification->verification_id ?: 'Not provided' }}

{{ $kycVerification->provider ?: 'Manual Upload' }}

{{ $kycVerification->provider_reference ?: 'N/A' }}

{{ $kycVerification->created_at->format('M d, Y H:i') }}

@if($kycVerification->verified_at)

{{ $kycVerification->verified_at->format('M d, Y H:i') }}

@endif @if($kycVerification->expires_at)

{{ $kycVerification->expires_at->format('M d, Y') }}

@endif
@if($kycVerification->failure_reason)

Failure Reason

{{ $kycVerification->failure_reason }}

@endif
@if($kycVerification->verification_data)

Verification Data

{{ json_encode($kycVerification->verification_data, JSON_PRETTY_PRINT) }}
@endif @if($kycVerification->document_path)

Document

Document available for download

{{ basename($kycVerification->document_path) }}

@endif

User Information

{{ $kycVerification->user->email }}

{{ $kycVerification->user->phone }}

{{ $kycVerification->user->date_of_birth ? $kycVerification->user->date_of_birth->format('M d, Y') : 'Not provided' }}

{{ $kycVerification->user->address ?: 'Not provided' }}

{{ $kycVerification->user->created_at->format('M d, Y') }}

KYC History

@php $userKycs = $kycVerification->user->kycVerifications()->orderBy('created_at', 'desc')->get(); @endphp @if($userKycs->count() > 0)
@foreach($userKycs as $kyc)

{{ strtoupper($kyc->type) }}

{{ $kyc->created_at->format('M d, Y') }}

@if($kyc->status === 'pending') Pending @elseif($kyc->status === 'verified') Verified @elseif($kyc->status === 'failed') Failed @else Expired @endif
@if($kyc->id === $kycVerification->id)

Currently viewing

@endif
@endforeach
@else

No KYC history found.

@endif
@endsection