@extends('layouts.app') @section('title', 'Spam Detection - Admin') @section('content')
{{-- Page Header --}}

Spam Detection

Review suspicious comments and IPs for potential spam activity

Back to Comments
{{-- Suspicious Comments --}}
Suspicious Comments {{ $spamIndicators['suspicious_comments']->count() }}
@if($spamIndicators['suspicious_comments']->count() > 0)
@foreach($spamIndicators['suspicious_comments'] as $comment)
{{ $comment->name ?? 'Anonymous' }} @if($comment->email) {{ $comment->email }} @endif

{{ Str::limit($comment->comment, 150) }}

{{ $comment->created_at?->diffForHumans() }} @if($comment->ip_address) | {{ $comment->ip_address }} @endif
@csrf
@csrf @method('PATCH')
@endforeach
@else
No suspicious comments detected

Your comment section looks clean

@endif
{{-- Suspicious IPs --}}
Suspicious IP Addresses {{ $spamIndicators['suspicious_ips']->count() }}
@if($spamIndicators['suspicious_ips']->count() > 0)
@foreach($spamIndicators['suspicious_ips'] as $ip)
{{ $ip->ip_address }} {{ $ip->comment_count }} comments
@csrf
@endforeach
@else
No suspicious IPs detected

No IP addresses with excessive comments

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