@php use Filament\Infolists\Components\IconEntry\IconEntrySize; $stateValue = $getState(); if ($stateValue instanceof Closure) { $stateValue = $stateValue(); } $total = 100; $progress = ($stateValue / $total) * 100; $displayProgress = $progress == 100 ? number_format($progress, 0) : number_format($progress, 2); $color = $getColor($state) ?? 'gray'; @endphp
merge($getExtraAttributes(), escape: false) ->class([ 'fi-in-progress-bar flex flex-wrap gap-1.5', ]) }} >
$displayProgress != 100, 'text-white' => $displayProgress == 100 ]) > {{ $displayProgress }}%