diff --git a/resources/views/forms/anonim-modal.blade.php b/resources/views/forms/anonim-modal.blade.php index 17c52a8b8b..437a846621 100644 --- a/resources/views/forms/anonim-modal.blade.php +++ b/resources/views/forms/anonim-modal.blade.php @@ -33,12 +33,12 @@ $('#anonim-modal').on('show.bs.modal', function(e) { // Ambil teks dari kolom 'anonim' var anonimValue = _trSelected.find('td.anonim').text().trim(); - + // Konversi teks ke nilai yang sesuai var selectValue = (anonimValue === 'Disembunyikan') ? '1' : '0'; - + // Set nilai select - $(this).find('select').val(selectValue); + $(this).find('select').val(selectValue); }); }); diff --git a/resources/views/sistem_komplain/komplain/index.blade.php b/resources/views/sistem_komplain/komplain/index.blade.php index ed04b82412..778a19fc72 100644 --- a/resources/views/sistem_komplain/komplain/index.blade.php +++ b/resources/views/sistem_komplain/komplain/index.blade.php @@ -18,7 +18,7 @@ {{ $item->judul }} {{ $item->kategori_komplain->nama }} - {{ (auth()->guest() && $item->anonim) ? 'Anonim' : $item->nama }} melaporkan - {{ diff_for_humans($item->created_at) }} + {{ auth()->guest() && $item->anonim ? 'Anonim' : $item->nama }} melaporkan - {{ diff_for_humans($item->created_at) }}
{!! get_words($item->laporan, 35) !!} ...
diff --git a/resources/views/sistem_komplain/komplain/show.blade.php b/resources/views/sistem_komplain/komplain/show.blade.php
index ea044f3894..75b771fa0f 100644
--- a/resources/views/sistem_komplain/komplain/show.blade.php
+++ b/resources/views/sistem_komplain/komplain/show.blade.php
@@ -73,7 +73,7 @@
TRACKING ID #{{ $komplain->komplain_id }}
- PELAPOR : {{ (auth()->guest() && $komplain->anonim) ? 'ANONIM' : $komplain->nama }}
+ PELAPOR : {{ auth()->guest() && $komplain->anonim ? 'ANONIM' : $komplain->nama }}