@extends('site.layouts.new.app') @php $summaryUrl = request()->fullUrl(); $summaryDescription = $voting ? trim((string) ($resumeDescription ?? '')) ?: 'Veja o gráfico da votação e o resumo dos votos por parlamentares.' : 'Esta votação ainda não está disponível para consulta pública.'; $isLongSummary = \Illuminate\Support\Str::length($summaryDescription) > 360; $summaryPreview = $isLongSummary ? \Illuminate\Support\Str::limit($summaryDescription, 360, '...') : $summaryDescription; @endphp @section('site_content')
@include('site.components.materials-tab', [ 'label' => $detailLabel ?? 'Voltar para sessões', 'href' => $detailUrl ?? route('site.meetings', ['front_layout' => 'new']), 'active' => false, ]) @include('site.components.materials-tab', [ 'label' => 'Resumo da votação', 'href' => $summaryUrl, 'active' => true, ])

{{ $meetingLabel ?? 'SESSÃO' }}

Resumo da votação

@if (!empty($ataSummaryLabel))

{{ $ataSummaryLabel }}

@endif @if ($isLongSummary)
{{ $summaryPreview }} Mostrar menos
{!! nl2br(e($summaryDescription)) !!}
@else

{!! nl2br(e($summaryDescription)) !!}

@endif
{{ $summary['status'] ?? 'Sem votação' }}
@if ($voting)

{{ $meetingLabel }}

{{ $summary['status'] }}
@include('site.components.status-chart', ['items' => $chartItems])
{{ $summary['yes'] }} Sim
{{ $summary['no'] }} Não
{{ $summary['abstention'] }} Abstenção
{{ $summary['out'] }} Ausente

Status da votação eletrônica

@if (!empty($summary['opened_at'])) Abertura: {{ \Carbon\Carbon::parse($summary['opened_at'])->format('d/m/Y H:i') }} @endif @if (!empty($summary['closed_at'])) Fechamento: {{ \Carbon\Carbon::parse($summary['closed_at'])->format('d/m/Y H:i') }} @endif
@foreach ($voteRows as $voteRow)
@if ($voteRow['image']) {{ $voteRow['name'] }} @else {{ \Illuminate\Support\Str::substr($voteRow['name'], 0, 1) }} @endif
{{ $voteRow['name'] }} {{ $voteRow['role'] }}
{{ $voteRow['choice'] }}
@endforeach
@else @endif
@endsection