@php $total = (int) ($spam_score['total_spam_score'] ?? 0); if ($total > 15) { $riskVariant = 'danger'; $riskIcon = 'bi-shield-exclamation'; $riskLabel = __('app.high_risk'); } elseif ($total > 5) { $riskVariant = 'warning'; $riskIcon = 'bi-shield-minus'; $riskLabel = __('app.medium_risk'); } else { $riskVariant = 'success'; $riskIcon = 'bi-shield-check'; $riskLabel = __('app.low_risk'); } $meterPct = min(100, max(4, round(($total / 28) * 100))); @endphp