@extends('layouts.app') @section('title', 'Notices') @php $tone = [ 'General' => 'bg-slate-500/15 text-slate-600', 'Academic' => 'bg-sky-500/15 text-sky-700', 'Events' => 'bg-indigo-500/15 text-indigo-700', 'Emergency' => 'bg-red-500/15 text-red-700', 'Policy' => 'bg-amber-500/15 text-amber-700', ]; @endphp @section('content')

Notices

School-wide communications — announcements, reminders, events

@foreach ($notices as $n)
{{ $n->category }} @if ($n->priority === 'High') High priority @elseif ($n->priority === 'Urgent') Urgent @endif @if ($n->audience && $n->audience !== 'All') {{ $n->audience }} @endif @if ($n->pinned) Pinned @endif
@if (! $showArchived)
@csrf
@endif
@csrf
@if ($showArchived)
@csrf @method('DELETE')
@endif

{{ $n->title }}

{{ $n->body }}

{{ $n->author }} {{ $n->author_role }} {{ $n->notice_date->format('d M Y') }}@if ($n->expires) · expires {{ $n->expires->format('d M Y') }}@endif
@endforeach
{{ $notices->links() }}
@csrf

Publish Notice

@endsection