40 lines
1.7 KiB
PHP
40 lines
1.7 KiB
PHP
<div class="space-y-4">
|
|
<div class="flex items-center justify-between">
|
|
<h3 class="text-lg font-semibold text-gray-800 dark:text-gray-200">Aktuell gebannte IPs</h3>
|
|
<button wire:click="refreshList"
|
|
class="px-3 py-1.5 text-sm bg-gray-700 text-white rounded hover:bg-gray-600">
|
|
Aktualisieren
|
|
</button>
|
|
</div>
|
|
|
|
@if (empty($banned))
|
|
<div class="text-gray-500 text-sm">
|
|
Keine aktiven Banns vorhanden.
|
|
</div>
|
|
@else
|
|
<div class="overflow-hidden rounded-lg border border-gray-200 dark:border-gray-700">
|
|
<table class="min-w-full text-sm text-left">
|
|
<thead class="bg-gray-100 dark:bg-gray-800">
|
|
<tr>
|
|
<th class="px-4 py-2 font-medium text-gray-700 dark:text-gray-300">IP-Adresse</th>
|
|
<th class="px-4 py-2 font-medium text-gray-700 dark:text-gray-300 w-32 text-right">Aktion</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="divide-y divide-gray-200 dark:divide-gray-700">
|
|
@foreach ($banned as $ip)
|
|
<tr class="hover:bg-gray-50 dark:hover:bg-gray-900/30">
|
|
<td class="px-4 py-2 text-gray-800 dark:text-gray-100">{{ $ip }}</td>
|
|
<td class="px-4 py-2 text-right">
|
|
<button wire:click="unban('{{ $ip }}')"
|
|
class="px-2 py-1 text-xs bg-red-600 text-white rounded hover:bg-red-500">
|
|
Entbannen
|
|
</button>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
@endif
|
|
</div>
|