@php $level = \App\Support\Metrics\PressureLevel::for($percent, $kind); $width = $percent === null ? 0 : min(100, round($percent, 1)); @endphp