2022-08-01 10:29:57 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="{{ $id }}">{{ $label }}</label>
|
2022-08-05 14:19:20 +00:00
|
|
|
<div class="input-group has-validation">
|
|
|
|
@empty($icon)
|
|
|
|
@else
|
|
|
|
<div class="input-group-prepend">
|
|
|
|
<span class="input-group-text"><i class="fa-fw {{ $icon }}"></i></span>
|
|
|
|
</div>
|
|
|
|
@endempty()
|
2024-07-03 03:02:59 +00:00
|
|
|
<input type="text" class="form-control {{ $classes ?? ''}}@error($id) is-invalid @enderror" id="{{ $id }}" name="{{ $name ?: $id }}" value="{{ old($old ?? $name,$value) }}">
|
2022-08-01 10:29:57 +00:00
|
|
|
<span class="invalid-feedback" role="alert">
|
|
|
|
@error($id)
|
|
|
|
{{ $message }}
|
|
|
|
@enderror
|
|
|
|
</span>
|
|
|
|
</div>
|
2024-07-03 03:02:59 +00:00
|
|
|
</div>
|