@props([
'type' => 'text',
'name',
'placeholder' => '',
'value' => '',
'showError' => true,
'showDiv' => true,
'divClass' => '',
'showClass' => false,
"id" => '',
"isChecked" => false,
"hasIcon" => false,
])
@if ($hasIcon) {{ $slot }} @endif
class(['form-control' => ($type != 'checkbox' && $type != 'radio'), 'is-invalid' => $errors->has($name)]) }}
/>
@if (!$hasIcon) {{ $slot }} @endif
@if($showError)
@endif