@php $announcements = $announcements->where('is_public', 1)->where('is_active', 1); @endphp @if($announcements->isNotEmpty())
@if ($announcements->count() > 1) @include('plugins/announcement::partials.controls') @endif @each('plugins/announcement::partials.item', $announcements, 'announcement')
@if (setting('announcement_dismissible', false)) @include('plugins/announcement::partials.dismiss', [ 'announcementIds' => $announcements->pluck('id')->toJson(), ]) @endif
@endif {{--
--}}