@extends('layouts.admin') @section('title', 'Detail Pelamar') @section('page-title', 'Detail Pelamar') @section('page-subtitle', $applicant->full_name) @section('content')
Kembali Ubah Status Download Excel Download PDF
{{-- Status Banner --}}
{{ $applicant->full_name }}
NIK: {{ $applicant->nik }} ยท Lowongan: {{ $applicant->vacancy->title ?? '-' }} @if(!empty($applicant->vacancy->department)) ({{ $applicant->vacancy->department }}) @endif
@switch($applicant->status) @case('TERKIRIM') โณ Terkirim @break @case('PROSES') ๐Ÿ”„ Dalam Proses @break @case('DITERIMA') โœ… Diterima @break @case('DITOLAK') โŒ Ditolak @break @default {{ $applicant->status }} @endswitch
{{ $applicant->created_at->format('d M Y, H:i') }}
{{-- ========== STEP 1: IDENTITAS DIRI ========== --}}
1
Identitas Diri
Data pribadi pelamar
Nama Lengkap
{{ $applicant->full_name }}
Jenis Kelamin
{{ $applicant->gender ?? '-' }}
Tempat Lahir
{{ $applicant->birth_place ?? '-' }}
Golongan Darah
{{ $applicant->other_data['blood_type'] ?? '-' }}
Tanggal Lahir
{{ $applicant->birth_date ? $applicant->birth_date->format('d M Y') : '-' }}
Agama
{{ $applicant->religion ?? '-' }}
Tinggi Badan
{{ $applicant->height ? $applicant->height . ' cm' : '-' }}
Berat Badan
{{ $applicant->weight ? $applicant->weight . ' kg' : '-' }}
Alamat Sesuai KTP
{{ $applicant->address ?? '-' }}
Kelurahan
{{ $applicant->other_data['kelurahan'] ?? '-' }}
Kecamatan
{{ $applicant->other_data['kecamatan'] ?? '-' }}
Kota / Kabupaten
{{ $applicant->city ?? '-' }}
Provinsi
{{ $applicant->province ?? '-' }}
Kode Pos
{{ $applicant->postal_code ?? '-' }}
Email
{{ $applicant->other_data['email'] ?? '-' }}
No Handphone
{{ $applicant->other_data['phone'] ?? '-' }}
Nomor KK
{{ $applicant->other_data['nomor_kk'] ?? '-' }}
Nomor KTP
{{ $applicant->nik ?? '-' }}
Alamat Tinggal Saat Ini
{{ $applicant->other_data['current_address'] ?? $applicant->address ?? '-' }}
No Telepon Rumah/Kerabat
{{ $applicant->other_data['emergency_phone'] ?? '-' }}
Tempat Tinggal Milik
{{ $applicant->other_data['residence_ownership'] ?? '-' }}
Status Pernikahan
{{ $applicant->other_data['marital_status'] ?? '-' }}
Sejak Tanggal
{{ $applicant->other_data['marriage_date'] ?? '-' }}
{{-- ========== STEP 2: IDENTITAS KELUARGA ========== --}}
2
Identitas Keluarga
Susunan keluarga pelamar
@if(!empty($applicant->family_data) && is_array($applicant->family_data)) @php $coreData = []; $parentsData = []; if (isset($applicant->family_data['core']) || isset($applicant->family_data['parents'])) { // New structure $mapping = [ 'suami_istri' => 'Suami/Istri', 'anak_1' => 'Anak 1', 'anak_2' => 'Anak 2', 'anak_3' => 'Anak 3', 'ayah' => 'Ayah', 'ibu' => 'Ibu' ]; if (!empty($applicant->family_data['core'])) { foreach ($applicant->family_data['core'] as $key => $member) { if (!empty($member['name'])) { $member['relationship'] = $mapping[$key] ?? ucwords(str_replace('_', ' ', $key)); $coreData[] = $member; } } } if (!empty($applicant->family_data['parents'])) { foreach ($applicant->family_data['parents'] as $key => $member) { if (!empty($member['name'])) { $member['relationship'] = $mapping[$key] ?? ucwords(str_replace('_', ' ', $key)); $parentsData[] = $member; } } } } else { // Old structure fallback $famData = is_array($applicant->family_data) ? $applicant->family_data : []; foreach ($famData as $member) { if (!empty($member['name'])) { $rel = strtolower($member['relationship'] ?? ''); if (in_array($rel, ['suami', 'istri', 'suami/istri', 'anak 1', 'anak 2', 'anak 3', 'anak 4', 'anak 5'])) { $coreData[] = $member; } else { $parentsData[] = $member; } } } } @endphp @if(!empty($coreData))
@foreach($coreData as $member) @endforeach
Keluarga Nama L/P Tempat / Tgl Lahir Pendidikan Pekerjaan No Telepon
{{ $member['relationship'] ?? '-' }} {{ $member['name'] ?? '-' }} {{ $member['gender'] ?? '-' }} {{ $member['birth_info'] ?? $member['birth_place_date'] ?? ($member['age'] ?? '-') }} {{ $member['education'] ?? '-' }} {{ $member['occupation'] ?? '-' }} {{ $member['phone'] ?? '-' }}
@else

Tidak ada data.

@endif @if(!empty($parentsData))
@foreach($parentsData as $member) @endforeach
Keluarga Nama L/P Tempat / Tgl Lahir Pendidikan Pekerjaan No Telepon
{{ $member['relationship'] ?? '-' }} {{ $member['name'] ?? '-' }} {{ $member['gender'] ?? '-' }} {{ $member['birth_info'] ?? $member['birth_place_date'] ?? ($member['age'] ?? '-') }} {{ $member['education'] ?? '-' }} {{ $member['occupation'] ?? '-' }} {{ $member['phone'] ?? '-' }}
@else

Tidak ada data.

@endif @else

Tidak ada data keluarga.

@endif
{{-- ========== STEP 3: RIWAYAT PENDIDIKAN ========== --}}
3
Riwayat Pendidikan
Pendidikan formal & non formal
@if(!empty($applicant->education_data) && is_array($applicant->education_data))
@php $formalEd = $applicant->education_data['formal'] ?? []; if (!is_array($formalEd)) $formalEd = []; $levels = ['sd' => 'SD', 'smp' => 'SMP', 'sma' => 'SMA/SMK', 'd3' => 'D3', 's1' => 'S1', 's2' => 'S2']; @endphp @foreach($levels as $key => $label) @if(!empty($formalEd[$key]['school'])) @php $ed = $formalEd[$key]; @endphp @endif @endforeach
Tingkat Nama Sekolah Jurusan Tempat Dari Sampai Lulus IPK
{{ $label }} {{ $ed['school'] ?? '-' }} {{ $ed['major'] ?? '-' }} {{ $ed['location'] ?? '-' }} {{ $ed['year_start'] ?? '-' }} {{ $ed['year_end'] ?? '-' }} @if(($ed['status'] ?? '') == 'Lulus') Lulus @else {{ $ed['status'] ?? '-' }} @endif {{ $ed['gpa'] ?? '-' }}
@else

Tidak ada data pendidikan formal.

@endif @if(!empty($applicant->education_data['non_formal']) && is_array($applicant->education_data['non_formal']) && count(array_filter(array_column($applicant->education_data['non_formal'], 'course'))) > 0)
@foreach($applicant->education_data['non_formal'] as $nf) @if(!empty($nf['course'])) @endif @endforeach
Kursus/Seminar Penyelenggara Tempat Dari Sampai
{{ $nf['course'] ?? '-' }} {{ $nf['organizer'] ?? '-' }} {{ $nf['location'] ?? '-' }} {{ $nf['year_start'] ?? '-' }} {{ $nf['year_end'] ?? '-' }}
@else

Tidak ada data pendidikan non formal.

@endif @php $skills = is_array($applicant->other_data['skills'] ?? null) ? $applicant->other_data['skills'] : [ ['name' => 'BAHASA', 'level' => ''], ['name' => 'KOMPUTER', 'level' => ''], ['name' => 'KEMAMPUAN LAIN', 'level' => ''] ]; @endphp
@foreach($skills as $skill) @endforeach
Kemampuan BS B C K KS
{{ $skill['name'] ?? '-' }} {!! ($skill['level'] ?? '') == 'BS' ? '' : '' !!} {!! ($skill['level'] ?? '') == 'B' ? '' : '' !!} {!! ($skill['level'] ?? '') == 'C' ? '' : '' !!} {!! ($skill['level'] ?? '') == 'K' ? '' : '' !!} {!! ($skill['level'] ?? '') == 'KS' ? '' : '' !!}
{{-- ========== STEP 4: RIWAYAT PEKERJAAN ========== --}}
4
Riwayat Pekerjaan
Pengalaman kerja sebelumnya
@if(!empty($applicant->experience_data) && is_array($applicant->experience_data)) @foreach($applicant->experience_data as $i => $exp)
{{ $i + 1 }} Pekerjaan Ke-{{ $i + 1 }}
Nama & Alamat Perusahaan
{!! nl2br(e($exp['company'] ?? $exp['company_info'] ?? '-')) !!}
Jabatan
{{ is_array($exp['positions'] ?? $exp['jabatan'] ?? null) ? implode(', ', array_filter($exp['positions'] ?? $exp['jabatan'])) : ($exp['position'] ?? $exp['jabatan'] ?? '-') }}
Periode
{{ is_array($exp['periods'] ?? $exp['periode'] ?? null) ? implode(', ', array_filter($exp['periods'] ?? $exp['periode'])) : ($exp['duration'] ?? $exp['periode'] ?? '-') }}
Gaji Akhir
{{ is_array($exp['salaries'] ?? $exp['gaji'] ?? null) ? implode(', ', array_filter($exp['salaries'] ?? $exp['gaji'])) : ($exp['salary'] ?? $exp['gaji'] ?? '-') }}
Jumlah Bawahan
{{ is_array($exp['subordinates'] ?? $exp['bawahan'] ?? null) ? implode(', ', array_filter($exp['subordinates'] ?? $exp['bawahan'])) : ($exp['subordinates'] ?? $exp['bawahan'] ?? '-') }}
Alasan Berhenti
{{ $exp['reason_leave'] ?? $exp['alasan_berhenti'] ?? '-' }}
Uraian Tugas dan Tanggung Jawab
{{ $exp['responsibilities'] ?? $exp['description'] ?? $exp['uraian_tugas'] ?? '-' }}
@endforeach @else

Tidak ada pengalaman kerja.

@endif
{{-- ========== STEP 5: LAIN-LAIN ========== --}} @php $other = is_array($applicant->other_data) ? $applicant->other_data : []; @endphp
5
Lain-lain
Aktivitas sosial, referensi, kontak darurat
{{-- Aktivitas Sosial --}} @php $socialActivities = $other['social_activities'] ?? $other['aktivitas'] ?? []; @endphp @if(!empty($socialActivities))
@foreach($socialActivities as $sa) @if(!empty($sa['organization']) || !empty($sa['organisasi'])) @endif @endforeach
Nama OrganisasiJenis KegiatanJabatanTahun
{{ $sa['organization'] ?? $sa['organisasi'] ?? '-' }} {{ $sa['activity'] ?? $sa['kegiatan'] ?? '-' }} {{ $sa['position'] ?? $sa['jabatan'] ?? '-' }} {{ $sa['year'] ?? $sa['tahun'] ?? '-' }}
@else

Tidak ada data organisasi.

@endif
Hobby & Kegiatan Waktu Luang:
{{ $other['hobbies'] ?? $other['hobby'] ?? '-' }}
{{-- Referensi --}} @php $references = $other['references'] ?? $other['referensi'] ?? []; @endphp @if(!empty($references))
@foreach($references as $ref) @if(!empty($ref['name']) || !empty($ref['nama'])) @endif @endforeach
NamaAlamat & No TeleponJabatanHubungan
{{ $ref['name'] ?? $ref['nama'] ?? '-' }} {{ $ref['address_phone'] ?? $ref['alamat'] ?? '-' }} {{ $ref['position'] ?? $ref['jabatan'] ?? '-' }} {{ $ref['relationship'] ?? $ref['hubungan'] ?? '-' }}
@endif {{-- Kontak Darurat --}} @php $emergencyContacts = []; if (!empty($other['darurat'])) { foreach ($other['darurat']['nama'] ?? [] as $k => $nama) { if (!empty($nama)) { $emergencyContacts[] = [ 'name' => $nama, 'address' => $other['darurat']['alamat'][$k] ?? '-', 'phone' => $other['darurat']['telepon'][$k] ?? '-', 'relationship' => $other['darurat']['hubungan'][$k] ?? '-' ]; } } } else if (!empty($other['emergency_contacts'])) { $emergencyContacts = $other['emergency_contacts']; } @endphp @if(!empty($emergencyContacts))
@foreach($emergencyContacts as $ec) @endforeach
NamaAlamatNo TeleponHubungan
{{ $ec['name'] ?? '-' }} {{ $ec['address'] ?? '-' }} {{ $ec['phone'] ?? '-' }} {{ $ec['relationship'] ?? '-' }}
@endif {{-- Pertanyaan --}} @php $qList = [ 1 => 'Apakah saudara sebelumnya pernah melamar di Triputra Agro Persada Group?', 2 => 'Apakah Saudara memiliki teman/keluarga/seseorang yang dikenal di perusahaan ini?', 3 => 'Apakah Saudara pernah menderita sakit keras/kecelakaan berat/operasi?', 4 => 'Apabila diterima, bersediakah Saudara ditugaskan ke luar kota?', 5 => 'Apabila diterima, bersediakah Saudara ditempatkan ke luar kota?', 6 => 'Jenis pekerjaan apakah yang sesuai dengan cita-cita Saudara?', 7 => 'Jenis pekerjaan bagaimana yang tidak Saudara sukai?', 8 => 'Bila diterima, berapa permintaan gaji dan tunjangan yang Saudara harapkan?', 9 => 'Bila diterima, kapan Saudara bisa mulai bekerja?', ]; $hasAnyQ = false; foreach(range(1,9) as $i) { if(isset($other['q'.$i])) $hasAnyQ = true; } @endphp @if($hasAnyQ || !empty($other['questions']))
@foreach($qList as $i => $qText) @php $ans = ''; $note = ''; if (!empty($other['questions']) && isset($other['questions'][$i-1])) { $ans = $other['questions'][$i-1]['answer'] ?? ''; $note = $other['questions'][$i-1]['note'] ?? ''; } else { $ans = $other['q'.$i] ?? ''; $note = $other['q'.$i.'_keterangan'] ?? ''; } if(empty($ans) && empty($note)) continue; @endphp @if($i <= 5) @else @endif @endforeach
PertanyaanYATIDAKKeterangan / Jawaban
{{ $qText }}@if(strtolower($ans) == 'ya') @endif @if(strtolower($ans) == 'tidak') @endif {{ $note ?? '-' }}{{ $ans ?: $note ?: '-' }}
@else

Tidak ada data pertanyaan.

@endif
{{-- ========== STEP 6: DOKUMEN ========== --}}
6
Dokumen Lampiran
File dokumen yang diupload pelamar
@if(!empty($applicant->documents) && is_array($applicant->documents))
@php $docIcons = ['kartu_keluarga'=>'fa-id-card','ktp'=>'fa-address-card','ijazah_terakhir'=>'fa-certificate','surat_lamaran'=>'fa-envelope-open-text','npwp'=>'fa-receipt','buku_rekening_bni'=>'fa-university','foto_3x4'=>'fa-camera']; @endphp @foreach($applicant->documents as $key => $path)
@php $docName = ucwords(str_replace('_', ' ', $key)); if (is_numeric($key)) { $docName = "Dokumen " . ((int)$key + 1); } @endphp
{{ $docName }}
Unduh / Lihat
@endforeach
@endif
{{-- ========== STEP 7: TANDA TANGAN ========== --}}
7
Tanda Tangan
Tanda tangan digital pelamar
@if(!empty($applicant->other_data['signature_image'])) Tanda Tangan
{{ $applicant->other_data['signature_name'] ?? $applicant->full_name }}
{{ $applicant->other_data['signature_date'] ?? '-' }}
@elseif(!empty($applicant->signature_image)) Tanda Tangan
{{ $applicant->other_data['signature_name'] ?? $applicant->full_name }}
{{ $applicant->other_data['signature_date'] ?? '-' }}
@else

Belum ada tanda tangan.

@endif
@endsection