@extends('layouts.master') @section('page_title', 'Announcements') @section('content')
Announcements
{!! Qs::getPanelOptions() !!}
@forelse($announcements as $a)
@if($a->pinned)@endif {{ $a->title }}
{{ date('jS M, Y', strtotime($a->publish_date)) }}

{{ $a->body }}

{{ $a->audience == 'class' ? 'For '.optional($a->my_class)->name : 'For '.ucfirst($a->audience) }} @if(optional($a->poster)->name) · Posted by {{ $a->poster->name }} @endif
@empty

No announcements right now. Check back later.

@endforelse
@endsection