@props(['type' => 'text', 'name'])
<input name="{{ $name }}" :class="errors.{{ $name }} && 'is-invalid'" class="form-control" type="{{ $type }}" {{ $attributes }} />

<template x-for="error in errors.{{ $name }}">
    <div class="invalid-feedback" x-text="error"></div>
</template>
