@extends('layouts.user') @section('title', 'My Documents') @section('content') @php // Fetch user documents $personalDocs = \App\Models\PortalUserDoc::where('portal_user_id', $user->id)->get(); // Fetch professional documents from all user profiles $professionalDocs = \App\Models\PortalUserProfileDoc::whereHas('profile', function($q) use ($user) { $q->where('user_id', $user->id); })->with('profile.roleProfile')->get(); $totalPersonal = $personalDocs->count(); $totalProfessional = $professionalDocs->count(); $totalDocs = $totalPersonal + $totalProfessional; @endphp

My Documents

Manage all your personal and professional documents
Back to Dashboard
Total Documents

{{ $totalDocs }}

Personal Documents

{{ $totalPersonal }}

Professional Documents

{{ $totalProfessional }}

Personal Documents
{{ $totalPersonal }}

Identity proof and personal identification documents

  • Aadhaar Card, PAN Card, Passport
  • Driving License, Voter ID
  • Birth Certificate & Photos
View Personal Documents
Professional Documents
{{ $totalProfessional }}

Belt certificates and role-specific professional documents

  • IT Belt Certificates
  • Coach Certifications
  • Professional Licenses
View Professional Documents
@endsection