@extends('layouts.app') @section('title', 'Jurnal interogări') @section('content')

Jurnal interogări

Împrospătează
@forelse($recentQueries as $query) @php $reason = $query['reason'] ?? ''; $isBlocked = $reason === 'FilteredBlackList' || $reason === 'FilteredBlockedService' || $reason === 'FilteredSafeBrowsing' || $reason === 'FilteredParental'; $statusLabel = 'Tratat'; $statusIcon = ''; $rowClass = ''; if ($reason === 'FilteredBlackList') { $statusLabel = 'Blocat de filtru'; $statusIcon = ''; $rowClass = 'bg-danger bg-opacity-10'; } elseif ($reason === 'FilteredBlockedService') { $statusLabel = 'Serviciu blocat'; $statusIcon = ''; $rowClass = 'bg-danger bg-opacity-10'; } elseif ($reason === 'FilteredSafeBrowsing') { $statusLabel = 'Malware/Phishing'; $statusIcon = ''; $rowClass = 'bg-danger bg-opacity-10'; } elseif ($reason === 'FilteredParental') { $statusLabel = 'Conținut Adult'; $statusIcon = ''; $rowClass = 'bg-warning bg-opacity-10'; } elseif ($reason === 'SafeSearch') { $statusLabel = 'Căutare Sigură'; $statusIcon = ''; } elseif ($reason === 'FilteredWhiteList' || str_contains($reason, 'WhiteList')) { $statusLabel = 'Permis (Alb)'; $statusIcon = ''; } elseif ($reason === 'Rewrite') { $statusLabel = 'Rescris'; $statusIcon = ''; } $domain = $query['question']['name'] ?? 'Necunoscut'; $type = $query['question']['type'] ?? 'A'; $clientIp = $query['client'] ?? ''; $clientName = $clientMap[$clientIp] ?? ''; if (!$clientName) { $subnet = substr($clientIp, 0, strrpos($clientIp, '.')) . '.0'; $clientName = $clientMap[$subnet] ?? $clientIp; } $elapsed = isset($query['elapsed']) ? round($query['elapsed'] * 1000, 2) . ' ms' : '< 1ms'; $time = isset($query['time']) ? $query['time'] : ''; // Format this if needed @endphp @empty @endforelse
Stare Ora Domeniu Client Răspuns
{!! $statusIcon !!} {{ $statusLabel }}
{{ \Carbon\Carbon::parse($query['time'])->setTimezone('Europe/Bucharest')->format('H:i') }}
{{ $domain }} Tip: {{ $type }}
{{ $clientName }} {{ $clientIp }}
{{ $elapsed }}
Nu există interogări recente pentru IP-ul tău.
@endsection