[Mahasiswa] Pembaruan Laman dan Deleted Pengumuman
This commit is contained in:
@@ -64,27 +64,5 @@
|
||||
@endif
|
||||
</x-glass.panel>
|
||||
</div>
|
||||
|
||||
<x-glass.panel as="section" padding="lg" aria-labelledby="judul-pengumuman">
|
||||
<div class="panel-title">
|
||||
<h2 id="judul-pengumuman">Pengumuman terbaru</h2>
|
||||
<x-ui.button variant="ghost" size="sm" :href="route('admin.pengumuman.index')" icon="arrow-right">Kelola pengumuman</x-ui.button>
|
||||
</div>
|
||||
@if ($pengumuman->isEmpty())
|
||||
<x-ui.empty icon="megaphone" title="Belum ada pengumuman terbit" />
|
||||
@else
|
||||
<ul class="list">
|
||||
@foreach ($pengumuman as $item)
|
||||
<li class="list__item">
|
||||
<div class="list__main">
|
||||
<a class="list__title" href="{{ route('pengumuman.show', $item['id']) }}">{{ $item['judul'] }}</a>
|
||||
<span class="list__meta">{{ $item['penulis'] }}, {{ $tanggal($item['tanggal']) }}</span>
|
||||
</div>
|
||||
<x-ui.badge :tone="$item['audiens'] === 'Semua pengguna' ? 'accent' : 'gold'">{{ $item['audiens'] }}</x-ui.badge>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
</x-glass.panel>
|
||||
</div>
|
||||
</x-layouts.app>
|
||||
|
||||
Reference in New Issue
Block a user