@extends('layouts.portal') @section('title', 'View KYC Documents') @section('page_title', 'My KYC Documents') @section('page_subtitle', 'View your uploaded identity and address documents') @section('sidebar') @include('client.partials.sidebar', ['active' => 'dashboard']) @endsection @section('content')

My KYC Documents

These documents were uploaded by our staff.

Back to Dashboard
@if($existingKycDocuments->isNotEmpty())
@foreach($existingKycDocuments as $document)

{{ ucfirst(str_replace('_', ' ', $document->document_type)) }}

{{ $document->uploaded_at ? $document->uploaded_at->format('d M Y') : 'N/A' }}

Source: {{ ucfirst($document->source ?? 'Client') }}

@if($document->file_path)
@php $fileExtension = strtolower(pathinfo($document->file_path, PATHINFO_EXTENSION)); $isImage = in_array($fileExtension, ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp']); $isPdf = $fileExtension === 'pdf'; @endphp @if($isImage)
{{ ucfirst(str_replace('_', ' ', $document->document_type)) }}
@elseif($isPdf)
@else

Preview not available for this file type

File: {{ $fileExtension }}

@endif
Download Document @if($isImage) @endif
@endif
@endforeach
@else

No KYC documents uploaded yet.

@endif
@endsection