30 lines
1.8 KiB
PHP
30 lines
1.8 KiB
PHP
@extends('layouts.admin')
|
|
@section('title','Neues Kind')
|
|
@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">Neues Kind-Konto</h2>
|
|
<form method="POST" action="{{ route('admin.users.store') }}" class="space-y-4">
|
|
@csrf
|
|
<div>
|
|
<label class="block text-sm font-medium text-slate-700 mb-1">Name</label>
|
|
<input name="name" value="{{ old('name') }}" required class="w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:ring-2 focus:ring-violet-500 focus:border-transparent outline-none">
|
|
@error('name')<p class="text-red-500 text-xs mt-1">{{ $message }}</p>@enderror
|
|
</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') }}" required class="w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:ring-2 focus:ring-violet-500 focus:border-transparent outline-none">
|
|
@error('email')<p class="text-red-500 text-xs mt-1">{{ $message }}</p>@enderror
|
|
</div>
|
|
<div>
|
|
<label class="block text-sm font-medium text-slate-700 mb-1">Passwort</label>
|
|
<input name="password" type="password" required class="w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:ring-2 focus:ring-violet-500 focus:border-transparent outline-none">
|
|
@error('password')<p class="text-red-500 text-xs mt-1">{{ $message }}</p>@enderror
|
|
</div>
|
|
<button type="submit" class="w-full bg-violet-600 hover:bg-violet-700 text-white py-2 rounded-lg font-medium text-sm">Konto erstellen</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
@endsection
|