feat: Reset-Button für Kinder-Konten im Admin-Bereich

This commit is contained in:
root
2026-05-05 14:54:00 +00:00
parent 520465b57c
commit 8810721dfb
3 changed files with 17 additions and 2 deletions
+8 -2
View File
@@ -23,9 +23,15 @@
<td class="px-4 py-3 text-slate-500">{{ $u->email }}</td>
<td class="px-4 py-3 text-right font-bold text-amber-600">{{ $u->points }}</td>
<td class="px-4 py-3 text-right text-slate-500">{{ $u->attempts_count }}</td>
<td class="px-4 py-3 text-right">
<td class="px-4 py-3 text-right whitespace-nowrap">
<a href="{{ route('admin.users.edit',$u) }}" class="text-violet-600 hover:underline mr-3">Bearbeiten</a>
<form method="POST" action="{{ route('admin.users.destroy',$u) }}" class="inline" onsubmit="return confirm('Wirklich löschen?')">
<form method="POST" action="{{ route('admin.users.reset',$u) }}" class="inline"
onsubmit="return confirm('Punktestand und Verlauf von {{ $u->name }} wirklich zurücksetzen?')">
@csrf
<button class="text-orange-500 hover:underline mr-3">Zurücksetzen</button>
</form>
<form method="POST" action="{{ route('admin.users.destroy',$u) }}" class="inline"
onsubmit="return confirm('Konto von {{ $u->name }} wirklich löschen?')">
@csrf @method('DELETE')
<button class="text-red-500 hover:underline">Löschen</button>
</form>