@props([ 'value' => 0, 'max' => 100, 'label' => null, 'showLabel' => true, 'variant' => 'primary', ]) @php $percentage = $max > 0 ? min(100, round(($value / $max) * 100)) : 0; @endphp
@if($showLabel)
{{ $label ?? 'Progress' }} {{ $percentage }}%
@endif