@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
Detail Rekap Pelanggaran

NIK: {{ $row['nik'] }} | Nama: {{ $row['nama_karyawan'] }} | Departemen: {{ $row['departemen'] }} | Grup: {{ $row['nama_grup'] }}

@if($is_ua_visible ?? true) {{-- Card 1: List Unsafe Action --}}
@php $totalUaDitolak = 0; $totalUaSelesai = 0; foreach (($row['ua_list'] ?? []) as $uaItem) { if (($uaItem['status'] ?? '') === 'ditolak') { $totalUaDitolak++; } elseif (($uaItem['status'] ?? '') === 'selesai') { $totalUaSelesai++; } } @endphp
List Unsafe Action
Total Ditolak: {{ $totalUaDitolak }} Total Selesai: {{ $totalUaSelesai }}

@forelse ($row['ua_list'] ?? [] as $idx => $ua) @empty {{-- DataTables akan menampilkan pesan zeroRecords --}} @endforelse
Action No Tanggal Kejadian Lokasi Jenis Pelanggaran Deskripsi Pelanggaran Catatan Catatan Tambahan Status
View
{{ $idx + 1 }} {{ $ua['tanggal_kejadian'] }} {{ $ua['lokasi'] }} {{ $ua['nama_pelanggaran'] ?? '-' }} {{ $ua['deskripsi_pelanggaran'] }} {{ $ua['catatan'] }} @if(($ua['status'] ?? '') === 'ditolak') {{ $ua['alasan_penolakan'] ?: '-' }} @elseif(($ua['status'] ?? '') === 'selesai') {{ $ua['catatan_system'] ?: '-' }} @else - @endif @if(($ua['status'] ?? '') === 'ditolak') Ditolak @else Selesai @endif
@endif {{-- Card 2: List Surat Peringatan --}}
List Surat Peringatan

@forelse ($row['sp_list'] ?? [] as $idx => $history) @php $isForceClosed = ($history['status'] ?? '') === 'force_closed'; @endphp @empty {{-- DataTables akan menampilkan pesan zeroRecords --}} @endforelse
Action No Tanggal Surat Nomor Surat Jenis Surat PKB Keterangan HRD Status Akhir
View
{{ $idx + 1 }} {{ $history['tanggal_sp'] }} {{ $history['nomor_surat'] ?? '-' }} {{ $history['surat'] }} {{ $history['pkb'] ?? '-' }} {{ $history['keterangan_hrd'] ?? '-' }} @if($isForceClosed) Ditutup Sepihak @if(!empty($history['ditutup_at']))
{{ date('d M Y H:i', strtotime($history['ditutup_at'])) }} @endif @else Selesai @endif
@if($is_st_visible ?? (($is_hrd ?? false) || ($is_spv ?? false))) {{-- Card 3: List Surat Teguran --}}
List Surat Teguran

@forelse ($row['st_list'] ?? [] as $idx => $history) @php $isForceClosed = ($history['status'] ?? '') === 'force_closed'; @endphp @empty {{-- DataTables akan menampilkan pesan zeroRecords --}} @endforelse
Action No Tanggal Surat Nomor Surat Jenis Surat PKB Keterangan HRD Status Akhir
View
{{ $idx + 1 }} {{ $history['tanggal_sp'] }} {{ $history['nomor_surat'] ?? '-' }} {{ $history['surat'] }} {{ $history['pkb'] ?? '-' }} {{ $history['keterangan_hrd'] ?? '-' }} @if($isForceClosed) Ditutup Sepihak @if(!empty($history['ditutup_at']))
{{ date('d M Y H:i', strtotime($history['ditutup_at'])) }} @endif @else Selesai @endif
@endif
{{-- Preview Modal --}} @push('js') @endpush @endsection