@extends('site.layouts.new.app') @php $meetingHeadline = trim((string) optional($meeting->commission)->name) ?: $meeting->public_session_type_label; $meetingHeadlineDisplay = \Illuminate\Support\Str::title(mb_strtolower($meetingHeadline)); $meetingSubtitle = trim((string) $meeting->public_session_type_label . ' ' . ($meeting->number ? 'nº ' . $meeting->number : '')); $meetingDateLabel = $meeting->date_start ?: '-'; $meetingPlaceLabel = trim((string) optional($meeting->session_place)->name) ?: 'Local não informado'; $meetingBackUrl = route('site.commissions', ['front_layout' => 'new', 'tab' => 'reunioes']); $meetingAtaUrl = route('site.meetings.ata.pdf', ['id' => $meeting->id]); $meetingPautaUrl = route('site.meetings.pauta.pdf', ['id' => $meeting->id]); $meetingVideosUrl = $meetingVideos->isNotEmpty() ? route('site.meetings.videos', ['id' => $meeting->id, 'front_layout' => 'new']) : null; $meetingFilesCount = $meetingFiles->count(); $meetingParticipantsCount = $meetingParticipants->count(); $meetingAgendaCount = $meetingAgendaItems->count(); @endphp @push('styles') @endpush @section('site_content')
@include('site.components.materials-tab', [ 'label' => 'Voltar para reuniões', 'href' => $meetingBackUrl, 'active' => false, ]) @include('site.components.materials-tab', [ 'label' => 'Detalhes da reunião', 'href' => request()->fullUrl(), 'active' => true, ])
Reunião pública

{{ $meetingHeadlineDisplay }}

{{ $meetingSubtitle }}

Abrir ata Abrir pauta @if ($meetingVideosUrl) Vídeos @endif
Reunião {{ $meetingSubtitle }}
Data {{ $meetingDateLabel }}
Local {{ $meetingPlaceLabel }}
Comissão {{ trim((string) optional($meeting->commission)->name) ?: 'Não informada' }}
Resumo
Visão geral

{{ $meetingSummary['preview'] ?: 'Nenhuma descrição resumida disponível.' }}

Indicadores rápidos
{{ $meetingParticipantsCount }} parlamentares {{ $meetingFilesCount }} arquivos {{ $meetingAgendaCount }} itens de pauta
Parlamentares participantes
@if ($meetingParticipants->isNotEmpty())
@foreach ($meetingParticipants as $participant)
{{ $participant['name'] }}

{{ $participant['role'] }}

@if (!empty($participant['party'])) {{ $participant['party'] }} @endif
@endforeach
@else

Nenhum parlamentar público vinculado a esta reunião.

@endif
Arquivos e anexos
@if ($meetingFiles->isNotEmpty())
@foreach ($meetingFiles as $file) @php $fileExtension = strtoupper(pathinfo((string) $file->filename, PATHINFO_EXTENSION) ?: 'PDF'); @endphp
{{ \Illuminate\Support\Str::limit($file->filename, 70, '...') }}

Anexo da reunião

Formato {{ $fileExtension }}
Baixar arquivo
@endforeach
@else

Nenhum arquivo anexado nesta reunião.

@endif
Pauta da reunião
@if ($meetingAgendaItems->isNotEmpty())
@foreach ($meetingAgendaItems as $agendaItem)
{{ $agendaItem['title'] }} {{ $agendaItem['status_label'] }}
{{ $agendaItem['badge'] }}
@if ($agendaItem['description_is_long'])
{{ $agendaItem['description_preview'] }} Ver menos
{!! nl2br(e($agendaItem['description'])) !!}
@else

{{ $agendaItem['description'] }}

@endif @if (!empty($agendaItem['observation']))
@if ($agendaItem['observation_is_long'])
{{ $agendaItem['observation_preview'] }} Ver menos
{!! nl2br(e($agendaItem['observation'])) !!}
@else {!! nl2br(e($agendaItem['observation'])) !!} @endif
@endif @if (!empty($agendaItem['href'])) @endif
@endforeach
@else

Nenhum item de pauta encontrado.

@endif
Vídeos da reunião
@if ($meetingVideos->isNotEmpty()) @if ($mainVideos->isNotEmpty())

Vídeo principal

@foreach ($mainVideos as $video) @include('site.components.meeting-video-card', [ 'video' => $video, 'title' => 'Vídeo da reunião', 'subtitle' => 'Registro vinculado à reunião', ]) @endforeach
@endif @if ($assemblymanVideos->isNotEmpty())

Vídeos por parlamentar

@foreach ($assemblymanVideos as $video) @include('site.components.meeting-video-card', [ 'video' => $video, 'title' => $video->assemblyman->short_name ?? $video->assemblyman->full_name ?? 'Parlamentar não informado', 'subtitle' => 'Registro individual do parlamentar', ]) @endforeach
@endif @else

Nenhum vídeo disponível para esta reunião.

@endif
@endsection