mailwolt/resources/views/livewire/ui/security/fail2-ban-card.blade.php

24 lines
1.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<div wire:poll.30s="refresh" class="glass-card p-4 rounded-2xl border border-white/10 bg-white/5">
<div class="flex items-center justify-between mb-3">
<div class="inline-flex items-center gap-2 bg-white/5 border border-white/10 px-2.5 py-1 rounded-full">
<i class="ph ph-shield-checkered text-white/70 text-[13px]"></i>
<span class="text-[11px] uppercase text-white/70">Fail2Ban</span>
</div>
<span class="px-2 py-0.5 rounded-full border text-xs
{{ $activeBans>0 ? 'text-amber-200 border-amber-400/30 bg-amber-500/10' : 'text-emerald-300 border-emerald-400/30 bg-emerald-500/10' }}">
{{ $activeBans }} aktuell
</span>
</div>
<div class="text-sm text-white/70">Top IPs (letzte Logs):</div>
<ul class="mt-2 space-y-1 text-sm">
@forelse($topIps as $i)
<li class="flex justify-between">
<span class="text-white/80">{{ $i['ip'] }}</span>
<span class="text-white/60">{{ $i['count'] }}</span>
</li>
@empty
<li class="text-white/50"></li>
@endforelse
</ul>
</div>