@extends('layouts.staff_dashboard')
@section('title', 'Alerts & Notifications')
@section('content')
@php
$today = date('Y-m-d');
$currentCount = 0;
$pastCount = 0;
foreach ($notifications as $n) {
$nDate = date('Y-m-d', strtotime($n->times));
if ($nDate >= $today) {
$currentCount++;
} else {
$pastCount++;
}
}
@endphp
@if(session('success'))
{{ session('success') }}
@endif
@if(session('error'))
{{ session('error') }}
@endif
Broadcast & Announcements
Alerts Management
Broadcast announcements, schedule reminders, and manage active or past student alerts.
Total: {{ $notifications->total() }}
Active: {{ $currentCount }}
Past: {{ $pastCount }}
Showing: {{ $currentCount }}
@include('staff.notification.partials.notifications_grid', ['notifications' => $notifications])
No Matching Alerts
No alerts match your selected filter or search term.