Notifications
{{--
1
--}}

Today

@if(count($today_notifications) > 0) @foreach($today_notifications as $notification)
{{-- --}}

{{ $notification->message }}

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

@if($notification->is_read == 0) @endif
@endforeach @else

No notifications

@endif

This Week

@if(count($last_week_notifications) > 0) @foreach($last_week_notifications as $notification)
{{-- --}}

{{ $notification->message }}

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

@if($notification->is_read == 0) @endif
@endforeach @else

No notifications

@endif @if(count($older_notifications) > 0)

Older notifications

@foreach($older_notifications as $notification)
{{-- --}}

{{ $notification->message }}

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

@if($notification->is_read == 0) @endif
@if($loop->iteration == (count($older_notifications) - 1) && $hasMorePages)
@endif @endforeach @endif