@extends('layouts.site') @section('content')
Superlegis
Documentos:
{{ $documentsCount }}
Projetos de Lei:
{{ $lawsCount }}
Sessões:
{{ $meetingCount }}
Vereadores:
{{ $assemblymanCount }}
@if ($logo) Superlegis @endif
{{ $company->shortName }}

DOCUMENTOS

{!! Form::label('owner_id', 'Tipo:') !!} {!! Form::select('type', $doctypes, $form->input('type') !== null ? $form->input('type') : null, [ 'class' => 'form-control', ]) !!}
{!! Form::label('date', 'Número:') !!} {!! Form::text('number', $form->input('number') !== null ? $form->input('number') : null, [ 'class' => 'form-control', ]) !!}
{!! Form::label('date', 'Ano:') !!} {!! Form::text('year', $form->input('year') !== null ? $form->input('year') : null, ['class' => 'form-control']) !!}
{!! Form::label('assemblyman_inactive', 'Inativos:') !!} {!! Form::checkbox('assemblyman_inactive', null, $form->input('assemblyman_inactive'), [ 'class' => 'form-control', 'id' => 'assemblymanInactiveCheckbox', ]) !!}
{!! Form::label('owner_id', 'Responsável') !!} {!! Form::select( 'owner_id', $assemblymensList, $form->input('owner_id') !== null ? $form->input('owner_id') : null, ['class' => 'form-control', 'id' => 'assemblymanSelect'], ) !!} {!! Form::select( 'owner_id_inactive', $assemblymensListInactive, $form->input('owner_id_inactive') !== null ? $form->input('owner_id_inactive') : null, ['class' => 'form-control', 'style' => 'display: none;', 'id' => 'assemblymanInactiveSelect'], ) !!}
{!! Form::label('date', 'De:') !!} {!! Form::date('start_date', $form->input('start_date') !== null ? $form->input('start_date') : null, [ 'class' => 'form-control', ]) !!}
{!! Form::label('date', 'Até:') !!} {!! Form::date('end_date', $form->input('end_date') !== null ? $form->input('end_date') : null, [ 'class' => 'form-control', ]) !!}
{!! Form::label('date', 'Que contenha (texto):') !!} {!! Form::text('text', $form->input('text') !== null ? $form->input('text') : null, [ 'id' => 'texto', 'class' => 'form-control', ]) !!}
{!! Form::label('frase', 'Frase completa:') !!} {!! Form::checkbox('frase', null, 0, ['class' => 'form-control ']) !!}

PROJETOS DE LEI

{!! Form::label('owner_id', 'Tipo:') !!} {!! Form::select( 'type', App\Models\LawsType::pluck('name', 'id')->prepend('Selecione...', ''), $form->input('type'), ['class' => 'form-control'], ) !!}
{!! Form::label('date', 'Número:') !!} {!! Form::text('number', $form->input('number') !== null ? $form->input('number') : null, [ 'class' => 'form-control', ]) !!}
{!! Form::label('date', 'Ano:') !!} {!! Form::text('year', $form->input('year') !== null ? $form->input('year') : null, ['class' => 'form-control']) !!}
{!! Form::label('assemblyman_inactive2', 'Inativos:') !!} {!! Form::checkbox('assemblyman_inactive2', null, $form->input('assemblyman_inactive2'), [ 'class' => 'form-control', 'id' => 'assemblymanInactiveCheckbox2', ]) !!}
{!! Form::label('owner_id', 'Responsável') !!} {!! Form::select( 'owner_id', $assemblymensList, $form->input('owner_id') !== null ? $form->input('owner_id') : null, ['class' => 'form-control', 'id' => 'assemblymanSelect2'], ) !!} {!! Form::select( 'owner_id_inactive', $assemblymensListInactive, $form->input('owner_id_inactive') !== null ? $form->input('owner_id_inactive') : null, ['class' => 'form-control', 'style' => 'display: none;', 'id' => 'assemblymanInactiveSelect2'], ) !!}
{!! Form::label('date', 'Que contenha (texto):') !!} {!! Form::text('text', $form->input('text') !== null ? $form->input('text') : null, [ 'id' => 'texto', 'class' => 'form-control', ]) !!}
{!! Form::label('frase', 'Frase completa:') !!} {!! Form::checkbox('frase', null, 0, ['class' => 'form-control']) !!}

ATAS E PAUTAS

{!! Form::label('type', 'Tipo:') !!} {!! Form::select( 'type', App\Models\SessionType::pluck('name', 'id')->prepend('Selecione...', ''), $form->input('type'), ['class' => 'form-control'], ) !!}
{!! Form::label('date', 'Data:') !!} {!! Form::date('data', $form->input('data') !== null ? $form->input('data') : null, [ 'class' => 'form-control datepicker', ]) !!}

RESUMO DA VOTAÇÃO

{!! Form::label('type', 'Tipo:') !!} {!! Form::select( 'type', [ null => 'Selecione ...', 'Projetos' => App\Models\LawsType::pluck('name', 'id')->toArray(), 'Documentos' => $docTypesResume, ], $form->input('type'), ['class' => 'form-control'], ) !!}
{!! Form::label('date', 'Data:') !!} {!! Form::date('date', $form->input('date') !== null ? $form->input('date') : null, [ 'class' => 'form-control', ]) !!}
{!! Form::label('number', 'Número:') !!} {!! Form::text('number', $form->input('number') !== null ? $form->input('number') : null, [ 'class' => 'form-control', ]) !!}
@if (isset($_GET['documents']))

