@extends('layouts.meeting') @section('content-meeting')
ENCERRAR SESSÃO
Info! Ao encerrar a votação, os documentos inseridos na pauta do tipo indicações serão marcados automaticamente como lidos e aprovados.
    @forelse($summaryVotings as $voting)
  • @if (isset($blockVotingLabels[$voting->id])) {{ $blockVotingLabels[$voting->id] }} @elseif ($voting->ata_id > 0) ATA Nº - {{ $voting->getAta() }} @else @if ($voting->advice_id == 0) {{ $voting->getName()[0] }} @else {{ $voting->advice->commission->name }} - {{ $voting->getNameAdvice()[0] }} @endif @endif @if ($voting->situation($voting)) Aprovada @else @if (isset($voting->closed_at)) Reprovada @else Em votação @endif @endif
  • @empty
  • Não existe votação encerrada
  • @endforelse

VOTAÇÃO

@if ($meeting)
@if ($last_voting != null) ATA Nº - {{ $last_voting->number }}/{{ Carbon\Carbon::createFromFormat('d/m/Y H:i', $last_voting->date_start)->year }} @if (isset($meeting->voting()->where('ata_id', $last_voting->id)->first()->closed_at))
@if ($meeting->situation($last_voting->id, 'ata')) Votação aprovada @else Votação reprovada @endif @endif @endif
voting()->where('meeting_id', $meeting->id)->whereNotNull('deleted_at')->first()->closed_at)) style="margin-top: 10px;" @endif> @if ($ata_voting && $last_voting != null) @if (isset($meeting->voting()->where('ata_id', $last_voting->id)->first()->closed_at)) @else @if ($meeting->voting()->where('ata_id', $last_voting->id)->first()) @else @endif @endif @endif
@else Sessão anterior não possui ATA @endif
@if ($meeting) @php $atas = \App\Models\MeetingPauta::where('meeting_id', $meeting->id)->get(); @endphp @foreach ($atas as $atas) @if ($atas->ata_id) @php $meetingAta = \App\Models\Meeting::find($atas->ata_id); $votingAta = \App\Models\Voting::where('ata_id', $atas->ata_id)->first(); @endphp @if ($meetingAta)
@if (!$votingAta && $ata_voting)
@endif
ATA Nº {{ $meetingAta->number }} / {{ \Carbon\Carbon::createFromFormat('d/m/Y H:i', $meetingAta->date_end)->year }}
@if ($votingAta) @if ($votingAta->closed_at) @else @endif @else @endif
@endif @endif @endforeach @else
Sessão anterior não possui ATA
@endif
    @foreach ($advices as $item) @php $adviceVoting = $item->voting()->where('meeting_id', $meeting->id)->first(); @endphp
  • @if ($advice_voting && !$adviceVoting)
    @endif
    {!! $item->commission->name . ' - ' !!} @if ($item->document_id > 0) @if ($item->document->document_type->parent_id) {{ $item->document->document_type->parent->name }} :: @endif {!! $item->document->document_type->name !!} - @if ($item->document->number == 0) @else {!! $item->document->number . '/' . $item->document->getYear($item->date) !!} @endif
    @if (isset($adviceVoting->closed_at)) @if ($meeting->situation($item->id, 'advice')) Votação aprovada @else Votação reprovada @endif @endif @endif @if ($item->laws_projects_id > 0) @if (!$item->project->law_type) {{ $item->project->law_type_id }} @else {!! mb_strtoupper($item->project->law_type->name, 'UTF-8') !!} @endif {!! $item->project->project_number . '/' . $item->project->getYearLawPublish($item->project->law_date) !!}
    @if (isset($adviceVoting->closed_at)) @if ($meeting->situation($item->id, 'advice')) Votação aprovada @else Votação reprovada @endif @endif @endif
    closed_at)) style="margin-top: 10px;" @endif> @if ($advice_voting) @if (isset($adviceVoting->closed_at)) @if ($item->document_id > 0) @endif @if ($item->laws_projects_id > 0) @endif @else @if (!$adviceVoting) @else @endif @endif @endif
  • @endforeach
@if ($doc_voting || $law_voting || $ata_voting || $advice_voting)
Votação em bloco
Nenhum item adicionado ao bloco.
Selecione documentos, projetos, atas ou pareceres abaixo e use "Adicionar ao bloco". O fluxo unitário continua funcionando normalmente.
A votação em bloco só funciona com 2 arquivos ou mais.
@endif
    @foreach ($docs as $item) @php $documentVoting = $item->voting()->where('meeting_id', $meeting->id)->first(); $documentAuthor = \App\Models\Assemblyman::where('id', $item->owner_id)->pluck('short_name')->first(); $documentLabel = ($item->document_type->parent_id ? $item->document_type->parent->name . ' :: ' : '') . $item->document_type->name . ($item->number == 0 ? '' : ' - ' . $item->number . '/' . $item->getYear($item->date)); @endphp
  • @if ($doc_voting && !$documentVoting)
    @endif
    {{ $documentAuthor }} - Documento : @if ($item->document_type->parent_id) {{ $item->document_type->parent->name }} :: @endif {!! $item->document_type->name !!} - @if ($item->number == 0) @else {!! $item->number . '/' . $item->getYear($item->date) !!} @endif
    @if (isset($documentVoting->closed_at)) @if ($meeting->situation($item->id, 'document')) Votação aprovada @else Votação reprovada @endif @endif
    closed_at)) style="margin-top: 10px;" @endif> @if ($doc_voting) @if (isset($documentVoting->closed_at)) @else @if (!$documentVoting) @else @endif @endif @endif
  • @endforeach
    @foreach ($laws as $item) @php $lawVoting = $item->voting()->where('meeting_id', $meeting->id)->first(); @endphp
  • @if ($law_voting && !$lawVoting)
    @endif
    {!! \App\Models\Assemblyman::where('id', $item->assemblyman_id)->pluck('short_name')->first() !!} - Projeto de lei : @if (!$item->law_type) {{ $item->law_type_id }} @else {!! mb_strtoupper($item->law_type->name, 'UTF-8') !!} @endif {!! $item->project_number . '/' . $item->getYearLawPublish($item->law_date) !!}
    @if (isset($lawVoting->closed_at)) @if ($meeting->situation($item->id, 'law')) Votação aprovada @else Votação reprovada @endif @endif
    voting->closed_at)) style="margin-top: 30px;" @else style="margin-top: 10px;" @endif> @if ($law_voting) @if (isset($lawVoting->closed_at)) @else @if (!$lawVoting) @else @endif @endif @endif
  • @endforeach
@if ($last_voting != null) @endif @endsection