Dashboard

Recent Notifications

View All →
@php $recentNotifications = auth()->user()->notifications()->latest()->take(5)->get(); @endphp @if($recentNotifications->count() > 0)
@foreach($recentNotifications as $notification)
@if(!$notification->read_at)
@endif

{{ $notification->title }}

{{ $notification->created_at->diffForHumans() }}

{{ Str::limit($notification->message, 100) }}

@endforeach
@else

No recent notifications

@endif