@extends('admin.admin_dashboard') @section('customcss') @endsection @section('admin')
{{-- Breadcrumb + top toolbar --}}
{{-- Top action bar --}}
Back to List
@csrf @method('PATCH')
@csrf @method('DELETE')
{{-- ═══════════════════════ CV CARD ═══════════════════════ --}}
{{-- ── HEADER ── --}} @php $photoDoc = $jobApplication->documents->firstWhere('document_type', 'photo'); $sigDoc = $jobApplication->documents->firstWhere('document_type', 'signature'); $photoUrl = null; if ($photoDoc) { $raw = ltrim((string) $photoDoc->file_path, '/'); $norm = str_starts_with($raw, 'storage/') ? substr($raw, 8) : $raw; $photoUrl = str_starts_with($norm, 'job_applications/') ? asset('storage/' . $norm) : null; } $sigUrl = null; if ($sigDoc) { $raw = ltrim((string) $sigDoc->file_path, '/'); $norm = str_starts_with($raw, 'storage/') ? substr($raw, 8) : $raw; $sigUrl = str_starts_with($norm, 'job_applications/') ? asset('storage/' . $norm) : null; } @endphp
@if($jobApplication->save_type === 'draft') Draft @else {{ ucwords(str_replace('_', ' ', $jobApplication->application_status ?? 'Pending')) }} @endif {{ $jobApplication->application_no }}
@if($photoUrl) Photo @else
@endif

{{ $jobApplication->name_en ?? 'N/A' }}

@if($jobApplication->name_bn)
{{ $jobApplication->name_bn }}
@endif
@if($jobApplication->post) {{ $jobApplication->post->name }} @endif @if($jobApplication->primary_subject) {{ $jobApplication->primary_subject }} @endif @if($jobApplication->email) {{ $jobApplication->email }} @endif @if($jobApplication->mobile) {{ $jobApplication->mobile }} @endif @if($jobApplication->dob) DOB: {{ optional($jobApplication->dob)->format('d M, Y') }} @endif
{{-- ── PERSONAL INFORMATION ── --}}
Personal Information
Father's Name {{ $jobApplication->father_name_en ?? 'N/A' }} @if($jobApplication->father_name_bn) ({{ $jobApplication->father_name_bn }}) @endif
Mother's Name {{ $jobApplication->mother_name_en ?? 'N/A' }} @if($jobApplication->mother_name_bn) ({{ $jobApplication->mother_name_bn }}) @endif
Gender {{ $jobApplication->gender ?? 'N/A' }}
Marital Status {{ $jobApplication->marital_status ?? 'N/A' }}
Nationality {{ $jobApplication->nationality ?? 'N/A' }} @if($jobApplication->nationality_other) ({{ $jobApplication->nationality_other }}) @endif
Religion {{ $jobApplication->religion ?? 'N/A' }} @if($jobApplication->religion_other) ({{ $jobApplication->religion_other }}) @endif
NID @if($jobApplication->nid_status) {{ $jobApplication->nid_num ?? '—' }} @else N/A @endif
Birth Reg. No. @if($jobApplication->birth_reg_status) {{ $jobApplication->birth_reg_num ?? '—' }} @else N/A @endif
Passport @if($jobApplication->passport_status) {{ $jobApplication->passport_num ?? '—' }} @else N/A @endif
Shift @if($jobApplication->expected_salary == 1) Morning Shift @elseif($jobApplication->expected_salary == 2) Day Shift @else Both Morning and Day Shift @endif
Job Circular @if($jobApplication->jobCircular) {{ $jobApplication->jobCircular->job_id }} @if($jobApplication->jobCircular->title) — {{ $jobApplication->jobCircular->title }} @endif @else N/A @endif
Applied On {{ optional($jobApplication->application_date)->format('d M, Y') ?? 'N/A' }}
{{-- ── ADDRESS ── --}}
Address Details
@php $presentAddr = $jobApplication->addresses->where('address_type', 'present')->first(); $permanentAddr = $jobApplication->addresses->where('address_type', 'permanent')->first(); @endphp
Present Address
@if($presentAddr)

