Perbaiki penanganan data null pada foto lampiran
- Tambahkan default nilai kosong ("") untuk variabel `name_objek` jika null.
- Hapus spasi berlebih dalam struktur HTML untuk meningkatkan kerapihan kode.
This commit is contained in:
@@ -61,14 +61,11 @@
|
|||||||
<div class="flex items-center justify-between mt-5">
|
<div class="flex items-center justify-between mt-5">
|
||||||
<div class="grid gap-5">
|
<div class="grid gap-5">
|
||||||
<h2 class=" font-semibold text-xl">
|
<h2 class=" font-semibold text-xl">
|
||||||
{{ $item['name_objek'] }}
|
{{ $item['name_objek'] ?? "" }}
|
||||||
</h2>
|
</h2>
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
|
|
||||||
|
|
||||||
<img src="{{ Storage::url($item['foto_objek']) }}" alt=""
|
<img src="{{ Storage::url($item['foto_objek']) }}" alt=""
|
||||||
class="w-full h-auto object-cover">
|
class="w-full h-auto object-cover">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user