2024-12-04 02:54:10 +00:00
|
|
|
<div class="form-group">
|
|
|
|
@if(isset($label))
|
2024-12-04 05:45:16 +00:00
|
|
|
<label {{ $attributes->only(['class'])->merge(['class'=>'form-label']) }} for="{{ $id ?? $name }}">{{ $label }}</label>
|
2024-12-04 02:54:10 +00:00
|
|
|
@endisset
|
|
|
|
<div class="input-group has-validation">
|
|
|
|
@if(isset($icon) || isset($prepend))
|
|
|
|
{{-- // messes with the icon box, we have rounded corners on the right side
|
|
|
|
<div class="input-group-prepend">
|
|
|
|
--}}
|
|
|
|
<span class="input-group-text">@isset($icon)<i class="bi {{ $icon }}"></i>@endisset @isset($prepend){!! $prepend !!}@endisset</span>
|
|
|
|
{{--
|
|
|
|
</div>
|
|
|
|
--}}
|
|
|
|
@endif
|
|
|
|
{{ $slot }}
|
|
|
|
<span class="invalid-feedback">
|
|
|
|
@error((! empty($old)) ? $old : $name)
|
|
|
|
{{ $message }}
|
|
|
|
@elseif(isset($feedback))
|
|
|
|
{{ $feedback }}
|
|
|
|
@enderror
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
@isset($helper)
|
|
|
|
<span class="input-helper">{{ $helper }}</span>
|
|
|
|
@endif
|
|
|
|
</div>
|