@props([ 'clearValue' => true, 'name', 'autocomplete' => 'off', 'placeholder' => '', 'value' => '', 'focus' => '', 'invalid' => '', 'maxLength' => null, 'disabled' => false, 'rows' => 3, ]) @php $inputId = $attributes->get('id') ?? $name; $hasError = $errors->has($name); @endphp
{{-- CLEAR BUTTON (REUSE INPUT LOGIC) --}} @if($clearValue) @endif
{{-- ERROR --}}
@if($hasError) @foreach($errors->get($name) as $message)
{{ $message }}
@endforeach @endif