@extends('layouts.app') @section('title', 'Kelola SIMPER - ' . $employee->name) @section('content')
Dashboard HSE Data SIMPER Kelola SIMPER

Kelola SIMPER Personil @if($employee->isSukon()) Sukon @else Karyawan Internal @endif

Kembali ke Daftar @can('hse.employees.delete') @endcan
@csrf
PROFIL PERSONIL Master Super Admin
@if($employee->photo_url) {{ $employee->name }} @else
{{ strtoupper(substr($employee->name, 0, 1)) }}
@endif
NIK: {{ $employee->nik }}
Nama Lengkap: {{ $employee->name }}
Unit Kerja: {{ $employee->unit_kerja ?? '-' }}
Divisi / Jabatan: {{ $employee->division ?? '-' }} / {{ $employee->position ?? '-' }}
PENGATURAN STATUS HSE

Izin SIMPER yang Dimiliki

Centang jenis SIMPER dan tentukan nomor serta masa berlakunya.

{{ $availableSimperTypes->count() }} Jenis Tersedia
@forelse($availableSimperTypes as $st) @php $existingSimper = $employee->simpers->firstWhere('simper_type_id', $st->id); $isChecked = !is_null($existingSimper); $simperNum = $existingSimper ? $existingSimper->simper_number : ('SMP-' . str_pad($employee->id, 4, '0', STR_PAD_LEFT)); $simperExp = $existingSimper && $existingSimper->expired_at ? $existingSimper->expired_at->format('Y-m-d') : ($employee->simper_expired_at?->format('Y-m-d') ?? ''); @endphp
@if($st->coversScope('all')) SEMUA ARMADA @elseif($st->scopes === ['light_vehicle']) LV @else {{ strtoupper($st->category_scope_display) }} @endif
@empty

Belum ada master jenis SIMPER yang aktif.

@endforelse
Batal
@php $defaultUnits = ['Umum', 'HSE', 'QMA', 'Pembangkit', 'Bendungan', 'Teknik', 'Logistik', 'Security']; $allUnits = collect($defaultUnits); if (isset($unitKerjaList)) { $allUnits = $allUnits->merge($unitKerjaList)->filter()->unique()->values(); } @endphp @foreach($allUnits as $unit) @can('hse.employees.delete') @endcan
@endsection