{{-- KPI Stats Grid --}} {{-- New Announcement Button --}}
{{-- Announcements Table --}}

{{ __('Announcements') }}

{{ $announcements->total() ?? count($announcements) }} {{ __('total') }}
@if(count($announcements) > 0)
@foreach($announcements as $announcement) @endforeach
{{ __('Title') }} {{ __('Creator') }} {{ __('Targets') }} {{ __('Status') }} {{ __('Published') }} {{ __('Expires') }}
@if($announcement->is_sticky) 📌 @endif {{ Str::limit($announcement->title, 50) }} {{ $announcement->creator?->name ?? 'System' }} {{ $announcement->targets->pluck('role')->implode(', ') }} @if($announcement->published_at) {{ __('Published') }} @else {{ __('Draft') }} @endif {{ $announcement->published_at?->format('M d, Y H:i') ?? '—' }} {{ $announcement->expires_at?->format('M d, Y H:i') ?? '—' }}
{{-- Pagination --}} @if(method_exists($announcements, 'links'))
{{ $announcements->links() }}
@endif @else @endif
{{-- New Announcement Modal --}}
{{-- Title --}}
{{-- Content --}}

{{-- Target Roles --}}
{{-- Sticky Toggle --}}
{{-- Error Display --}}
@push('scripts') @endpush