@props([ 'icon' => null, 'label' => null, 'location' => 'left' ]) @php $attributes = $attributes->class([ 'form-icon form-icon-' . $location, ])->merge([ // ]); @endphp @if($icon || $label || !$slot->isEmpty()) {{ $label ?? $slot }} @endif