@props(['name', 'type' => 'text'])
<input class="{{ $type == 'range' ? 'form-range' : 'form-control' }} @error($name) is-invalid @enderror" type="{{ $type }}" {{ $attributes}} />
@error($name)
    <div class="invalid-feedback">
        {{ $message }}
    </div>
@enderror