v0.9.0: no-MAC device tracking, IP-change dashboard, extended search

This commit is contained in:
2026-07-02 20:37:57 +02:00
parent 9fa20af87a
commit 85118c5bcc
23 changed files with 1703 additions and 48 deletions
+28 -3
View File
@@ -101,10 +101,33 @@
{{-- IP-Verlauf --}}
@if($ipHistory->count() > 0)
@php
$distinctIps = $ipHistory->pluck('ip_address')->unique()->values();
@endphp
<div class="bg-white dark:bg-gray-800 shadow-sm rounded-lg overflow-hidden">
<div class="px-5 py-4 border-b border-gray-200 dark:border-gray-700">
<div class="px-5 py-4 border-b border-gray-200 dark:border-gray-700 flex items-center justify-between">
<h3 class="font-semibold text-gray-900 dark:text-gray-100">IP-Verlauf</h3>
@if($distinctIps->count() > 1)
<span class="text-xs bg-amber-100 text-amber-700 px-2 py-0.5 rounded-full">
⚠️ {{ $distinctIps->count() }} verschiedene IP-Adressen
</span>
@endif
</div>
{{-- Distinct IPs auf einen Blick --}}
@if($distinctIps->count() > 1)
<div class="px-5 py-3 bg-amber-50 dark:bg-amber-900/10 border-b border-amber-100 dark:border-amber-800">
<p class="text-xs text-amber-700 dark:text-amber-400 font-medium mb-1">Bekannte IP-Adressen dieses Geräts:</p>
<div class="flex flex-wrap gap-2">
@foreach($distinctIps as $dip)
<span class="font-mono text-xs px-2 py-1 rounded {{ $dip === $device->current_ip ? 'bg-green-100 text-green-800 font-bold' : 'bg-gray-100 text-gray-600 dark:bg-gray-700 dark:text-gray-300' }}">
{{ $dip }}{{ $dip === $device->current_ip ? ' ← aktuell' : '' }}
</span>
@endforeach
</div>
</div>
@endif
<table class="min-w-full divide-y divide-gray-100 dark:divide-gray-700 text-sm">
<thead class="bg-gray-50 dark:bg-gray-700">
<tr>
@@ -116,9 +139,11 @@
</thead>
<tbody class="divide-y divide-gray-100 dark:divide-gray-700">
@foreach($ipHistory as $h)
<tr>
<tr class="{{ $h->ip_address !== $device->current_ip ? 'opacity-60' : '' }}">
<td class="px-4 py-2 text-gray-500 dark:text-gray-400">{{ $h->created_at->format('d.m.Y H:i') }}</td>
<td class="px-4 py-2 font-mono text-gray-900 dark:text-gray-100">{{ $h->ip_address }}</td>
<td class="px-4 py-2 font-mono font-medium {{ $h->ip_address === $device->current_ip ? 'text-green-700 dark:text-green-400' : 'text-gray-600 dark:text-gray-400' }}">
{{ $h->ip_address }}
</td>
<td class="px-4 py-2">
<span class="text-xs {{ $h->status === 'online' ? 'text-green-600' : 'text-gray-400' }}">{{ $h->status }}</span>
</td>