31 lines
1.9 KiB
PHP
31 lines
1.9 KiB
PHP
@extends('layouts.admin')
|
|
@section('title','Kind bearbeiten')
|
|
@section('content')
|
|
<div class="max-w-lg">
|
|
<a href="{{ route('admin.users.index') }}" class="text-sm text-slate-500 hover:text-slate-700 mb-4 inline-block">← Zurück</a>
|
|
<div class="bg-white rounded-xl shadow-sm border border-slate-200 p-6">
|
|
<h2 class="font-semibold text-slate-800 mb-5">{{ $user->name }} bearbeiten</h2>
|
|
<form method="POST" action="{{ route('admin.users.update',$user) }}" class="space-y-4">
|
|
@csrf @method('PUT')
|
|
<div>
|
|
<label class="block text-sm font-medium text-slate-700 mb-1">Name</label>
|
|
<input name="name" value="{{ old('name',$user->name) }}" required class="w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:ring-2 focus:ring-violet-500 outline-none">
|
|
</div>
|
|
<div>
|
|
<label class="block text-sm font-medium text-slate-700 mb-1">E-Mail</label>
|
|
<input name="email" type="email" value="{{ old('email',$user->email) }}" required class="w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:ring-2 focus:ring-violet-500 outline-none">
|
|
</div>
|
|
<div>
|
|
<label class="block text-sm font-medium text-slate-700 mb-1">Neues Passwort <span class="text-slate-400">(leer = unverändert)</span></label>
|
|
<input name="password" type="password" class="w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:ring-2 focus:ring-violet-500 outline-none">
|
|
</div>
|
|
<div>
|
|
<label class="block text-sm font-medium text-slate-700 mb-1">🪙 Münzen</label>
|
|
<input name="points" type="number" min="0" value="{{ old('points',$user->points) }}" required class="w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:ring-2 focus:ring-violet-500 outline-none">
|
|
</div>
|
|
<button type="submit" class="w-full bg-violet-600 hover:bg-violet-700 text-white py-2 rounded-lg font-medium text-sm">Speichern</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
@endsection
|