@extends('layouts.parent') @section('title', 'Notification Inbox - Kidscholl') @section('styles') @endsection @section('content')

Notification Inbox

Stay informed with updates, announcements, and notices regarding your child's academic activities.

Total Logs: {{ $logs->count() }}
Filter Messages
@if(request()->anyFilled(['search', 'category'])) Clear Filters @endif
@forelse($logs as $log) @php $isUnread = ($log->status != 'Read'); $catClass = 'category-' . strtolower($log->notification->category); @endphp
@if($isUnread) @endif
{{ $log->notification->category }} {{ $log->notification->created_at->format('d M Y - h:i A') }}
{{ $log->notification->title }}

{{ $log->notification->description }}

@if($isUnread) Mark as Read @else Read receipt logged at {{ \Carbon\Carbon::parse($log->read_at)->format('H:i') }} @endif
@if($log->notification->attachment_path) Download Circular PDF @endif
@empty
No Notifications Found

We couldn't find any circular notifications matching your filters.

@endforelse
@endsection