@extends('layouts.app') @section('content')

Spam Monitoring Dashboard

Monitor and manage spam attempts on your forms

Total Attempts

{{ $stats['total_attempts'] ?? 0 }}

Last {{ $days }} days
Blocked Attempts

{{ $stats['blocked_attempts'] ?? 0 }}

Successfully blocked
Contact Form

{{ $stats['by_form']['contact'] ?? 0 }}

Spam attempts
Career Form

{{ $stats['by_form']['career'] ?? 0 }}

Spam attempts
Spam Types (Last {{ $days }} days)
@if(isset($stats['by_type']) && count($stats['by_type']) > 0)
@foreach($stats['by_type'] as $type => $count) @endforeach
Type Count
@switch($type) @case('honeypot') Honeypot @break @case('timing') Timing @break @case('keywords') Keywords @break @case('patterns') Patterns @break @case('ip_reputation') IP Reputation @break @default {{ ucfirst($type) }} @endswitch {{ $count }}
@else

No spam attempts recorded in the last {{ $days }} days.

@endif
Top Spam IPs (Last {{ $days }} days)
@if(count($topSpamIps) > 0)
@foreach($topSpamIps as $ip) @endforeach
IP Address Attempts Actions
{{ $ip->ip_address }} {{ $ip->attempt_count }}
@else

No spam IPs recorded in the last {{ $days }} days.

@endif
Recent Spam Attempts
@if(count($recentAttempts) > 0)
@foreach($recentAttempts as $attempt) @endforeach
Date/Time IP Address Form Type Spam Type Details Status
{{ $attempt->created_at->format('Y-m-d H:i:s') }} {{ $attempt->ip_address }} @if($attempt->form_type === 'contact') Contact @else Career @endif @switch($attempt->spam_type) @case('honeypot') Honeypot @break @case('timing') Timing @break @case('keywords') Keywords @break @case('patterns') Patterns @break @case('ip_reputation') IP Reputation @break @default {{ ucfirst($attempt->spam_type) }} @endswitch {{ Str::limit($attempt->details, 50) }} @if($attempt->blocked) Blocked @else Detected @endif
@else

No recent spam attempts found.

@endif
@endsection