Kembali @if (session('message'))
{{ session('message') }}
@endif {{-- Tabs (pill modern + icon + badge jumlah) --}}
@foreach ([ 'profile' => ['Profil', 'mi-user', 0], 'educations' => ['Pendidikan', 'mi-file-text', count($educations)], 'families' => ['Keluarga', 'mi-users', count($families)], 'experiences' => ['Pengalaman', 'mi-briefcase', count($experiences)], 'projects' => ['Proyek', 'mi-building', count($project_ids)], ] as $key => $tabMeta) @endforeach
@if ($tab === 'profile')
{{-- Upload Foto Karyawan --}}

Foto Karyawan

Unggah foto profil karyawan. Foto tersimpan otomatis saat menyimpan data, dan digunakan di daftar karyawan serta aplikasi mobile.

@if ($photoFile || ($form['image_path'] ?? null)) @endif
@error('photoFile')

{{ $message }}

@enderror
@foreach ([ 'nik' => 'NIK', 'identity_no' => 'No. Identitas', 'name' => 'Nama Lengkap *', 'nickname' => 'Panggilan', 'birth_place' => 'Tempat Lahir', 'birth_date' => 'Tanggal Lahir', 'marital_status' => 'Status (PTKP)', 'sex' => 'Jenis Kelamin', 'blood_type' => 'Gol. Darah', 'join_date' => 'Tanggal Masuk', 'term_date' => 'Tanggal Keluar', 'insurance_no' => 'No. Asuransi', 'npwp' => 'NPWP', 'phone' => 'No. Telepon', 'email' => 'Email', ] as $key => $label)
@if ($key === 'sex') @elseif ($key === 'marital_status') @elseif (in_array($key, ['birth_date', 'join_date', 'term_date'], true)) @else @endif @error('form.' . $key)

{{ $message }}

@enderror
@endforeach

Gaji & Tunjangan

@foreach ([ 'basic_salary' => 'Gaji Pokok / Upah', 'position_allowance' => 'Tunj. Jabatan', 'allowance' => 'Tunj. Lain', 'meal_allowance' => 'Uang Makan', 'incentive' => 'Insentif', 'overtime_rate' => 'Tarif Lembur', 'tunj_luar_kota' => 'Tunj. Luar Kota', 'tunj_malam' => 'Tunj. Malam', 'tunj_lembur' => 'Tunj. Lembur', 'pot_telat' => 'Pot. Telat', ] as $key => $label)
@endforeach
Batal @if ($editing) @endif
@elseif ($tab === 'educations')
@forelse ($educations as $ed)
{{ $ed['level'] ?? '' }} {{ $ed['major'] ?? '' }} — {{ $ed['institution'] ?? '' }} ({{ $ed['graduation_year'] ?? '-' }})
@empty

Belum ada data pendidikan.

@endforelse
@elseif ($tab === 'families')
@forelse ($families as $fam)
{{ $fam['relation'] ?? '-' }}: {{ $fam['name'] ?? '-' }}
@empty

Belum ada data keluarga.

@endforelse
@elseif ($tab === 'experiences')
@forelse ($experiences as $exp)
{{ $exp['company'] ?? '-' }} — {{ $exp['position'] ?? '-' }}
@empty

Belum ada data pengalaman.

@endforelse
@elseif ($tab === 'projects')
@foreach ($project_ids as $pid) @if ($pid !== '') {{ \App\Models\Project::find($pid)?->name ?? 'Proyek #' . $pid }} @endif @endforeach

Simpan profil untuk menyimpan penempatan proyek.

@endif