@php $stations = $stations ?? collect(); $roles = $roles ?? collect(); $oldType = old('user_type', 'station'); $oldStation = (int) old('station_id', 0); $assigned = old('roles', []); @endphp
Benutzer anlegen
Bezirksstelle oder Ortstelle Benutzer erstellen.
Zurück
@if ($errors->any())
Bitte prüfen:
    @foreach ($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif
@csrf
{{-- Left: basics --}}
Stammdaten
Login & Zuordnung.
Nur Ortstellen aus deinem Bezirk.
Mind. 8 Zeichen.
{{-- Right: roles --}}
Rollen
Mindestens eine Rolle auswählen.
@foreach ($roles as $r) @php $checked = in_array($r->id, $assigned, true); $scopePill = match ($r->scope) { 'district' => 'bg-blue-50 text-blue-700 border-blue-200', 'station' => 'bg-emerald-50 text-emerald-700 border-emerald-200', 'global' => 'bg-neutral-100 text-rk-slate border-rk', default => 'bg-neutral-100 text-rk-slate border-rk', }; @endphp @endforeach
@error('roles')
{{ $message }}
@enderror
Abbrechen