@php $currentValue = $getState(); $maxValue = $getMaxValue(); $status = $getProgressStatus(); $percentage = $getProgressPercentage(); $label = $getProgressLabel(); $color = $getProgressColor(); $resolved = \App\Filament\Components\Tables\Columns\ProgressBarColumn::resolveColor($color); $color = $resolved ?? (is_string($color) ? $color : 'gray'); $colorStr = is_string($color) ? $color : 'gray'; $isRgb = str_starts_with($colorStr, 'rgb('); if ($isRgb) { $lightBackgroundColor = str_replace('rgb(', 'rgba(', rtrim($colorStr, ')') . ', 0.15)'); } else { $lightBackgroundColor = "color-mix(in srgb, {$colorStr} 15%, transparent)"; } $isDanger = $status === 'danger'; $lighterColor = $colorStr; $animClass = null; if ($isDanger) { $lighterColor = "color-mix(in srgb, {$colorStr} 50%, #ffffff)"; $animClass = 'danger-pulse-' . substr(md5($colorStr), 0, 8); } @endphp