@extends('layouts.main') @section('breadcrumbs') {{ Breadcrumbs::render(request()->route()->getName()) }} @endsection @section('content')
@if (Auth::user()->hasAnyRole(['senior-officer'])) @include('lpj::component.detail-jaminan', [ 'backLink' => 'otorisator.view-laporan', 'queryParams' => [ 'permohonanId' => request()->query('permohonanId'), 'documentId' => request()->query('documentId'), 'inspeksiId' => request()->query('inspeksiId'), 'jaminanId' => request()->query('jaminanId'), 'statusLpj' => 1, ], 'title' => 'Paparan dokument', ]) @else @include('lpj::component.detail-jaminan', [ 'backLink' => 'penilai.show', 'id' => $permohonan->id, 'title' => 'Lampiran foto dan dokumen', ]) @endif @include('lpj::penilai.components.foto-lampiran') @if (isset($formDenah['denahs']) && is_array($formDenah['denahs']) && count($formDenah['denahs']) > 0)
Denah
@foreach ($formDenah['denahs'] as $index => $denah)
@if (isset($denah['foto_denah'])) @php $fileExtension = pathinfo($denah['foto_denah'], PATHINFO_EXTENSION); @endphp @if (in_array($fileExtension, ['jpg', 'jpeg', 'png'])) @elseif($fileExtension === 'pdf') @endif @endif

{{ isset($denah['nama_denah']) ? $denah['nama_denah'] : '' }}

{{ isset($denah['luas_denah']) ? $denah['luas_denah'] . ' m²' : '' }}

@endforeach
@endif @if ($penilai && $penilai->kertas_kerja)
Kertas Kerja
@php $url = ''; $fileName = ''; if ($penilai && $penilai->kertas_kerja) { $url = asset('storage/' . $penilai->kertas_kerja); $fileName = basename($penilai->kertas_kerja); } @endphp @if ($penilai && $penilai->kertas_kerja)

{{ $fileName }}

@else

Belum ada kertas kerja

@endif
@endif
@endsection