37 lines
1.6 KiB
PHP
37 lines
1.6 KiB
PHP
<div class="space-y-4">
|
|
<div class="flex items-center justify-between">
|
|
<h3 class="text-lg font-semibold text-white/90">Aktuell gebannte IPs</h3>
|
|
<button wire:click="refreshList"
|
|
class="inline-flex items-center gap-1.5 rounded-lg border border-white/10 bg-white/5 px-2.5 py-1 text-xs text-white/80 hover:text-white hover:border-white/20">
|
|
<i class="ph ph-arrows-counter-clockwise text-[14px]"></i>
|
|
Aktualisieren
|
|
</button>
|
|
</div>
|
|
|
|
@if (empty($rows))
|
|
<div class="text-white/50 text-sm">Keine aktiven Banns vorhanden.</div>
|
|
@else
|
|
<div class="space-y-3">
|
|
@foreach ($rows as $r)
|
|
<div class="flex items-center justify-between rounded-2xl border px-4 py-2.5 {{ $r['box'] }}">
|
|
<div class="flex items-center gap-3">
|
|
{{-- Statuspunkt: rot=permanent, gelb=temporär --}}
|
|
<span class="inline-block w-2.5 h-2.5 rounded-full {{ $r['dot'] }}"></span>
|
|
|
|
{{-- IP klein + monospace, ohne Jail-Text --}}
|
|
<span class="font-mono text-[13px] md:text-[14px] text-white/85 tracking-normal">
|
|
{{ $r['ip'] }}
|
|
</span>
|
|
</div>
|
|
|
|
<button
|
|
wire:click="unban('{{ $r['ip'] }}','{{ $r['jail'] }}')"
|
|
class="text-[12px] px-3 py-1.5 rounded-xl border {{ $r['btn'] }}">
|
|
Entbannen
|
|
</button>
|
|
</div>
|
|
@endforeach
|
|
</div>
|
|
@endif
|
|
</div>
|