@if(count($announcements) > 0)
@php $onIndexPage = Route::currentRouteName() === 'announcements.index'; $displayedAnnouncements = $onIndexPage ? $announcements : $announcements->take(3); @endphp

{{ __('Announcements') }}

{{ __('Stay informed with the latest platform updates and notices.') }}

@foreach($displayedAnnouncements as $announcement)
{{ __('Update') }}
{{ optional($announcement->published_at)->format('M d, Y') ?? $announcement->created_at->format('M d, Y') }}

{{ $announcement->title }}

{{ $announcement->description }}

{{ __('general.view') }}
@endforeach
@if(!$onIndexPage)
{{ __('View More Announcements') }}
@endif
@endif