@php // $score: float 0-100 (required) // $showLabel: bool, default true - false renders just the percentage $band = \Vanguard\Services\Performance\PerformanceScoreBand::for((float) $score); $showLabel = $showLabel ?? true; @endphp {{ number_format((float) $score, 1) }}%@if($showLabel) - {{ $band['label'] }}@endif