{{-- Header --}}

{{ __('Announcements') }}

{{ __('Stay updated with the latest from your school') }}

{{-- Announcements List --}}
@forelse($announcements as $announcement)
@if($announcement->is_sticky) 📌 @endif

{{ $announcement->title }}

@if($announcement->published_at) {{ __('Published') }} @else {{ __('Draft') }} @endif

{{ Str::limit($announcement->content, 300) }}

{{ __('By') }} {{ $announcement->creator?->name ?? 'System' }} @if($announcement->published_at) {{ $announcement->published_at->diffForHumans() }} @endif
@foreach($announcement->targets->pluck('role') as $role) {{ $role }} @endforeach
@empty " :title="__('No Announcements Yet')" :message="__('There are no announcements to display at this time. Check back later!')" /> @endforelse
{{-- Pagination --}} @if(method_exists($announcements, 'links'))
{{ $announcements->links() }}
@endif