@if($presentAddr->care_of) C/O: {{ $presentAddr->care_of }}
@endif @if($presentAddr->village) {{ $presentAddr->village }}, @endif @if($presentAddr->upazila) {{ $presentAddr->upazila }},
@endif @if($presentAddr->district) {{ $presentAddr->district }}@endif @if($presentAddr->post_office) — P.O: {{ $presentAddr->post_office }}@endif @if($presentAddr->post_code) ({{ $presentAddr->post_code }})@endif

@else

No address on record.

@endif
Permanent Address
@if($permanentAddr)

@if($permanentAddr->care_of) C/O: {{ $permanentAddr->care_of }}
@endif @if($permanentAddr->village) {{ $permanentAddr->village }}, @endif @if($permanentAddr->upazila) {{ $permanentAddr->upazila }},
@endif @if($permanentAddr->district) {{ $permanentAddr->district }}@endif @if($permanentAddr->post_office) — P.O: {{ $permanentAddr->post_office }}@endif @if($permanentAddr->post_code) ({{ $permanentAddr->post_code }})@endif

@elseif($jobApplication->same_as_present)

Same as present address.

@else

No address on record.

@endif
{{-- ── ACADEMIC QUALIFICATIONS ── --}}
Academic Qualifications
@if($jobApplication->educations->count())
@foreach($jobApplication->educations as $education) @if($education->is_applicable) @endif @endforeach
Level Examination Board / University Subject / Group Result GPA / Grade Roll Year
{{ strtoupper($education->education_level) }} {{ $education->examination ?? '—' }} {{ $education->board_or_university ?? '—' }} {{ $education->subject ?? $education->study_group ?? '—' }} {{ $education->result_type ?? '—' }} {{ $education->gpa ?? '—' }} {{ $education->roll ?? '—' }} {{ $education->passing_year ?? '—' }}
@else

No education records found.

@endif {{-- ── EXPERIENCE ── --}}
Work Experience
@forelse($jobApplication->experiences as $experience)
{{ $experience->designation ?? 'N/A' }}
{{ $experience->organization_name ?? 'N/A' }} @if($experience->employer_type) {{ $experience->employer_type }} @endif
{{ optional($experience->from_date)->format('M Y') ?? 'N/A' }} — @if($experience->is_currently_working) Present @else {{ optional($experience->to_date)->format('M Y') ?? 'N/A' }} @endif
@if($experience->address)
{{ $experience->address }}
@endif
@empty

No experience records found.

@endforelse
{{-- ── OTHER QUALIFICATIONS ── --}} @if($jobApplication->qual_1 || $jobApplication->qual_2)
Other Qualifications
Qualification 1 {{ $jobApplication->qual_1 ?? 'N/A' }}
Qualification 2 {{ $jobApplication->qual_2 ?? 'N/A' }}
@endif {{-- ── DOCUMENTS ── --}}
Attached Documents
@php $docMap = [ 'photo' => ['label' => 'Photo', 'icon' => 'fa-image'], 'signature' => ['label' => 'Signature', 'icon' => 'fa-pen-nib'], 'birth_certificate'=> ['label' => 'Birth Certificate', 'icon' => 'fa-file-alt'], 'nid_copy' => ['label' => 'NID Copy', 'icon' => 'fa-id-card'], ]; $docsByType = $jobApplication->documents->keyBy('document_type'); @endphp
@foreach($docMap as $type => $meta) @php $doc = $docsByType->get($type); $fileUrl = null; if ($doc) { $raw = ltrim((string) $doc->file_path, '/'); $norm = str_starts_with($raw, 'storage/') ? substr($raw, 8) : $raw; $fileUrl = str_starts_with($norm, 'job_applications/') ? asset('storage/' . $norm) : null; } @endphp
{{ $meta['label'] }}
@if($doc)
{{ $doc->original_name ?? $doc->stored_name ?? '—' }}
@if($fileUrl) View @endif @else
Not uploaded
@endif
@if($type === 'signature' && $sigUrl) Signature @endif
@endforeach
{{-- /cv-body --}} {{-- ── FOOTER ── --}}
{{-- /cv-wrapper --}}
@endsection