@auth @php $popupAnnouncements = collect(); try { $popupAnnouncements = \App\Models\Announcement::active() ->where('show_popup', true) ->get(); } catch (\Exception $e) {} @endphp @if($popupAnnouncements->isNotEmpty())
{{-- Header --}}
Informasi Terbaru
{{-- Content --}}
@foreach($popupAnnouncements as $ann)
{{ $ann->type_label }}
{{ $ann->published_at?->translatedFormat('d F Y, H:i') ?? $ann->created_at->translatedFormat('d F Y, H:i') }} WIB
{{ $ann->title }}
@if($ann->image) {{ $ann->title }} @endif
{!! $ann->content !!}
@endforeach
{{-- Footer --}}
Lihat Semua
@endif @endauth