@extends('layouts.meeting') @section('content-meeting') @php $url = $_SERVER['HTTP_HOST']; $currentStage = $company->stage ?? 'default'; $selectedAssemblymanId = $company->assemblyman_id ?? null; $runningControl = $runningSpeechControl ?? null; $defaultSpeechSeconds = (int) (optional($obsSetting)->speech_default_time_seconds ?: 300); $speechExpedients = collect($speechExpedients ?? []); $sceneOptions = collect($obsScenes ?? [])->filter()->unique()->values(); $microphoneOptions = collect($microphoneInputs ?? []); $cameraOptions = collect($cameraInputs ?? []); $runningTimerPayload = $runningControl ? [ 'id' => (int) $runningControl->id, 'status' => (string) $runningControl->status, 'speech_time_seconds' => (int) ($runningControl->speech_time_seconds ?? 0), 'remaining_seconds' => (int) ($runningControl->remaining_seconds ?? 0), 'started_at' => optional($runningControl->started_at)->toIso8601String(), 'ended_at' => optional($runningControl->ended_at)->toIso8601String(), 'formatted_time' => $runningControl->formatted_time, ] : null; $speechTimesBySpeaksType = collect($speechTimesBySpeaksType ?? []); $panelStageCssVersion = @filemtime(public_path('css/panelStage.css')) ?: time(); $panelUpdateLiveSpeechUrl = route('voting.panelStage.updateSpeech', [$meeting->id]); @endphp

ESTADO DO PAINEL DE VOTAÇÃO

  • {{-- Comentado: Votações secretas ainda não serão utilizadas por nenhuma entidade --}} {{-- @if ($url != 'jardim.legissuper.com.br' && $url != 'jardim.localhost:8000')
  • @endif --}} @if ($url == 'rioverde.legissuper.com.br')
  • @endif
@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif @if ($errors->any())
{{ $errors->first() }}
@endif

PÚLPITO

@if ($runningControl)
Ao vivo: {{ optional($runningControl->assemblyman)->short_name ?: 'Sem parlamentar' }} {{ $runningControl->formatted_time }}
{{ csrf_field() }}
{{ csrf_field() }}
@endif
@foreach ($assemblymenForPulpit as $item) @php $wordSubscription = $wordSubscriptionsByAssemblyman->get((int) $item->id); $selectedSpeaksType = (string) optional($wordSubscription)->speaks_type; $subscriptionSpeechSeconds = $speechTimesBySpeaksType->get( $selectedSpeaksType, ); $assemblymanSpeechSeconds = (int) ($subscriptionSpeechSeconds ?: optional($item->obsSetting)->speech_time_seconds ?: $defaultSpeechSeconds); $assemblymanSpeechFormatted = gmdate('H:i:s', $assemblymanSpeechSeconds); $isRunningAssemblyman = $runningControl && (string) $runningControl->assemblyman_id === (string) $item->id; @endphp
@if ((bool) optional($item->pivot)->is_remote)
Remoto
@endif
@if ($isRunningAssemblyman)
00:00:00 Tempo esgotado
@endif
{{ csrf_field() }}
Tempo: {{ $assemblymanSpeechFormatted }}
@endforeach
O parlamentar selecionado aqui alimenta o painel quando o estado estiver em DISCURSO.
@push('meeting-scripts') @include('panelVoting.paineljs.dashboard') @endpush @endsection