@php $base_class = 'lqd-icon flex items-center justify-center shrink-0 relative shadow-xs rounded-full transition-all bg-primary text-primary-foreground [&_svg]:max-w-full [&_svg]:h-auto'; $original_size = $size; $variations = [ 'size' => [ 'none' => 'lqd-icon-size-none', 'sm' => 'lqd-icon-sm size-7', 'md' => 'lqd-icon-md size-9', 'lg' => 'lqd-icon-lg size-10', 'xl' => 'lqd-icon-xl size-11', ], ]; $size = isset($variations['size'][$size]) ? $variations['size'][$size] : $variations['size']['md']; @endphp withoutTwMergeClasses()->twMerge($base_class, $size, $attributes->get('class')) }}> {{ $slot }} @if ($activeBadge) $original_size !== 'sm' && $original_size !== 'xs', 'size-2.5' => $original_size === 'sm' || $original_size === 'xs', 'bg-green-500' => $activeBadgeCondition, 'bg-red-500' => !$activeBadgeCondition, ])> @endif