@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => '']) @php $isUnsafeAction = isset($sp['violation_label']) && (stripos($sp['violation_label'], 'unsafe') !== false || stripos($sp['violation_label'], 'ua') !== false); $isST = isset($sp['surat_label']) && stripos($sp['surat_label'], 'Teguran') !== false; $isSP = isset($sp['surat_label']) && stripos($sp['surat_label'], 'Peringatan') !== false; $spEncId = !empty($sp['id']) ? \App\Helpers\Function_Helper::encryptUrlId($sp['id']) : 0; @endphp
Informasi Surat

Data Surat Teguran / Peringatan - Read Only

@if(!$isUnsafeAction) {{-- Radio Button Pilih Jenis Surat (Readonly Display) --}}
@endif {{-- Main Form Fields --}}
{{-- KOLOM KIRI --}}
@if($isST || $isSP)
@endif
{{-- KOLOM KANAN --}}
@if($isSP)
Pilih PKB yang sesuai dengan pelanggaran
@endif @if(!$isUnsafeAction)
Format: NNN.800.ST/SP.M.YY
@endif @if($isST || $isSP)
@endif
{{-- FORM UNSAFE ACTION --}} @if($isUnsafeAction)
Form Unsafe Action
@endif {{-- Status & Force Close Info --}} @if($sp['status'] === 'force_closed' && !empty($sp['catatan_penutupan']))
Status: Ditutup Sepihak oleh HRD
@if(!empty($sp['ditutup_at'])) Ditutup pada: {{ date('d M Y H:i', strtotime($sp['ditutup_at'])) }} @if(!empty($sp['ditutup_by'])) oleh {{ $sp['ditutup_by'] }} @endif @endif
@endif
@push('js') @endpush @endsection