@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => '']) @php $getPhotoUrl = function ($path) { if (empty($path)) { return asset('storage/noimage.png'); } if (str_starts_with($path, 'http://') || str_starts_with($path, 'https://')) { return $path; } return asset('storage/' . ltrim($path, '/')); }; @endphp
Detail Penilaian
@if ($errors->any())
Validasi gagal:
@endif @if (session('message'))
{{ session('message') }}
@endif
Detail Penilaian Permit
Permit #{{ $list->id_permit }} - {{ $list->uraian_pekerjaan }}
Halaman ini hanya untuk melihat detail penilaian. Data yang sudah selesai tidak dapat diubah dari halaman ini.
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
@if ($fotoPenilaian->isNotEmpty())
@foreach ($fotoPenilaian as $index => $foto) @php $fotoUrl = $getPhotoUrl($foto->file_path); @endphp
{{ $index + 1 }}
Foto Pendukung {{ $index + 1 }}
Foto Pendukung {{ $index + 1 }} Klik untuk melihat gambar
@endforeach
@else
Tidak ada foto pendukung
Tidak ada foto yang disimpan pada penilaian ini.
@endif
@endsection @push('js') @endpush