2024-07-23 13:50:02 +00:00
|
|
|
@if(isset($label))
|
2024-07-25 03:52:29 +00:00
|
|
|
<label {{ $attributes->only(['class']) }} for="{{ $id ?? $name }}">{{ $label }}</label>
|
2024-07-23 13:50:02 +00:00
|
|
|
@endisset
|
2024-07-22 13:09:45 +00:00
|
|
|
<div class="form-group">
|
2024-07-23 13:50:02 +00:00
|
|
|
<div class="input-group has-validation">
|
|
|
|
@if(isset($icon) || isset($prepend))
|
|
|
|
<div class="input-group-prepend">
|
|
|
|
<span class="input-group-text">@isset($icon)<i class="fas fa-fw {{ $icon }}"></i>@endisset @isset($prepend){!! $prepend !!}@endisset</span>
|
|
|
|
</div>
|
|
|
|
@endif()
|
|
|
|
{{ $slot }}
|
|
|
|
<span class="invalid-feedback" role="alert">
|
2024-07-24 04:08:04 +00:00
|
|
|
@error($old ?? $name)
|
2024-07-23 13:50:02 +00:00
|
|
|
{{ $message }}
|
|
|
|
@elseif(isset($feedback))
|
|
|
|
{{ $feedback }}
|
|
|
|
@enderror
|
|
|
|
</span>
|
2024-07-22 13:09:45 +00:00
|
|
|
</div>
|
2024-07-23 13:50:02 +00:00
|
|
|
@isset($helper)
|
|
|
|
<span class="input-helper">{{ $helper }}</span>
|
|
|
|
@endif
|
|
|
|
</div>
|