@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => '']) @php $printUrl = !empty($idPermitEnc) ? rtrim(url('trperl'), '/') . '/print/' . rawurlencode($idPermitEnc) : null; $detailUrl = !empty($idPermitEnc) ? rtrim(url('trperl'), '/') . '/show/' . rawurlencode($idPermitEnc) : null; @endphp
@if ($errors->any())
Validasi gagal:
@endif @if (session('message'))
{{ session('message') }}
@endif
@csrf @method('PUT')
Edit Penilaian Permit
Permit #{{ $list->id_permit }} - {{ $list->uraian_pekerjaan }}
1. Kualifikasi Penilaian
@foreach ($mst_feedback_criteria as $index => $criteria) @php $isWajib = (int) ($criteria->wajib ?? 1) === 1; $selectedScore = old( 'score_' . $criteria->id, $selectedScores[$criteria->id] ?? null, ); @endphp
@endforeach

2. Sanksi Kontraktor

3. Insiden Kerja

{{-- FOTO PENDUKUNG --}}
4. Foto Pendukung
{{-- Foto lama --}} @foreach ($fotoPenilaian as $index => $foto) @php $fotoUrl = str_starts_with($foto->file_path, 'http://') || str_starts_with($foto->file_path, 'https://') ? $foto->file_path : asset('storage/' . ltrim($foto->file_path, '/')); @endphp
Foto Pendukung {{ $index + 1 }}
Foto Pendukung {{ $index + 1 }} Foto tersimpan
@endforeach {{-- Tombol tambah foto --}}
Maksimal ukuran: 2048 KB per foto Format: PNG, JPG, JPEG
Foto lama tetap tersimpan selama tidak dihapus. Foto baru akan ditambahkan saat update.
{{-- KANAN: PREVIEW PDF --}}
Preview Detail Permit
{{-- User bisa cek ulang detail permit dari PDF ini --}}
@if ($detailUrl) Detail @endif
@if ($printUrl)
Memuat preview PDF...
@else
ID preview permit tidak ditemukan.
@endif
@endsection @push('js') @endpush