{{-- Tema "Plenário Feira Grande" — grade de quórum (base do painel). Estado do card: MESMA fórmula do tema padrão (presente / ausência justificada / ausente, a partir de $v->quorum), no visual do PHP: presente = card inteiro verde; ausente = branco com borda/sombra avermelhada; justificada = laranja. Selos "Pediu fala" / "Aparte": só LEITURA de computeds que o componente já expõe ($this->pedidosPendentes — fila geral, a mesma do estado 'fila' — e $this->falaEmAndamento). Nenhuma consulta ou regra nova. Os três estados do quórum (aguardando / aberto / encerrado) continuam vindo de $this->estadoQuorumTv, exatamente como no tema padrão. --}}

@if($this->estadoQuorumTv === 'aberto') {{ $this->estadoDominio['quorum']['atual_numero'] }}º Quórum — Em andamento @elseif($this->estadoQuorumTv === 'encerrado') {{ $this->estadoDominio['quorum']['ultima_encerrada_numero'] }}º Quórum — Encerrado @else Aguardando quórum @endif @if($config->painel_mostrar_quorum && $this->estadoQuorumTv !== 'aguardando') — {{ $this->presentes }}/{{ $this->totalVereadores }} presentes @endif

@if($this->estadoQuorumTv !== 'aguardando') @php($fgPedindoFala = $this->pedidosPendentes->pluck('vereador_id')->filter()->map(fn ($id) => (int) $id)->all()) @php($fgAparteId = ($this->falaEmAndamento && $this->falaEmAndamento->isAparte()) ? (int) $this->falaEmAndamento->vereador_id : 0)
@foreach($fgVereadores as $v) @php($fgPresente = (bool) ($v->quorum->presente ?? false)) @php($fgJustificada = (bool) ($v->quorum->falta_justificada ?? false)) @php($fgClasse = $fgPresente ? 'present' : ($fgJustificada ? 'justified' : 'absent'))
@if($config->painel_mostrar_foto_vereador) @if($v->foto) @else
{{ mb_substr($v->name, 0, 1) }}
@endif @endif
@if($config->painel_mostrar_identificacao_vereadores) {{ $v->name }} @endif @if($v->partido && $config->painel_mostrar_partido) {{ $v->partido }} @endif @if($v->eh_presidente && $config->painel_mostrar_identificacao_vereadores) Presidente @endif
@if($fgClasse === 'present') Presente @elseif($fgClasse === 'justified') Ausência Justificada @else Ausente @endif @if(in_array((int) $v->id, $fgPedindoFala, true)) Pediu fala @endif @if($fgAparteId === (int) $v->id) Aparte @endif
@endforeach
@else
A sessão está em andamento. Assim que a chamada de quórum for iniciada, a presença aparecerá aqui.
@endif