{{-- Labelled field with inline error wired to aria-describedby/aria-invalid (PRD §19.4). --}} @php $id = 'contact-'.$name; $errorId = $id.'-error'; $required = $required ?? false; $hasError = $errors->has($name); $classes = 'field-control mt-1 block w-full rounded-md px-3 py-2.5 text-ink placeholder:text-muted/70'; $common = 'id="'.$id.'" name="'.$name.'" aria-describedby="'.$errorId.'"'.($hasError ? ' aria-invalid="true"' : '').($required ? ' required aria-required="true"' : ''); @endphp
@if ($textarea ?? false) @elseif (isset($options)) @else @endif

{{ $errors->first($name) }}