@extends('dashboard.base') @section('content')

Public Notices

{{ $notices->count() }} notice{{ $notices->count() === 1 ? '' : 's' }} available for management

Create Notice
@if(session('success'))
{{ session('success') }}
@endif
@if($notices->isEmpty())
No public notices yet

Create the first notice to make it available for publishing.

Create Notice
@else
@foreach($notices as $notice) @endforeach
Image Notice Type Status Published Expires Actions
@if($notice->image_url) {{ $notice->title }} @else No image @endif
{{ $notice->title }}
#{{ $notice->id }}
{{ $notice->notice_type ?: 'General' }} {{ $notice->status }} {{ $notice->published_date ? $notice->published_date->format('Y-m-d') : 'Not set' }} {{ $notice->expiry_date ? $notice->expiry_date->format('Y-m-d') : 'No expiry' }}
Edit
@csrf @method('DELETE')
@endif
@endsection