feat: Lernapp mit Mathe/Deutsch/Englisch, Münzsystem und Belohnungen
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
@extends('layouts.admin')
|
||||
@section('title','Kinder')
|
||||
@section('content')
|
||||
<div class="flex justify-between items-center mb-6">
|
||||
<h2 class="text-lg font-semibold text-slate-700">Alle Kinder-Konten</h2>
|
||||
<a href="{{ route('admin.users.create') }}" class="bg-violet-600 hover:bg-violet-700 text-white px-4 py-2 rounded-lg text-sm font-medium">+ Neues Kind</a>
|
||||
</div>
|
||||
<div class="bg-white rounded-xl shadow-sm border border-slate-200 overflow-hidden">
|
||||
<table class="w-full text-sm">
|
||||
<thead class="bg-slate-50 border-b border-slate-200">
|
||||
<tr>
|
||||
<th class="text-left px-4 py-3 font-medium text-slate-600">Name</th>
|
||||
<th class="text-left px-4 py-3 font-medium text-slate-600">E-Mail</th>
|
||||
<th class="text-right px-4 py-3 font-medium text-slate-600">🪙 Münzen</th>
|
||||
<th class="text-right px-4 py-3 font-medium text-slate-600">Antworten</th>
|
||||
<th class="px-4 py-3"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-slate-100">
|
||||
@forelse($users as $u)
|
||||
<tr class="hover:bg-slate-50">
|
||||
<td class="px-4 py-3 font-medium text-slate-800">{{ $u->name }}</td>
|
||||
<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">
|
||||
<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?')">
|
||||
@csrf @method('DELETE')
|
||||
<button class="text-red-500 hover:underline">Löschen</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr><td colspan="5" class="px-4 py-8 text-center text-slate-400">Noch keine Kinder angelegt.</td></tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user