Skip to content

Commit

Permalink
Blade Prettier Code
Browse files Browse the repository at this point in the history
  • Loading branch information
yogiperdana authored and github-actions[bot] committed Aug 18, 2024
1 parent 46e99f7 commit 4122b67
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions resources/views/forms/anonim-modal.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});
</script>
2 changes: 1 addition & 1 deletion resources/views/sistem_komplain/komplain/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<a href="{{ route('sistem-komplain.komplain', $item->slug) }}">{{ $item->judul }}</a>
<a href="#" class="pull-right btn-box-tool"><span class="label label-default">{{ $item->kategori_komplain->nama }}</span></a>
</span>
<span class="description">{{ (auth()->guest() && $item->anonim) ? 'Anonim' : $item->nama }} melaporkan - {{ diff_for_humans($item->created_at) }}</span>
<span class="description">{{ auth()->guest() && $item->anonim ? 'Anonim' : $item->nama }} melaporkan - {{ diff_for_humans($item->created_at) }}</span>
</div>
<p>
{!! get_words($item->laporan, 35) !!} ...
Expand Down
2 changes: 1 addition & 1 deletion resources/views/sistem_komplain/komplain/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
<span class="username">
<a href="{{ route('sistem-komplain.komplain', $komplain->slug) }}">TRACKING ID #{{ $komplain->komplain_id }}</a>
</span>
<span class="description">PELAPOR : {{ (auth()->guest() && $komplain->anonim) ? 'ANONIM' : $komplain->nama }}</span>
<span class="description">PELAPOR : {{ auth()->guest() && $komplain->anonim ? 'ANONIM' : $komplain->nama }}</span>
</div>
<!-- /.user-block -->
<br>
Expand Down

0 comments on commit 4122b67

Please sign in to comment.