公告詳情

← 返回列表 @if($announcement->canBeEditedBy(auth()->user())) 編輯公告 @endif
@if (session('status'))

{{ session('status') }}

@endif @if (session('error'))

{{ session('error') }}

@endif

@if($announcement->is_pinned) 📌 @endif {{ $announcement->title }}

{{ $announcement->getStatusLabel() }}
{{ $announcement->content }}

公告資訊

存取權限
{{ $announcement->getAccessLevelLabel() }}
瀏覽次數
{{ $announcement->view_count }}
建立者
{{ $announcement->creator->name ?? 'N/A' }}
建立時間
{{ $announcement->created_at->format('Y-m-d H:i:s') }}
@if($announcement->published_at)
發布時間
{{ $announcement->published_at->format('Y-m-d H:i:s') }} @if($announcement->isScheduled()) 排程中 @endif
@endif @if($announcement->expires_at)
過期時間
{{ $announcement->expires_at->format('Y-m-d H:i:s') }} @if($announcement->isExpired()) 已過期 @endif
@endif @if($announcement->lastUpdatedBy)
最後更新者
{{ $announcement->lastUpdatedBy->name }}
最後更新時間
{{ $announcement->updated_at->format('Y-m-d H:i:s') }}
@endif
@if($announcement->canBeEditedBy(auth()->user()))

操作

@if($announcement->isDraft() && auth()->user()->can('publish_announcements'))
@csrf
@endif @if($announcement->isPublished() && auth()->user()->can('publish_announcements'))
@csrf
@endif @if(!$announcement->is_pinned && auth()->user()->can('edit_announcements'))
@csrf
@endif @if($announcement->is_pinned && auth()->user()->can('edit_announcements'))
@csrf
@endif @if(auth()->user()->can('delete_announcements'))
@csrf @method('DELETE')
@endif
@endif