@extends('layouts.app') @section('title', 'All Notifications') @section('page-title', 'Notifications') @section('content')
All Notifications
@php $unread = $notifications->getCollection()->where('read_at', null)->count(); @endphp @if($unread > 0) {{ $unread }} unread @else All caught up! @endif
@forelse($notifications as $notif)
{{-- Icon --}}
{{-- Content --}}
{{ $notif->title }} @if(!$notif->isRead()) New @endif
{{ $notif->created_at->diffForHumans() }}

{{ $notif->message }}

{{ $notif->created_at->format('d M Y, h:i A') }} {{-- Link to task if available --}} @if(!empty($notif->data['task_id'])) @endif
@empty

No notifications yet.

You'll see updates here when tasks are assigned or reviewed.
@endforelse
@if($notifications->hasPages()) @endif
@endsection