@php $strengthColor = match (true) { $strength >= 4 => '#16a34a', $strength === 3 => '#d97706', $strength === 2 => '#ea580c', default => '#da291c', }; $strengthLabel = match (true) { $strength >= 4 => 'Strong password', $strength === 3 => 'Good — add a symbol or more length', $strength === 2 => 'Fair — mix in numbers and symbols', default => 'Weak password', }; @endphp