@extends('layouts.school') @section('title', 'Announcements') @section('header', 'Announcements') @section('content')
+ New Announcement
@forelse($announcements as $a)
{{ $a->title }}
{{ $a->creator->name ?? '—' }} {{ $a->created_at->diffForHumans() }} To: {{ $a->audience }}
{{ $a->is_published ? 'Published' : 'Draft' }}

{{ Str::limit(strip_tags($a->body), 200) }}

@empty
No announcements yet.
@endforelse
{{ $announcements->links() }}
@endsection