{{ __('Estatísticas de Login') }}

Voltar aos Logs

Estatísticas Gerais

{{ $stats['total'] }}
Total de Tentativas
{{ $stats['success'] }}
Sucessos
@if($stats['total'] > 0)
{{ number_format(($stats['success'] / $stats['total']) * 100, 1) }}%
@endif
{{ $stats['failed'] }}
Falhas
@if($stats['total'] > 0)
{{ number_format(($stats['failed'] / $stats['total']) * 100, 1) }}%
@endif
{{ $stats['blocked'] }}
Bloqueados
@if($stats['total'] > 0)
{{ number_format(($stats['blocked'] / $stats['total']) * 100, 1) }}%
@endif
{{ $stats['unique_ips'] }}
IPs Únicos
{{ $stats['unique_emails'] }}
E-mails Únicos

Top 10 IPs com Mais Tentativas

@if($stats['top_ips']->count() > 0)
@foreach($stats['top_ips'] as $ip)
{{ $ip->ip_address }}
{{ $ip->attempts }} tentativas
@endforeach
@else

Nenhum dado disponível.

@endif

Top 10 E-mails com Mais Tentativas

@if($stats['top_emails']->count() > 0)
@foreach($stats['top_emails'] as $email)
{{ $email->email }}
{{ $email->attempts }} tentativas
@endforeach
@else

Nenhum dado disponível.

@endif
@if($stats['hourly_attempts']->count() > 0)

Tentativas por Hora (Últimas 24h)

@for($hour = 0; $hour < 24; $hour++) @php $hourData = $stats['hourly_attempts']->where('hour', $hour)->first(); $attempts = $hourData ? $hourData->attempts : 0; $maxAttempts = $stats['hourly_attempts']->max('attempts'); $height = $maxAttempts > 0 ? ($attempts / $maxAttempts) * 100 : 0; @endphp
{{ $hour }}h
{{ $attempts }}
@endfor
@endif

Alertas de Segurança

@if($stats['blocked'] > 0)

{{ $stats['blocked'] }} tentativas foram bloqueadas

Isso indica possíveis tentativas de força bruta ou ataques automatizados.

@endif @if($stats['failed'] > $stats['success'])

Taxa de falha alta detectada

Mais tentativas falharam do que tiveram sucesso. Considere revisar as políticas de segurança.

@endif @if($stats['unique_ips'] > 50)

Muitos IPs únicos detectados

{{ $stats['unique_ips'] }} IPs únicos podem indicar tráfego anormal ou ataques distribuídos.

@endif @if($stats['total'] == 0)

Nenhuma tentativa de login registrada

O sistema de logs está funcionando, mas ainda não há dados para análise.

@endif