@props(['percent' => 0, 'label' => null, 'size' => 96, 'stroke' => 8]) @php $radius = ($size - $stroke) / 2; $circumference = 2 * M_PI * $radius; $offset = $circumference - (min(max($percent, 0), 100) / 100) * $circumference; @endphp
merge(['class' => 'relative inline-grid place-items-center']) }} style="width: {{ $size }}px; height: {{ $size }}px;">
{{ $percent }}% @if ($label) {{ $label }} @endif