@php $id = $getId(); $isDisabled = $isDisabled(); $color = $getColor(); $colorClass = match ($color) { 'danger' => 'text-danger-500', 'gray' => 'text-gray-500', 'info' => 'text-info-500', 'primary' => 'text-primary-500', 'success' => 'text-success-500', 'warning' => 'text-warning-500', default => "text-{$color}-500", }; $groupHoverColorClass = match ($color) { 'danger' => 'group-hover:!text-danger-500', 'gray' => 'group-hover:!text-gray-500', 'info' => 'group-hover:!text-info-500', 'primary' => 'group-hover:!text-primary-500', 'success' => 'group-hover:!text-success-500', 'warning' => 'group-hover:!text-warning-500', default => "group-hover:!text-{$color}-500", }; $size = $getSize(); $sizeClass = match ($size) { 'xs' => 'w-3 h-3', 'sm' => 'w-4 h-4', 'md' => 'w-6 h-6', 'lg' => 'w-8 h-8', 'xl' => 'w-10 h-10', }; $halfSizeClass = match ($size) { 'xs' => 'w-[.375rem] h-3', 'sm' => 'w-2 h-4', 'md' => 'w-3 h-6', 'lg' => 'w-4 h-8', 'xl' => 'w-5 h-10', }; @endphp
@if ($shouldAllowZero()) @endif @foreach ($getStarsArray() as $value) @endforeach