{{-- Props: - stages: array - title: ?string — título del card (si null, no muestra header) - icon: string — icono del título - height: int — altura de las bars (px) default 12 Pattern: command.blade.php líneas 230-254 --}} @props([ 'stages' => [], 'title' => null, 'icon' => 'bi-funnel-fill', 'height' => 12, ]) @php $counts = array_column($stages, 'count'); $maxCount = !empty($counts) ? max(1, max($counts)) : 1; @endphp
@if($title)

{{ $title }}

@endif
@if(empty($stages))
Sin datos
@else @foreach($stages as $stage) @php $pct = ($stage['count'] / $maxCount) * 100; $stageIcon = $stage['icon'] ?? 'bi-circle'; $stageColor = $stage['color'] ?? 'secondary'; @endphp
{{ $stage['label'] }} {{ $stage['count'] }}
@endforeach @endif