@php // 52-week low must be a non-zero if (empty($low)) { $low = 1; } @endphp @for ($x = 0; $x < 10; $x++) @if ((($current - $low) * 100) / ($high - $low) > ($x * 10)) ● @else ○ @endif @endfor