{{ $staffFilter === 1 ? 'Staff' : 'Tenaga Kerja' }}

Data pegawai {{ $staffFilter === 1 ? 'staff' : 'tenaga kerja' }} beserta riwayat.

{{-- Form --}} @if ($showForm)
@foreach (['profile' => 'Profil', 'educations' => 'Pendidikan', 'families' => 'Keluarga', 'experiences' => 'Pengalaman', 'projects' => 'Proyek'] as $key => $label) @endforeach
{{-- Profil --}} @if ($tab === 'profile')

Data Pribadi

@error('form.nik')

{{ $message }}

@enderror
@error('form.name')

{{ $message }}

@enderror
@error('form.email')

{{ $message }}

@enderror

Kepegawaian

Gaji & Tunjangan

@elseif ($tab === 'educations')
@foreach ($educations as $ed) @endforeach
{{ $ed['level'] ?? '-' }} {{ $ed['major'] ?? '' }} {{ $ed['institution'] ?? '-' }} {{ $ed['graduation_year'] ?? '-' }}
@if (! $educations)

Belum ada data pendidikan.

@endif
@elseif ($tab === 'families')
@foreach ($families as $fam)
{{ $fam['relation'] ?? '-' }}: {{ $fam['name'] ?? '-' }}
@endforeach @if (! $families)

Belum ada data keluarga.

@endif
@elseif ($tab === 'experiences')
@foreach ($experiences as $exp)
{{ $exp['company'] ?? '-' }} — {{ $exp['position'] ?? '-' }}
@endforeach @if (! $experiences)

Belum ada data pengalaman.

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

Simpan profil untuk menyimpan penempatan proyek.

@endif
@endif {{-- Tabel --}}
@forelse ($employees as $emp) @empty @endforelse
NIK Nama Posisi No. HP Status Aksi
{{ $emp->nik ?? '-' }} {{ $emp->name }} {{ $emp->position?->name ?? '-' }} {{ $emp->phone ?? '-' }}
Tidak ada data.
{{ $employees->links() }}