@extends('school.layouts.app') @section('content')

Notice Board

Manage and broadcast official school announcements.

@foreach($notices->where('is_pinned', 1) as $notice)
Pinned
{{ $notice->category }}
{{ \Carbon\Carbon::parse($notice->published_at)->format('d M, Y') }}

{{ $notice->title }}

{{ $notice->content }}

{{ $notice->target_audience }} @if($notice->attachment)@endif
@csrf @method('DELETE')
@endforeach @foreach($notices->where('is_pinned', 0) as $notice)
{{ $notice->category }}
{{ \Carbon\Carbon::parse($notice->published_at)->format('d M, Y') }}

{{ $notice->title }}

{{ $notice->content }}

{{ $notice->target_audience }} @if($notice->attachment)@endif
@csrf @method('DELETE')
@endforeach @if($notices->isEmpty())

No notices found.

@endif
@endsection