@props(['percent' => 0, 'size' => 62]) @php // Circumference of r=25 in the 62-unit box. The offset is what is NOT // filled, so a full ring is 0 and an empty one is the whole circumference. $c = 157; $o = (int) round($c * (1 - min(100, max(0, (float) $percent)) / 100)); @endphp