@if($showNotifications)

{{ __('Updates') }}

@if($unreadCount > 0) @endif
@if($notifications->count() > 0)
@foreach($notifications as $notification)
@if($notification->data['type'] === 'mention') @ @else ! @endif
@if($notification->data['type'] === 'mention') {{ $notification->data['mentioned_by_name'] }} {{ __('mentioned you') }} @else {{ $notification->data['title'] ?? __('Update') }} @endif
{{ $notification->created_at->diffForHumans() }}
@if($notification->data['type'] === 'mention') {{ $notification->data['mention_text'] }} @else {{ $notification->data['message'] ?? '' }} @endif
@if($notification->data['type'] === 'mention' && isset($notification->data['context_title']))
@if(!$notification->read_at) @endif
@endif
@if(!$notification->read_at) @endif
@endforeach
@if($notifications->hasPages())
{{ $notifications->links() }}
@endif @else

{{ __('No updates') }}

{{ __('You\'re all caught up!') }}

@endif
@endif