chore: add placeholder data when filter news

This commit is contained in:
myuqinurrohman 2025-04-08 08:10:19 +07:00
parent 63b5a5f7e3
commit 9de927bb7e
2 changed files with 7 additions and 7 deletions

View File

@ -119,28 +119,28 @@
<label class="form-label">Kategori</label>
<div class="form-control-wrap">
<select class="form-select js-select2" name="category">
<option value="all">Semua Kategori</option>
<option value="news">Berita</option>
<option value="announcement">Pengumuman</option>
<option value="all" @selected(isset($category) && $category == 'all')>Semua Kategori</option>
<option value="news" @selected(isset($category) && $category == 'news')>Berita</option>
<option value="announcement" @selected(isset($category) && $category == 'announcement')>Pengumuman</option>
</select>
</div>
</div>
<div class="form-group">
<label class="form-label" for="year">Tahun</label>
<div class="form-control-wrap">
<input type="number" class="form-control" id="year" placeholder="Data berita pada tahun" name="year">
<input type="number" class="form-control" id="year" placeholder="Data berita pada tahun" name="year" value="{{ old('year', $year ?? '') }}">
</div>
</div>
<div class="form-group">
<label class="form-label" for="month">Bulan</label>
<div class="form-control-wrap">
<input type="month" class="form-control" id="month" placeholder="Data berita pada bulan dan tahun" name="month">
<input type="month" class="form-control" id="month" placeholder="Data berita pada bulan dan tahun" name="month" value="{{ old('month', $month ?? '') }}">
</div>
</div>
<div class="form-group">
<label class="form-label" for="date">Tanggal</label>
<div class="form-control-wrap">
<input type="date" class="form-control" id="date" placeholder="Data berita pada bulan dan tahun" name="date">
<input type="date" class="form-control" id="date" placeholder="Data berita pada bulan dan tahun" name="date" value="{{ old('date', $date ?? '') }}">
</div>
</div>
</div>

View File

@ -45,7 +45,7 @@
<span class="profile-ud-label">Link</span>
<span class="profile-ud-value">
@if (filled($news->link))
<a href="{{$news->link}}">{{$news->link}}</a>
<a href="{{$news->link}}" target="__blank">{{$news->link}}</a>
@else
{{'-'}}
@endif