Commit awal: prototipe UI SIAKAD Untan
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<x-layouts.app :title="$item['judul']">
|
||||
<x-ui.page-header
|
||||
:title="$item['judul']"
|
||||
:breadcrumbs="['Pengumuman' => route('pengumuman.index'), 'Detail' => null]"
|
||||
>
|
||||
<x-slot:actions>
|
||||
<x-ui.button variant="secondary" :href="route('pengumuman.index')" icon="arrow-left">Semua pengumuman</x-ui.button>
|
||||
</x-slot:actions>
|
||||
</x-ui.page-header>
|
||||
|
||||
<x-glass.panel as="article" padding="lg" class="grid gap-6">
|
||||
<div class="flex flex-wrap items-center gap-3 text-sm text-muted">
|
||||
<x-ui.badge :tone="$item['audiens'] === 'Semua pengguna' ? 'accent' : 'gold'">{{ $item['audiens'] }}</x-ui.badge>
|
||||
<span>{{ $item['penulis'] }}</span>
|
||||
<time datetime="{{ $item['tanggal'] }}">{{ \Illuminate\Support\Carbon::parse($item['tanggal'])->locale('id')->isoFormat('dddd, D MMMM YYYY') }}</time>
|
||||
</div>
|
||||
<div class="grid gap-4 text-ink-2">
|
||||
@foreach (preg_split('/\n{2,}/', $item['isi']) as $paragraph)
|
||||
<p>{{ $paragraph }}</p>
|
||||
@endforeach
|
||||
</div>
|
||||
</x-glass.panel>
|
||||
</x-layouts.app>
|
||||
Reference in New Issue
Block a user