@props([ 'title', 'status' => null, 'questionsCount' => 0, 'progressEligible' => 0, 'progressStarted' => 0, 'progressPending' => 0, 'progressPercent' => 0, 'sectorName' => null, 'trainingGroupName' => null, 'href' => null, 'size' => 'default', ]) @php $isLarge = $size === 'lg'; $titleClass = $isLarge ? 'text-lg font-semibold text-gray-900' : 'text-sm font-semibold text-gray-900'; $barHeight = $isLarge ? 'h-3' : 'h-1.5'; $statsClass = $isLarge ? 'text-sm text-gray-600' : 'text-xs text-gray-600'; $percentClass = $isLarge ? 'text-base font-bold tabular-nums text-gray-900' : 'text-xs font-semibold text-gray-800'; $metaClass = $isLarge ? 'text-sm text-gray-500' : 'text-xs text-gray-500'; $padding = $isLarge ? 'p-5 sm:p-6' : 'p-4'; @endphp
merge(['class' => "rounded-xl border border-gray-200 bg-white shadow-sm {$padding}"]) }}>
@if($href) {{ $title }} @else

{{ $title }}

@endif @if($sectorName || $trainingGroupName)

@if($sectorName){{ $sectorName }}@endif @if($sectorName && $trainingGroupName)·@endif @if($trainingGroupName){{ $trainingGroupName }}@endif

@endif
@if($status) {{ $status }} @endif {{ $questionsCount }} {{ $questionsCount === 1 ? 'pergunta' : 'perguntas' }}
@if($progressEligible === 0)

Sem participantes elegíveis no escopo desta bateria.

@else
Progresso de início {{ $progressPercent }}%

{{ $progressStarted }} iniciaram · {{ $progressPending }} pendentes de {{ $progressEligible }} elegíveis

@endif