@extends('layouts.teacher-portal') @section('title', 'Announcements') @section('header', 'Announcements') @section('content')
@forelse ($announcements as $announcement)

{{ $announcement->title }}

To {{ ucfirst($announcement->audience) }}
{!! nl2br(e($announcement->body)) !!}

Published {{ optional($announcement->published_at)->format('j M Y, g:i A') }} @if ($announcement->creator) · by {{ $announcement->creator->name }} @endif

@empty

No announcements have been published yet.

@endforelse
@if ($announcements->hasPages())
{{ $announcements->links() }}
@endif @endsection