@extends('layouts.app') @section('title', 'Announcements ยท ' . config('app.name')) @section('page-title', 'Announcements') @section('content')
@forelse($announcements as $announcement)
{{ \App\Models\Announcement::typeLabels()[$announcement->type] }} {{ $announcement->published_at->format('d M Y, h:i A') }}

{{ $announcement->title }}

{{ $announcement->body }}

Published by {{ $announcement->publisher->name }}

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