@props([ 'type' => 'text', 'class' => '', 'value' => '' ]) @if(isset($attributes['error']) and !empty($attributes['error'])) @error($attributes['error']) @php $class .= ' is-invalid'; @endphp @enderror @endif @php( $attributes = $attributes->merge(['class' => "form-control $class", 'type' => $type, 'value' => $value]) ) @if($attributes['type'] === 'textarea') @else @endif @if(isset($attributes['error']) and !empty($attributes['error'])) @endif