Perbaiki potensi error pada penamaan rute
- Menambahkan pengecekan null pada properti `name_rute` agar mencegah error ketika data tidak tersedia. - Memastikan aplikasi tetap berjalan lancar meski properti `name_rute` kosong.
This commit is contained in:
@@ -328,7 +328,7 @@
|
|||||||
<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="text-gray-600 font-semibold text-xl">
|
<h2 class="text-gray-600 font-semibold text-xl">
|
||||||
{{ $item['name_rute'] . ' ' . $loop->index + 1 }}
|
{{ ($item['name_rute'] ?? "") . ' ' . $loop->index + 1 }}
|
||||||
</h2>
|
</h2>
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<img src="{{ Storage::url($item['foto_rute']) }}" alt="">
|
<img src="{{ Storage::url($item['foto_rute']) }}" alt="">
|
||||||
|
|||||||
Reference in New Issue
Block a user