@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 VisualizarHistorico/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) !!}
@if ($_SERVER['HTTP_HOST'] == 'jardim.legissuper.com.br' || $_SERVER['HTTP_HOST'] == 'cmladario.legissuper.com.br') @if (strlen($documentModel->content) >= 600) {!! substr($new_string, 0, 600) . '...' !!} @else {!! $new_string !!} @endif @else @if (strlen($documentModel->content) >= 600) {!! substr( strip_tags(html_entity_decode($documentModel->content)), 0, strrpos(substr(strip_tags(html_entity_decode($documentModel->content)), 0, 600), ' '), ) . '...' !!} @else {{ strip_tags(html_entity_decode($documentModel->content)) }} @endif @endif
@if ($download->value && count($documentModel->documents) > 0)
Anexos
@foreach ($documentModel->documents as $doc) @php $explode_file = explode('documents/', $doc->filename); @endphp @if ($doc->filename) @php $url = $_SERVER['HTTP_HOST']; @endphp @if ($url == 'rioverde.localhost:8000') @else @endif @endif @endforeach
@endif
@if ($documentModel->approved == 1) Aprovado @else Lido @endif --}} {{--
--}} {{-- {{-- PDF --}} {{-- --}} {{--
--}} {{--
{!! $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') }}
{!! $documents->appends(request()->input())->render() !!}
@elseif(isset($_GET['atas']))

Registros

@foreach ($documents as $meeting) @endforeach
Data Tipo Numero Local Visualizar
{!! $meeting->date_start !!} {!! $meeting->SessionType->name !!} {!! $meeting->number !!} {!! $meeting->session_place->name !!}
@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
{!! $documents->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))