@extends('layouts.recruitment') @section('content')

Candidate Profile

@php $avatarUrl = $applicant->photo_path ? asset('storage/' . $applicant->photo_path) : asset('images/avatars/avatar_' . (strtolower($applicant->gender) == 'male' ? 'male' : (strtolower($applicant->gender) == 'female' ? 'female' : 'neutral')) . '.png'); @endphp Avatar

{{ $applicant->full_name }}

{{ $applicant->applications->first()->position_applying_for === 'Other' ? $applicant->applications->first()->other_position : ($applicant->applications->first()->jobOpening->position->title ?? 'Teacher') }} @if($applicant->applications->first()->position_applying_for === 'Subject Specialist' && $applicant->applications->first()->other_position) ({{ $applicant->applications->first()->other_position }}) @endif

Ref: #{{ $applicant->applications->first()->reference_number }} {{ $applicant->applications->first()->current_stage }}

Contact Details

Email

{{ $applicant->email }}

Mobile

{{ $applicant->phone }}

@if($applicant->whatsapp_number)

WhatsApp

{{ $applicant->whatsapp_number }}

@endif

Emergency Contact

{{ $applicant->emergency_name }}

{{ $applicant->emergency_number }}

Background Check

Dismissed

{{ $applicant->dismissed }}

Convicted

{{ $applicant->convicted }}

Personal Profile

Nationality

{{ $applicant->nationality }}

City

{{ $applicant->city_of_residence }}

Gender

{{ ucfirst($applicant->gender) }}

Birth Date

{{ $applicant->date_of_birth ? \Carbon\Carbon::parse($applicant->date_of_birth)->format('M d, Y') : 'N/A' }}

Home Address

{{ $applicant->home_address }}

Academic Background

Highest Qualification

{{ $applicant->highest_qualification }}

Institution & Graduation

{{ $applicant->institution }} ({{ $applicant->graduation_year }})

@if($applicant->major)

Major/Specialization

{{ $applicant->major }}

@endif @if($applicant->certifications)

Professional Certifications

{{ $applicant->certifications }}

@endif

Experience & Expertise

Experience

{{ $applicant->years_experience }} Years

Availability

{{ $applicant->applications->first()->available_start_date ? \Carbon\Carbon::parse($applicant->applications->first()->available_start_date)->format('M d, Y') : 'Immediate' }}

Preferred Subjects & Grades

{{ $applicant->applications->first()->subjects_can_teach ?? 'Not Specified' }}
Preferred: {{ $applicant->applications->first()->grades_preferred ?? 'N/A' }}

@if($applicant->applications->first()->previous_school)

Employer 1 (Recent)

{{ $applicant->applications->first()->previous_school }}

{{ $applicant->applications->first()->prev_position }}

{{ $applicant->applications->first()->prev_period }}

@endif @if($applicant->applications->first()->prev_school_2)

Employer 2

{{ $applicant->applications->first()->prev_school_2 }}

{{ $applicant->applications->first()->prev_position_2 }}

{{ $applicant->applications->first()->prev_period_2 }}

@endif @php $secondary = $applicant->applications->first()->secondary_employment ?? []; @endphp @foreach($secondary as $index => $job) @if(!empty($job['company']))

Secondary Employment ({{ $index + 1 }})

{{ $job['company'] }}

{{ $job['position'] }}

{{ $job['dates'] }}

{{ $job['nature'] }}

@endif @endforeach
@if($applicant->applicant_type === 'current_teacher')

Internal History (Staff)

Department

{{ $applicant->applications->first()->current_dept }}

Years Served

{{ $applicant->applications->first()->years_served }}

Achievements

{{ $applicant->applications->first()->achievements ?? 'None documented.' }}

Challenges Faced

{{ $applicant->applications->first()->challenges ?? 'None documented.' }}

Why continue?

{{ $applicant->applications->first()->why_continue ?? 'No statement provided.' }}

@else

Skills Proficiency

@php $skills = $applicant->skills_proficiency ?? []; $labels = [ 'classroom_management' => 'Classroom Mgmt', 'lesson_planning' => 'Lesson Planning', 'student_assessment' => 'Student Assessment', 'computer_skills' => 'Computer Skills', 'ms_word' => 'MS Word', 'ms_excel' => 'MS Excel', 'google_workspace' => 'Google Workspace', 'online_teaching' => 'Online Platforms' ]; // Add any other skills that might be in the data but not in labels foreach($skills as $key => $val) { if(!isset($labels[$key])) $labels[$key] = str_replace('_', ' ', ucfirst($key)); } @endphp @foreach($labels as $key => $label) @if(isset($skills[$key]))
{{ $label }}
@for($i = 1; $i <= 5; $i++)
@endfor
@endif @endforeach
@endif

Professional References

@php $refs = $applicant->applications->first()->reference_data ?? []; @endphp @forelse($refs as $ref)

{{ $ref['name'] ?? 'N/A' }}

{{ $ref['position'] ?? '' }} @ {{ $ref['org'] ?? '' }}

{{ $ref['phone'] ?? '' }} | {{ $ref['email'] ?? '' }}

@empty

No structured references provided.

@endforelse

Additional Commitments

Type: {{ $applicant->applications->first()->commitment_type ?? 'Full-Time' }}

{{ $applicant->applications->first()->other_commitments ?? 'No other commitments disclosed.' }}

Teaching Philosophy & Statement

{{ $applicant->applications->first()->personal_statement ?? 'No statement provided.' }}

@if($applicant->applications->first()->digital_signature)

Digital Signature

{{ $applicant->applications->first()->digital_signature }}

Certified on {{ $applicant->applications->first()->submitted_at->format('M d, Y') }}

@endif

Uploaded Evidence

{{ $applicant->applications->first()->documents->count() }} Files
@forelse($applicant->applications->first()->documents as $doc)
{{ $doc->document_type }}

Quick-View Available

@empty

No documents uploaded.

@endforelse

Secure Preview Mode

Download
@endsection