@extends('layouts.app') @section('title', 'Notifications') @section('content')

Notifications

@if($notifications->total() > 0)
@csrf
@csrf @method('DELETE')
@endif
@if($notifications->count() > 0)
@foreach($notifications as $notification)
@if(isset($notification->data['reactor_avatar']) || isset($notification->data['replier_avatar'])) Avatar @else
@endif
{{ $notification->data['message'] }} @if(isset($notification->data['reaction_emoji'])) {{ $notification->data['reaction_emoji'] }} @endif
@if(isset($notification->data['post_content_preview']))
"{{ $notification->data['post_content_preview'] }}"
@endif
{{ $notification->created_at->diffForHumans() }} @if(!$notification->read_at) Unread @else Read @endif
@if(!$notification->read_at)
@csrf
@endif @if(isset($notification->data['url']))
@csrf
@endif
@csrf @method('DELETE')
@endforeach
{{ $notifications->links() }}
@else
🔔

No notifications yet

You'll see notifications here when someone interacts with your posts or threads. Start engaging with the community to get notified!

@endif
@push('scripts') @endpush @endsection