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

DETAIL PERMIT

Permit ini meminta untuk diubah statusnya menjadi selesai.

@if (!empty($list))
Status Approval Selesai
@php $statusMap = [ 'T' => ['label' => 'Tolak', 'class' => 'bg-danger'], 'TR' => ['label' => 'Terima', 'class' => 'bg-success'], 'P' => ['label' => 'Pending', 'class' => 'bg-primary'], ]; @endphp {{-- === PIC Kerja === --}} @php $statusPicker = $statusMap[$list->picker_setuju_selesai ?? 'P'] ?? [ 'label' => '-', 'class' => 'bg-secondary', ]; $notesPicker = array_filter( array_map( 'trim', explode(';', $list->note_selesai_reject_picker ?? ''), ), ); @endphp
PIC Kerja

Status: {{ $statusPicker['label'] }}

@if (!empty($notesPicker))

Catatan:

    @foreach ($notesPicker as $i => $note)
  • {{ $note }} @if ($loop->last) Revisi Terakhir @endif
  • @endforeach
@endif
{{-- === PIC Area === --}} @php $statusPicare = $statusMap[$list->picare_setuju_selesai ?? 'P'] ?? [ 'label' => '-', 'class' => 'bg-secondary', ]; $notesPicare = array_filter( array_map( 'trim', explode(';', $list->note_selesai_reject_picare ?? ''), ), ); @endphp
PIC Area

Status: {{ $statusPicare['label'] }}

@if (!empty($notesPicare))

Catatan:

    @foreach ($notesPicare as $i => $note)
  • {{ $note }} @if ($loop->last) Revisi Terakhir @endif
  • @endforeach
@endif
{{-- === K3 === --}} @php $statusK3 = $statusMap[$list->k3_setuju_selesai ?? 'P'] ?? [ 'label' => '-', 'class' => 'bg-secondary', ]; $notesK3 = array_filter( array_map('trim', explode(';', $list->note_selesai_reject_k3 ?? '')), ); @endphp
K3

Status: {{ $statusK3['label'] }}

@if (!empty($notesK3))

Catatan:

    @foreach ($notesK3 as $i => $note)
  • {{ $note }} @if ($loop->last) Revisi Terakhir @endif
  • @endforeach
@endif
@endif

1. Data Administrasi

@if ($list->iddepart === 'DP008')
@elseif($list->idvendor === 'VND0001')
@endif
{{-- tampilkan field PO jika veneks --}} @if ($list->no_po !== 'Tidak Perlu')
@else
@endif

2. Surat Izin Kerja K3




@foreach ($kategori as $item)
id, $existingKategoriIds) ? 'checked' : '' }} disabled>
@endforeach
@foreach ($alat as $item)
id, $existingApdIds) ? 'checked' : '' }} disabled>
@endforeach

{{-- Script untuk Modal --}}

3. Job Safety Analysis

@if (!empty($hasK3EditedJsa) && $hasK3EditedJsa)

Informasi: Baris dengan K3 dan highlight hijau menandakan JSA yang telah diedit/ditambahkan oleh tim K3.

@endif
@foreach ($analisis as $index => $item) @php $isEditedByK3 = isset($item->sts_k3) && $item->sts_k3 === '1'; @endphp @endforeach
No Urutan Langkah Tugas Potensi Bahaya Akibat/Kerugian Rekomendasi Pencegahan
{{ $index + 1 }} @if($isEditedByK3)
K3 @endif
@if(!empty($showK3Highlight)) Highlight hijau JSA : Update dari K3. @endif

4. Keterangan Pemakaian Workshop Kontraktor

@if (($list->workshop_kontraktor ?? null) === 'Ya') Ya @elseif (($list->workshop_kontraktor ?? null) === 'Tidak') Tidak @else — @endif

@if (($list->workshop_kontraktor ?? null) === 'Ya')

@php $opsiLabel = [ '1' => '1', '2' => '2', '3' => '3', 'Other' => 'Other', ]; @endphp {{ $opsiLabel[$list->workshop_kontraktor_opsi] ?? $list->workshop_kontraktor_opsi ?? '—' }}

@if (strtolower($list->workshop_kontraktor_opsi ?? null) === 'wrk0001')

{{ $list->workshop_kontraktor_other ?? '—' }}

@endif @endif

5. Bukti Pendukung


Foto APD

Foto Alat Kerja



6. Persetujuan

6. Hasil Checklist K3

@if (is_null($list->pertanyaan_1))

Masih belum dinilai K3 karena belum memenuhi syarat

@else

Telah Disetujui dan diperiksa oleh K3, pada: {{ $list->approve_k3 }}

@endif
pertanyaan_1 === 'Iya' ? 'checked' : '' }} disabled>
pertanyaan_1 === 'Tidak' ? 'checked' : '' }} disabled>
pertanyaan_2 === 'Iya' ? 'checked' : '' }} disabled>
pertanyaan_2 === 'Tidak' ? 'checked' : '' }} disabled>
pertanyaan_3 === 'Iya' ? 'checked' : '' }} disabled>
pertanyaan_3 === 'Tidak' ? 'checked' : '' }} disabled>
pertanyaan_4 === 'Iya' ? 'checked' : '' }} disabled>
pertanyaan_4 === 'Tidak' ? 'checked' : '' }} disabled>
pertanyaan_4 === 'N/A' ? 'checked' : '' }} disabled>
pertanyaan_5 === 'Iya' ? 'checked' : '' }} disabled>
pertanyaan_5 === 'Tidak' ? 'checked' : '' }} disabled>
{{-- check flag js on dmenu --}} @if ($jsmenu == '1') @if (view()->exists("js.{$dmenu}")) @push('addjs') {{-- file js in folder (resources/views/js) --}} @include('js.' . $dmenu); @endpush @else @push('addjs') @endpush @endif @endif @endsection @push('js') @endpush