@props(['pct' => 0, 'over' => false]) @php $pct = (int) $pct; // Over target: the bar rescales to "raised" — green fills up to the goal and a // gold segment shows the amount raised beyond it. Otherwise a normal green fill. $over = $over && $pct > 100; $goalWidth = $over ? round(10000 / $pct, 1) : min(100, $pct); @endphp
class(['mini-th', 'over' => $over]) }}>
@if ($over)
@endif
{{ $pct }}%