@extends('layouts.admin') @section('title', "Candidate Profile: {$candidate->name}") @section('page-title', "Candidate Profile: {$candidate->name}") @section('content')
@if($profile && $profile->photo_path) {{ $candidate->name }} @else
{{ strtoupper(substr($candidate->name, 0, 1)) }}
@endif

{{ $candidate->name }}

@if($candidate->status === 'active') Active Candidate @elseif($candidate->status === 'suspended') Suspended Account @endif @if($candidate->isExpired()) Registration Expired @elseif($candidate->isRenewalEligible()) Renewal Due @endif
{{ $candidate->registration_id ?? 'No Reg ID' }} {{ $candidate->email }} {{ $candidate->phone ?? 'Not provided' }} {{ $profile?->district ?? $candidate->assigned_district ?? 'Maharashtra' }}
Back to Registry @if($candidate->status === 'active')
@csrf
@else
@csrf
@endif
@if($candidate->status === 'suspended' && $candidate->status_reason)
Suspension Reason: {{ $candidate->status_reason }}
@endif
MahaSwayam Profile Completion {{ $candidate->profile_completion ?? ($profile ? $profile->calculateCompletionPercentage() : 0) }}%
Registration Date: {{ $candidate->registration_date ? $candidate->registration_date->format('d M Y') : 'N/A' }} • Valid Until: {{ $candidate->expiry_date ? $candidate->expiry_date->format('d M Y') : 'N/A' }}

Aadhaar KYC Authentication

@if($profile && ($profile->aadhaar_verified_at || $profile->is_aadhaar_verified)) Authenticated @else Pending KYC @endif
UIDAI Aadhaar Number @if($profile && $profile->aadhaar_last4) XXXX-XXXX-{{ $profile->aadhaar_last4 }} @else Not Submitted @endif
Verification Timestamp {{ $profile?->aadhaar_verified_at ? $profile->aadhaar_verified_at->format('d M Y, h:i A') : 'Pending' }}
OTP Verification Protocol Verhoeff Validated (SMS OTP)
Cryptographic Hash Storage {{ $profile?->aadhaar_hash ? substr($profile->aadhaar_hash, 0, 14) . '...' : 'N/A' }}

Personal Details

Category: {{ $profile?->category ?? 'General' }}
Date of Birth / Age {{ $profile?->dob ? $profile->dob->format('d M Y') . ' (' . $profile->dob->age . ' yrs)' : 'N/A' }}
Gender {{ ucfirst($profile?->gender ?? 'Not specified') }}
Father's Name {{ $profile?->father_name ?? 'N/A' }}
Mother's Name {{ $profile?->mother_name ?? 'N/A' }}
Marital Status {{ ucfirst($profile?->marital_status ?? 'Single') }}
Persons with Disability (PwD) @if($profile && $profile->is_disabled) {{ $profile->disability_type }} ({{ $profile->disability_percentage }}%) @else None / Not Applicable @endif

Domicile & Address

{{ $profile?->state ?? 'Maharashtra' }}
Permanent Address Line {{ $profile?->address_line ?? 'Not specified' }}
Taluka {{ $profile?->taluka ?? 'N/A' }}
District {{ $profile?->district ?? $candidate->assigned_district ?? 'N/A' }}
PIN Code {{ $profile?->pincode ?? 'N/A' }}

Career Preferences

Preferred Sector / Industry {{ $profile?->preferred_sector ?? 'Any / General' }}
Preferred Location / District {{ $profile?->preferred_district ?? 'All Maharashtra' }}
Expected Salary Range (Monthly) @if($profile && ($profile->expected_salary_min || $profile->expected_salary_max)) ₹{{ number_format($profile->expected_salary_min ?? 0) }} - ₹{{ number_format($profile->expected_salary_max ?? 0) }} / month @else As per industry norms @endif

Educational Qualifications

@if($highestQualification) Highest: {{ $highestQualification->level }} ({{ $highestQualification->stream_degree }}) @endif
@forelse($profile?->qualifications ?? [] as $q) @empty @endforelse
Education Level Degree / Stream Board / University Year of Passing Percentage / CGPA Grade Certificate
{{ $q->level }} @if($highestQualification && $highestQualification->id === $q->id) Highest @endif {{ $q->stream_degree ?? 'General' }} {{ $q->board_university ?? 'Recognized Board / University' }} {{ $q->passing_year ?? 'N/A' }} {{ $q->percentage ? number_format($q->percentage, 2) . '%' : 'N/A' }} {{ $q->grade ?? 'Pass' }} @if($q->certificate_path) View Doc @else Self-Declared @endif
No academic qualification records found for this candidate.

Employment Applications Record

Total Applications: {{ $candidate->applications->count() }}
@forelse($candidate->applications as $app) @empty @endforelse
Applied Vacancy Hiring Enterprise Applied Date Pipeline Status Action
{{ $app->job?->title ?? $app->applied_role }} {{ $app->job?->department ?? 'General' }} • {{ $app->job?->location ?? 'Maharashtra' }} {{ $app->job?->employer?->name ?? 'Zhelhire Partner' }} {{ $app->created_at->format('d M Y, h:i A') }} @php $badgeColor = match($app->status) { 'shortlisted' => 'success', 'offered', 'joined' => 'success', 'interview_scheduled' => 'warning', 'rejected', 'withdrawn' => 'danger', default => 'primary' }; @endphp {{ str_replace('_', ' ', $app->status) }} View Application
This candidate has not applied to any job postings yet.

Annual Validity & Renewal Log

Status: @if($candidate->isExpired()) Expired @elseif($candidate->isRenewalEligible()) Renewal Window Open @else Current / Active @endif
@forelse($candidate->renewalRecords as $record) @empty @endforelse
Renewal Cycle Renewed On Extended Expiry Date Confirmation Mode
Cycle #{{ $loop->iteration }} {{ $record->renewed_at ? $record->renewed_at->format('d M Y, h:i A') : $record->created_at->format('d M Y') }} {{ $record->new_expiry_date ? $record->new_expiry_date->format('d M Y') : 'N/A' }} {{ $record->method ?? 'MahaSwayam Self-Declaration' }}
No historical renewal cycles recorded. Initial registration is valid until {{ $candidate->expiry_date ? $candidate->expiry_date->format('d M Y') : 'N/A' }}.
@endsection