Total: {{ $announcements->total() }}
{{ __('Ordered latest first') }}
| {{ __('Title') }} |
{{ __('Type') }} |
{{ __('Priority') }} |
{{ __('Status') }} |
{{ __('Created By') }} |
{{ __('Published At') }} |
{{ __('Actions') }} |
@forelse($announcements as $announcement)
@php($status = $announcement->workflowStatus())
|
{{ $announcement->title }}
|
{{ __(ucfirst($announcement->announcement_type)) }}
|
{{ __(ucfirst($announcement->priority)) }}
|
@if($status === 'published')
{{ __('Published') }}
@elseif($status === 'approved')
{{ __('Approved') }}
@elseif($status === 'rejected')
{{ __('Rejected') }}
@else
{{ __('Pending') }}
@endif
@if($announcement->isExpired())
{{ __('Expired') }}
@endif
|
{{ $announcement->creator?->name ?? __('System') }} |
{{ $announcement->publish_at?->format('Y-m-d H:i') ?? '-' }} |
@if($canApprove && $announcement->approval_status !== 'approved')
@endif
@if($canPublish && $announcement->publish_at === null)
@endif
|
@empty
| {{ __('No notices/announcements found.') }} |
@endforelse
{{ $announcements->links('pagination::bootstrap-5') }}