@extends('layouts.app') @section('pageTitle', 'Pusat Informasi') @section('pageDescription', 'Pengumuman dan pembaruan layanan yang dipublikasikan di Kiostore.') @section('pageRobots', $announcements->isEmpty() ? 'noindex, follow' : 'index, follow') @section('content') {{-- HEADER --}}

Pusat Informasi

Pengumuman & update terbaru
{{-- FILTER BAR --}}
{{-- Search --}}
{{-- Show per page --}}
Tampilkan
10
25
50
Semua
data
{{-- Filter tipe --}}
Semua Tipe
INFO
UPDATE
WARNING
PROMO
{{-- LIST --}}
@if($announcements->isEmpty())
Belum ada informasi.
@else @foreach($announcements as $ann)
{{-- Tanggal + Tipe --}}
{{ $ann->published_at?->translatedFormat('d F Y (H:i \W\I\B)') ?? $ann->created_at->translatedFormat('d F Y (H:i \W\I\B)') }} | {{ $ann->type_label }}
{{-- Judul --}}
{{ $ann->title }}
{{-- Gambar --}} @if($ann->image) {{ $ann->title }} @endif {{-- Konten --}}
{!! $ann->content !!}
@endforeach @endif
{{-- Info hasil filter --}} {{-- Empty state filter --}} @endsection