Registros

{{-- --}} @foreach ($documents as $documentModel) @if ($documentModel->document_type->front_show > 0) @endif @endforeach
Data Descrição Situação Assinado DetalhesHistorico/Tramitação
{!! $documentModel->date !!} {!! html_entity_decode($documentModel->document_type->name) !!} {!! html_entity_decode($documentModel->number . '/' . $documentModel->getYear($documentModel->date)) !!} - {!! html_entity_decode($documentModel->owner->short_name) !!}
@php $resume = html_entity_decode($documentModel->resume); $cleanResume = strip_tags($resume); $trimmedResume = trim($cleanResume); @endphp @if (strlen($trimmedResume) > 600) {!! substr($trimmedResume, 0, 600) . '...' !!} @else {!! $trimmedResume !!} @endif
@if ($documentModel->approved == 1) Aprovado @else Lido @endif @php $status = isset($signStatuses[$documentModel->id]) ? $signStatuses[$documentModel->id]->status : null; @endphp @if (!is_null($status) && $status === 'SIGNED') @else
Não possui
@endif
{!! $documents->appends(request()->input())->render() !!}
@elseif(isset($_GET['projects']))

Registros

@foreach ($documents as $lawsProject) @endforeach
Descrição Detalhes
{!! $lawsProject->project_number . '/' . $lawsProject->getYearLawPublish($lawsProject->law_date) !!} - @if (!$lawsProject->law_type) {{ $lawsProject->law_type_id }} @else {{ mb_strtoupper($lawsProject->law_type->name, 'UTF-8') }} @endif
{{ mb_strtoupper(html_entity_decode(strip_tags($lawsProject->title), ENT_QUOTES, 'UTF-8'), 'UTF-8') }}
Visualizar
{!! $documents->appends(request()->input())->render() !!}
@elseif(isset($_GET['atas']))

Registros

@foreach ($documents as $meeting) @endforeach
Data Tipo Numero Local Assinado Visualizar
{!! $meeting->date_start !!} {!! $meeting->SessionType->name !!} {!! $meeting->number !!} {!! $meeting->session_place->name !!} @php $status = $signStatuses[$meeting->id]->status ?? null; @endphp @if (!is_null($status) && $status === 'SIGNED') @else
Não possui
@endif
@if ($meeting->files()->count() > 0) @endif @if ($params['showPautas']) PAUTA @endif @if ($params['showAtas']) ATA @endif @foreach ($video as $videos) @if ($meeting->id == $videos->meeting_id) @if ($meeting->id == ($videos->meeting_id ?? '') || ($videos->type_video ?? '') == 1) VÍDEO @endif @endif @endforeach Proposições Projetos
{!! $documents->appends(request()->input())->render() !!}
@elseif (isset($_GET['propositions'])) @php $meeting_id = $meeting_id = $_GET['propositions']; @endphp

Documentos da sessão - {{ $meet->number }}

@foreach ($propositions as $prop) @if ($prop['document']) @endif @endforeach
Documento Numero Visualizar
{{ $prop['document']->document_type->name . ' - ' . \App\Models\Assemblyman::where('id', $prop['document']->owner_id)->first()->short_name }} {{ $prop['document']->number . '/' . explode('/', $prop['document']->date)[2] ?? 'Sem número' }}
{!! $paginatedPropositions->appends(request()->input())->render() !!}
@elseif (isset($_GET['propositionsProjects'])) @php $meeting_id = $meeting_id = $_GET['propositionsProjects']; @endphp

Projetos da sessão - {{ $meet->number }}

@foreach ($propositionsProjectsLaws as $prop) @if ($prop['projects']) @endif @endforeach
Documento Numero Visualizar
{{ \App\Models\LawsType::where('id', $prop['projects']->law_type_id)->first()->name . ' - ' . \App\Models\Assemblyman::where('id', $prop['projects']->assemblyman_id)->first()->short_name }} {{ $prop['projects']->project_number . '/' . explode('/', $prop['projects']->law_date)[2] ?? 'Sem número' }} Visualizar
{!! $paginatedPropositionsLaw->appends(request()->input())->render() !!}
@elseif (isset($_GET['votingResume']))

Registros

@foreach ($documents as $meetings)
Data Tipo Documento Numero Tipo Visualizar
{{ \Carbon\Carbon::parse($meetings->date_start)->format('d/m/Y') }} @if (!is_null($meetings->document_id)) @if (isset(\App\Models\DocumentType::where('id', $meetings->document_type_id)->first()->name)) {!! \App\Models\DocumentType::where('id', $meetings->document_type_id)->first()->name !!} @else Não possui/NA @endif @elseif(!is_null($meetings->law_id)) @if (isset(\App\Models\LawsType::where('id', $meetings->law_type_id)->first()->name)) {!! \App\Models\LawsType::where('id', $meetings->law_type_id)->first()->name !!} @else Não possui/NA @endif @elseif (!is_null($meetings->ata_id))