@props(['name', 'label', 'value' => '', 'type' => 'text', 'required' => false, 'hint' => null, 'id' => null]) @php($fieldId = $id ?? $name) @php($errorKey = str_replace(']', '', str_replace('[', '.', $name)))
@if($type === 'textarea')@elseclass('input') }} @required($required)>@endif @if($hint)

{{ $hint }}

@endif @error($errorKey)

{{ $message }}

@enderror