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

Notifications

@if($notifications->isEmpty())

No notifications yet

You'll see notifications here when someone follows you.

@else
@foreach($notifications as $notification)
@if($notification->type === 'new_follower') @php $data = $notification->data ?? []; @endphp
{{ strtoupper(substr($data['follower_name'] ?? '?', 0, 1)) }}

@if(!empty($data['follower_slug'])) {{ $data['follower_name'] ?? $data['follower_slug'] }} @else Someone @endif started following you

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

@if(!empty($data['follower_slug'])) View profile → @endif @else

{{ $notification->type }}

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

@endif
@endforeach
@endif
@endsection