Files
Antonio Lopes dos Santos afec302c3e
All checks were successful
build-api-image / build (push) Successful in 51s
init commit
2026-08-04 16:52:02 -03:00

521 lines
27 KiB
PHP

@extends('impressoes.layout1.content')
<meta charset="UTF-8">
<table class="report-container">
<thead class="report-header">
<tr>
<th class="report-header-cell">
</th>
</tr>
</thead>
<tfoot class="report-footer">
<tr>
<td class="report-footer-cell">
</td>
</tr>
</tfoot>
<tbody class="report-content">
<table class="table-master">
<tr>
<td>
<fieldset>
<legend>IDENTIFICAÇÃO DO PROFISSIONAL</legend>
<table class="table">
<tr>
<td>
<strong>CNS DO PROFISSIONAL:</strong><br />
{{ $domicilio['cadastro']['usuario']['cns'] }}
</td>
<td>
<strong>CBO:</strong><br />
{{ $domicilio['cadastro']['usuario']['cbo'] }}
</td>
<td>
<strong>CNES:</strong><br />
{{ $domicilio['cadastro']['cnes'] }}
</td>
<td>
<strong>INE:</strong><br />
{{ $domicilio['cadastro']['numero_ine'] }}
</td>
<td>
<strong>DATA:</strong><br />
{{ $domicilio['cadastro']['data_usuario_responsavel'] }}
</td>
</tr>
</table>
</fieldset>
</td>
</tr>
<tr>
<td>
<fieldset>
<legend>ENDEREÇO/LOCAL DE PERMANÊNCIA</legend>
<table class="table">
<tr>
<td>
<strong>CEP:</strong><br />
{{ $domicilio['endereco']['logradouro']['cep'] }}
</td>
<td colspan="2">
<strong>MUNICÍPIO:</strong><br />
{{ $domicilio['endereco']['logradouro']['municipio']['nome'] }}
</td>
<td>
<strong>UF:</strong><br />
{{ $domicilio['endereco']['logradouro']['municipio']['estado']['uf'] }}
</td>
</tr>
<tr>
<td>
<strong>BAIRRO:</strong><br />
{{ $domicilio['endereco']['logradouro']['bairro']['nome'] }}
</td>
<td>
<strong>TIPO DE LOGRADOURO:</strong><br />
{{ $domicilio['endereco']['logradouro_tipo'] }}
</td>
<td colspan="2">
<strong>NOME DO LOGRADOURO:</strong><br />
{{ $domicilio['endereco']['logradouro']['nome'] }}
</td>
</tr>
<tr>
<td>
<strong>NÚMERO:</strong><br />
{{ $domicilio['endereco']['sem_numero'] ? 'SEM NÚMERO' : $domicilio['endereco']['numero'] }}
</td>
<td>
<strong>COMPLEMENTO:</strong><br />
{{ $domicilio['endereco']['complemento'] }}
</td>
<td>
<strong>PTO. REFERÊNCIA:</strong><br />
{{ $domicilio['endereco']['referencia'] }}
</td>
<td>
<strong>MICROÁREA:</strong><br />
{{ $domicilio['endereco']['fora_area'] ? 'FORA DE ÁREA' : $domicilio['endereco']['microarea'] }}
</td>
</tr>
<tr>
<td>
<strong>TIPO DE IMÓVEL:</strong><br />
{{ $domicilio['residencia']['imovel_tipo'] }}
</td>
<td colspan="3">
<strong>TELEFONES PARA CONTATO:</strong><br />
-
</td>
</tr>
</table>
</fieldset>
</td>
</tr>
<tr>
<td>
<fieldset>
<legend>CONDIÇÕES DE MORADIA</legend>
<table class="table" style="border:0!important">
<tr>
<td class="td">
<table>
<tr>
<td style="border-bottom: 0px;">
<strong>SITUAÇÃO DE MORADIA/POSSE DA TERRA:</strong><br />
@foreach($domicilio['form']['situacao_domicilio'] as $i => $situacao)
<label>
<input type="radio" name="situacao_domicilio" value="" @if($domicilio['residencia']['situacao_domicilio_id'] == $situacao['id']) checked @endif>
{{ ucfirst(mb_strtolower($situacao['descricao'])) }}
</label>
@endforeach
</td>
<td style="border-bottom: 0px;">
<strong>ZONA:</strong><br />
@foreach($domicilio['form']['zonas'] as $i => $zona)
<label>
<input type="radio" name="zonas" value="" @if($domicilio['residencia']['domicilio_zona_id'] == $zona['id']) checked @endif>
{{ ucfirst(mb_strtolower($zona['descricao'])) }}
</label>
@endforeach
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="td">
<table>
<tr>
<td style="border-bottom: 0px; width:50%; max-width:50%">
<strong>TIPO DE DOMICÍLIO:</strong><br />
@foreach($domicilio['form']['domicilio_tipo'] as $i => $tipo)
<label>
<input type="radio" name="domicilio_tipo" value="" @if($domicilio['residencia']['domicilio_tipo_id'] == $tipo['id']) checked @endif>
{{ ucfirst(mb_strtolower($tipo['descricao'])) }}
</label>
@endforeach
</td>
<td style="border-bottom: 0px;">
<strong>Nº DE MORADORES:</strong><br />
{{ count($domicilio['form']['residentes']) }}
</td>
<td style="border-bottom: 0px;">
<strong>Nº DE CÔMODOS</strong><br />
{{ $domicilio['residencia']['quantidade_comodos'] }}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="td">
<table>
<tr>
<td style="border-bottom: 0px;">
<strong>EM CASO DE ÁREA DE PRODUÇÃO RURAL: Condição de Posse e Uso da Terra:</strong><br />
@foreach($domicilio['form']['situacao_rural'] as $i => $situacao)
<label style="width: 32%; display: inline-block;">
<input type="radio" name="situacao_rural" value="" @if($domicilio['residencia']['situacao_rural_id'] == $situacao['id']) checked @endif>
{{ ucfirst(mb_strtolower($situacao['descricao'])) }}
</label>
@if(($i + 1) % 3 == 0)
<br />
@endif
@endforeach
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="td">
<table>
<tr>
<td style="border-bottom: 0px;">
<strong>TIPO DE ACESSO AO DOMICÍLIO:</strong><br />
@foreach($domicilio['form']['domicilio_tipo_acesso'] as $i => $tipo)
<label>
<input type="radio" name="domicilio_tipo_acesso" value="" @if($domicilio['residencia']['domicilio_tipo_acesso_id'] == $tipo['id']) checked @endif>
{{ ucfirst(mb_strtolower($tipo['descricao'])) }}
</label>
@endforeach
</td>
<td style="border-bottom: 0px;">
<strong>DISPONIBILIDADE DE ENERGIA ELÉTRICA?</strong><br />
{{ $domicilio['residencia']['energia_eletrica'] }}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="td">
<table>
<tr>
<td style="border-bottom: 0px;">
<strong>MATERIAL PREDOMINANTE NA CONSTRUÇÃO DAS PAREDES EXTERNAS DE SEU DOMICÍLIO</strong><br />
@foreach($domicilio['form']['material_predominante'] as $i => $material)
<label style="width: 32%; display: inline-block;">
<input type="radio" name="material_predominante" value="" @if($domicilio['residencia']['material_predominante_id'] == $material['id']) checked @endif>
{{ ucfirst(mb_strtolower($material['descricao'])) }}
</label>
@if(($i + 1) % 3 == 0)
<br />
@endif
@endforeach
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="td">
<table>
<tr>
<td style="border-bottom: 0px; width:50%; max-width:50%">
<strong>ABASTECIMENTO DE ÁGUA:</strong><br />
@foreach($domicilio['form']['abastecimento'] as $i => $abastecimento)
<label>
<input type="radio" name="abastecimento" value="" @if($domicilio['residencia']['abastecimento_id'] == $abastecimento['id']) checked @endif>
{{ ucfirst(mb_strtolower($abastecimento['descricao'])) }}
</label>
@if(($i + 1) % 4 == 0)
<br />
@endif
@endforeach
</td>
<td style="border-bottom: 0px; ">
<strong>ÁGUA PARA CONSUMO NO DOMICÍLIO:</strong><br />
@foreach($domicilio['form']['tratamento'] as $i => $tratamento)
<label>
<input type="radio" name="tratamento" value="" @if($domicilio['residencia']['tratamento_id'] == $tratamento['id']) checked @endif>
{{ ucfirst(mb_strtolower($tratamento['descricao'])) }}
</label>
@endforeach
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="td">
<table>
<tr>
<td style="width:50%; max-width:50%">
<strong>FORMA DE ESCOAMENTO DO BANHEIRO OU SANITÁRIO:</strong><br />
@foreach($domicilio['form']['forma_escoamento'] as $i => $escoamento)
<label>
<input type="radio" name="forma_escoamento" value="" @if($domicilio['residencia']['forma_escoamento_id'] == $escoamento['id']) checked @endif>
{{ ucfirst(mb_strtolower($escoamento['descricao'])) }}
</label>
@if(($i + 1) % 3 == 0)
<br />
@endif
@endforeach
</td>
<td>
<strong>DESTINO DO LIXO:</strong><br />
@foreach($domicilio['form']['destino_lixo'] as $i => $lixo)
<label>
<input type="radio" name="destino_lixo" value="" @if($domicilio['residencia']['destino_lixo_id'] == $lixo['id']) checked @endif>
{{ ucfirst(mb_strtolower($lixo['descricao'])) }}
</label>
@endforeach
</td>
</tr>
</table>
</td>
</tr>
</table>
</fieldset>
</td>
</tr>
<tr>
<td>
<fieldset>
<legend>ANIMAIS</legend>
<table class="table">
<tr>
<td>
<strong>ANIMAIS NO DOMICÍLIO?</strong><br />
{{ $domicilio['residencia']['possui_animais'] }}
</td>
<td colspan="2">
<strong>QUAL(IS)?</strong><br />
@foreach($domicilio['form']['animais'] as $i => $animais)
<input type="checkbox" name="animais" value="" @if($domicilio['residencia']['animal']->contains($animais['id'])) checked @endif>
{{ ucfirst(mb_strtolower($animais['descricao'])) }}
@endforeach
</td>
<td>
<strong>QUANTOS?</strong><br />
{{ $domicilio['residencia']['quantidade_animais'] }}
</td>
</tr>
</table>
</fieldset>
</td>
</tr>
</table>
<table class="table-master">
<tr>
<td>
<fieldset>
<legend>RESIDENTES</legend>
<table class="table">
<tr>
<td><strong>NOME</strong></td>
<td><strong>NOME SOCIAL</strong></td>
<td><strong>PRONTUÁRIO</strong></td>
<td><strong>DATA NASCIMENTO</strong></td>
<td><strong>PARENTESCO COM O RESPONSÁVEL FAMILIAR</strong></td>
</tr>
@foreach($domicilio['form']['residentes'] as $i => $residente)
<tr>
<td>{{ $residente->nome }}</td>
<td>{{ $residente->nome_social }}</td>
<td>{{ $residente->prontuario }}</td>
<td>{{ $residente->data_nascimento }}</td>
<td>{{ ucfirst(mb_strtolower($residente->parentesco)) }}</td>
</tr>
@endforeach
</table>
</fieldset>
</td>
</tr>
</table>
<table class="table-master">
<tr>
<td>
<fieldset>
<legend>TERMO DE RECUSA DO CADASTRO DOMICILIAR DA ATENÇÃO BÁSICA</legend>
<table class="table declaracao">
<tr>
<td class="declaracao">
Eu, __________________________________________________________________________,
portador(a) do RG nº _____________________________,
gozando de plena consciência dos meus atos, recuso este cadastro, mesmo que isso
facilite o acompanhamento a minha saúde e de meus familiares. Estou ciente de
que essa recusa não implicará o não atendimento na unidade de saúde.
</td>
</tr>
<tr>
<td class="declaracao">
<div style="margin: 0 auto; margin-top:50px">
<div style="margin: 0 auto; width:40%; border-top: 1px solid #000; text-align:center">
<strong>Assinatura</strong>
</div>
</div>
</td>
</tr>
</table>
</fieldset>
</td>
</tr>
</table>
@if($domicilio['instituicao']['nome_responsavel_tecnico'])
<table class="table-master">
<tr>
<td>
<fieldset>
<legend>INSTITUIÇÃO DE PERMANÊNCIA</legend>
<table class="table">
<tr>
<td>
<strong>NOME DA INSTITUIÇÃO DE PERMANÊNCIA:</strong><br />
{{ $domicilio['instituicao']['nome'] }}
</td>
</tr>
<tr>
<td>
<strong>Existem outros profissionais de saúde vinculados à instituição
(não inclui profissionais da rede pública de saúde)?</strong>
{{ $domicilio['instituicao']['outros_profissionais'] }}
</td>
</tr>
<tr>
<td>
<strong style="text-align: center">IDENTIFICAÇÃO DO RESPONSÁVEL TÉCNICO DA INSTITUIÇÃO DE PERMANÊNCIA</strong><br /><br />
<strong>NOME:</strong> {{ $domicilio['instituicao']['nome_responsavel_tecnico'] }}<br/>
<strong>CNS DO RESPONSÁVEL:</strong> {{ $domicilio['instituicao']['cns_responsavel_tecnico'] }}<br/>
<strong>CARGO NA INSTITUIÇÃO:</strong> {{ $domicilio['instituicao']['cargo_responsavel_tecnico'] }}<br/>
<strong>TEL. CONTATO:</strong> {{ $domicilio['instituicao']['telefone_responsavel_tecnico'] }}<br/>
</td>
</tr>
</table>
</fieldset>
</td>
</tr>
</table>
<table class="table-master">
<tr>
<td>
<fieldset>
<legend>TERMO DE RECUSA DA INSTITUIÇÃO DE PERMANÊNCIA</legend>
<table class="table declaracao">
<tr>
<td class="declaracao">
Eu, __________________________________________________________________________,
portador(a) do RG nº _____________________________,
responsável técnico pela instituição, recuso este cadastro, mesmo que essa recusa
dificulte o acompanhamento da saúde das pessoas abrigadas/residentes nesta
instituição. Estou ciente de que esta recusa não implicará o não atendimento
pela equipe de saúde.
</td>
</tr>
<tr>
<td class="declaracao">
<div style="margin: 0 auto; margin-top:50px">
<div style="margin: 0 auto; width:40%; border-top: 1px solid #000; text-align:center">
<strong>Assinatura</strong>
</div>
</div>
</td>
</tr>
</table>
</fieldset>
</td>
</tr>
</table>
@endif
</tbody>
</table>
<style>
body {font-family: Helvetica, arial, sans-serif;}
h2 {text-align: center}
p {margin:0; padding: 0;}
.table-master {border-collapse: collapse!important; display: inline-table;}
tr {border:0;}
td { background: #fff!important; white-space: nowrap; vertical-align: top!important;}
.brl-0 {border-right: 0px!important; border-left: 0px!important; vertical-align: center!important;}
.ws-normal {white-space: normal!important; width: 50%!important;}
.declaracao {white-space: normal!important; border: 0px!important}
.outrasCondicoes {white-space: normal!important; min-height: 60px;}
.td { border: 0!important; padding: 0!important;}
</style>