@props([ /** Feldname: wire:model-Ziel + @error-Key (z. B. 'password', 'password_confirmation') */ 'name', /** Label-Text (bereits übersetzt) */ 'label', /** DOM-id; Standard: auth- */ 'id' => null, /** autocomplete-Hinweis (current-password | new-password) */ 'autocomplete' => 'current-password', /** Platzhalter im Feld */ 'placeholder' => '••••••••••', /** Pflichtfeld */ 'required' => true, /** Autofokus setzen (z. B. Passwort-Bestätigungsseite) */ 'autofocus' => false, /** aria-invalid + Fehlermeldung anzeigen (bei Bestätigungsfeldern aus) */ 'showError' => true, ]) @php $id ??= 'auth-'.str_replace('_', '-', $name); @endphp {{-- Passwort-Feld mit Anzeigen/Verbergen-Umschalter (self-contained Alpine). Optionaler Slot :labelAction für Zusatzlink in der Label-Zeile (z. B. „Passwort vergessen?"). Ersetzt die kopierten field-pw-wrap-Blöcke der Auth-Seiten. --}}
@isset($labelAction)
{{ $labelAction }}
@else @endisset
@if ($showError) @error($name)

{{ $message }}

@enderror @endif