update print out laporan
This commit is contained in:
95
resources/views/penilai/components/foto-jaminan.blade.php
Normal file
95
resources/views/penilai/components/foto-jaminan.blade.php
Normal file
@@ -0,0 +1,95 @@
|
||||
<div>
|
||||
@if (isset($formFoto['rute_menuju_lokasi']))
|
||||
@foreach ($formFoto['rute_menuju_lokasi'] as $item)
|
||||
<div class="border photo-item">
|
||||
<h2 class="text-gray-600 font-semibold text-xl">
|
||||
{{ $item['name_rute'] . ' ' . $loop->index + 1 }}
|
||||
</h2>
|
||||
|
||||
@php
|
||||
$imagePath = $statusLpj
|
||||
? asset('storage/' . $item['foto_rute'])
|
||||
: storage_path('app/public/' . $item['foto_rute']);
|
||||
@endphp
|
||||
|
||||
@if ($statusLpj || file_exists(storage_path('app/public/' . $item['foto_rute'])))
|
||||
<img src="{{ $imagePath }}" alt="{{ $item['foto_rute'] }}" class="photo-image">
|
||||
@endif
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@if (isset($formFoto['object_jaminan']))
|
||||
@foreach ($formFoto['object_jaminan'] as $item)
|
||||
<div class="border photo-item">
|
||||
<h2 class="text-gray-600 font-semibold text-xl">
|
||||
{{ $item['name_objek'] }}
|
||||
</h2>
|
||||
|
||||
@php
|
||||
$imagePath = $statusLpj
|
||||
? asset('storage/' . $item['foto_objek'])
|
||||
: storage_path('app/public/' . $item['foto_objek']);
|
||||
@endphp
|
||||
|
||||
@if ($statusLpj || file_exists(storage_path('app/public/' . $item['foto_objek'])))
|
||||
<img src="{{ $imagePath }}" alt="{{ $item['foto_objek'] }}" class="photo-image">
|
||||
@endif
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@if (isset($formFoto['foto_basement']))
|
||||
<div class="border photo-item">
|
||||
<h2 class="text-gray-600 font-semibold text-xl">
|
||||
Basement
|
||||
</h2>
|
||||
|
||||
@php
|
||||
$imagePath = $statusLpj
|
||||
? asset('storage/' . $formFoto['foto_basement'])
|
||||
: storage_path('app/public/' . $formFoto['foto_basement']);
|
||||
@endphp
|
||||
|
||||
@if ($statusLpj || file_exists(storage_path('app/public/' . $formFoto['foto_basement'])))
|
||||
<img src="{{ $imagePath }}" alt="{{ $formFoto['foto_basement'] }}" class="photo-image">
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (isset($formFoto['foto_gerbang']))
|
||||
<div class="border photo-item">
|
||||
<h2 class="text-gray-600 font-semibold text-xl">
|
||||
Gerbang
|
||||
</h2>
|
||||
|
||||
@php
|
||||
$imagePath = $statusLpj
|
||||
? asset('storage/' . $formFoto['foto_gerbang'])
|
||||
: storage_path('app/public/' . $formFoto['foto_gerbang']);
|
||||
@endphp
|
||||
|
||||
@if ($statusLpj || file_exists(storage_path('app/public/' . $formFoto['foto_gerbang'])))
|
||||
<img src="{{ $imagePath }}" alt="{{ $formFoto['foto_gerbang'] }}" class="photo-image">
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (isset($formFoto['pendamping']))
|
||||
<div class="border photo-item">
|
||||
<h2 class="text-gray-600 font-semibold text-xl">
|
||||
Pendamping
|
||||
</h2>
|
||||
|
||||
@php
|
||||
$imagePath = $statusLpj
|
||||
? asset('storage/' . $formFoto['pendamping'])
|
||||
: storage_path('app/public/' . $formFoto['pendamping']);
|
||||
@endphp
|
||||
|
||||
@if ($statusLpj || file_exists(storage_path('app/public/' . $formFoto['pendamping'])))
|
||||
<img src="{{ $imagePath }}" alt="{{ $formFoto['pendamping'] }}" class="photo-image">
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
Reference in New Issue
Block a user