@extends('layouts.app') @php use App\Enums\NotificationType; /** @var \App\Models\Notification[] $notifications */ /** @var int $totalCount */ /** @var int $unreadCount */ /** @var int $readCount */ $typeCounts = $typeCounts ?? []; // Compute totals per group so we can show badges on the filter card. $groupTotals = []; foreach ($typeCounts as $type => $count) { $enum = NotificationType::tryFrom($type); if ($enum) { $group = $enum->group(); $groupTotals[$group] = ($groupTotals[$group] ?? 0) + $count; } } @endphp @section('title', 'Notifications') @section('page-header')
{{ $notification->message }}
{{ $notification->time_ago }}You don't have any notifications at the moment.
@if(request()->hasAny(['filter', 'type', 'from', 'to'])) Clear Filters @endif