@php $hasError = false; if ($name) { $hasError = $errors->has($name); } @endphp
@if ($label || $cornerHint)
@if ($label) @endif @if ($cornerHint) @endif
@endif
@if ($prefix || $icon)
@if ($icon) @elseif($prefix) {{ $prefix }} @endif
@elseif($prepend) {{ $prepend }} @endif @if ($suffix || $rightIcon || ($hasError && !$append))
@if ($rightIcon) @elseif($suffix) {{ $suffix }} @elseif($hasError) @endif
@elseif($append) {{ $append }} @endif
@if (!$hasError && $hint) @endif @if ($name) @endif