@props(['value' => 0, 'gold' => false])
@php($v = max(0, min(100, (float) $value)))
<div {{ $attributes->merge(['class' => 'progress-track']) }} role="progressbar" aria-valuenow="{{ (int) $v }}" aria-valuemin="0" aria-valuemax="100">
    <div class="progress-fill @if($gold) progress-fill-gold @endif" style="width: {{ $v }}%"></div>
</div>
