@extends('layouts.app') @section('page-title', 'Notice Board') @section('content')
@forelse($notices as $notice)

{{ $notice->title }}

{{ $notice->is_active ? 'Active' : 'Inactive' }}

{{ \Str::limit($notice->content, 120) }}

{{ $notice->published_date->format('d M Y') }}
@csrf @method('DELETE')
@empty
No notices found.
@endforelse
@if($notices->hasPages())
{{ $notices->links() }}
@endif @endsection