Tambah {{ $title_menu }}
{{-- alert --}}
@include('components.alert')
{{-- validation errors --}}
@if ($errors->any())
Ada kesalahan dalam form:
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@endif
{{-- LEFT: Assignment details (position, supervisor, effective date) --}}
Posisi *
Pilih Posisi
@foreach ($positions as $position)
id ?
'selected' : '' }}>
{{ $position->position_name }} - {{ $position->department_name }}
@endforeach
@error('pa_position_id')
{{ $message }}
@enderror
Penilai *
Pilih Penilai
@foreach ($supervisors as $supervisor)
nik ? 'selected' : '' }}>
{{ $supervisor->full_name }} - {{ $supervisor->nik }}
@if ($supervisor->job_title)
({{ $supervisor->job_title }})
@endif
@endforeach
@error('supervisor_nik')
{{ $message }}
@enderror
Berlaku Mulai *
Pilih Tahun
@foreach ($yearOptions as $value => $label)
{{ $label }}
@endforeach
@error('effective_year')
{{ $message }}
@enderror
Pilih Bulan
@foreach ($monthOptions as $value => $label)
{{ $label }}
@endforeach
@error('effective_month')
{{ $message }}
@enderror
Tanggal efektif yang sama akan diterapkan ke semua karyawan yang dipilih.
{{-- RIGHT: Employee selection table --}}
Pilih Karyawan
{{-- Department filter --}}
Semua Departemen
@foreach ($departments as $dep)
id ?
'selected' : '' }}>
{{ $dep->nama }}
@endforeach
{{-- Search input --}}
{{-- AJAX table loaded here --}}