@extends ("partials.layout") @section ("title", "Notifications") @section ("content")

Notifications

You have {{ $unread_notifications }} unread notifications

@foreach ($processed_notifications as $notification) @if (!$notification ['actor'] || !$notification ['object']) @continue @endif @endforeach
Actor Content Time Read
@if ($notification ['type'] == 'Signup')

{{ $notification ['object']->actor->preferredUsername }}

@else

{{ $notification ['actor']->name }}

@endif
@if ($notification ['type'] == 'Signup')

Joined Ourspace! Say something!!

@elseif ($notification ['type'] == 'Follow')

Followed you

@elseif ($notification ['type'] == 'Unfollow') @if ($notification ["object"]->id == auth ()->user ()->id)

You unfollowed you

@else

Unfollowed {{ $notification ['object']->name }}

@endif @elseif ($notification ['type'] == 'Boost')

Boosted this post

@elseif ($notification ['type'] == 'Like')

Liked this post

@elseif ($notification ['type'] == 'Reply')

Replied to this post

@elseif ($notification ['type'] == 'Mention')

Mentioned you in this post

@endif

{{ $notification ['created_at']->diffForHumans () }}

{{ $notifications->links ("pagination::default") }}
@endsection