Files
rkm-conectasus-ci-sandbox/api/resources/views/impressoes/template/cadastro/paciente-folha-rosto.blade.php
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

217 lines
6.5 KiB
PHP

@extends('impressoes.layout1.content')
<meta charset="UTF-8" />
<table class="table">
<thead>
<tr>
<th colspan="3">
<strong>IDENTIFICAÇÃO DO PACIENTE</strong>
</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="{{ $paciente['cidadao']['nome_social'] ? 2 : 3 }}">
<strong>Nome:</strong> {{ $paciente['cidadao']['nome'] }}
</td>
@if ($paciente['cidadao']['nome_social'])
<td>
<strong>Nome social:</strong> {{ $paciente['cidadao']['nome_social'] }}
</td>
@endif
</tr>
<tr>
<td>
<strong>Cor/Raça:</strong> {{ $paciente['cidadao']['racaCor']['descricao'] }}
</td>
<td colspan="2">
<strong>Profissão/Ocupação:</strong> {{ $paciente['cadastroIndividual']['ocupacao']['nome'] ?? '' }}
</td>
</tr>
<tr>
<td>
<strong>Data de nascimento:</strong> {{ $paciente['cidadao']['data_nascimento'] }}
</td>
<td>
<strong>Idade:</strong> {{ $paciente['cidadao']['idadeFormatada'] }}
</td>
<td>
<strong>Sexo:</strong> {{ $paciente['cidadao']['sexo']['descricao'] }}
</td>
</tr>
<tr>
<td>
<strong>CPF:</strong> {{ $paciente['cidadao']['cpf'] ? \App\Utils\MaskUtil::getCpfMasked($paciente['cidadao']['cpf']) : '' }}
</td>
<td colspan="2">
<strong>CNS:</strong> {{ $paciente['cidadao']['cns'] ? \App\Utils\MaskUtil::getCnsMasked($paciente['cidadao']['cns']) : '' }}
</td>
</tr>
<tr>
<td>
<strong>RG:</strong> {{ $paciente['cidadao']['carteiraIdentidade'] && $paciente['cidadao']['carteiraIdentidade']['numero'] ? \App\Utils\MaskUtil::getRgMasked($paciente['cidadao']['carteiraIdentidade']['numero']) : '' }}
</td>
<td colspan="2">
<strong>Prontuário municipal:</strong> {{ $paciente['prontuario'] }}
</td>
</tr>
<tr>
<td colspan="3">
<strong>Nome da mãe:</strong> {{ $paciente['cidadao']['nome_mae'] }}
</td>
</tr>
<tr>
<td colspan="3">
<strong>Nome do pai:</strong> {{ $paciente['cidadao']['nome_pai'] }}
</td>
</tr>
<tr>
<td>
<strong>Telefone:</strong> {{ $paciente['cidadao']['telefonePrincipal'] && $paciente['cidadao']['telefonePrincipal']['numero'] ? \App\Utils\MaskUtil::getPhoneMasked($paciente['cidadao']['telefonePrincipal']['numero']) : '' }}
</td>
<td colspan="2">
<strong>E-mail:</strong> {{ $paciente['email'] }}
</td>
</tr>
<tr>
<td colspan="3">
<strong>Observações:</strong> {{ $paciente['observacao'] }}
</td>
</tr>
</tbody>
</table>
<br />
<table class="table">
<thead>
<tr>
<th colspan="2">
<strong>INFORMAÇÔES DE ENDEREÇO</strong>
</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="2">
<strong>Endereço:</strong>
{{ $paciente['cidadao']['domicilio']['endereco']['logradouro']['nome'] ?? '' }},
{{ $paciente['cidadao']['domicilio']['endereco']['numero'] ?? '' }}
{{ $paciente['cidadao']['domicilio']['endereco']['complemento'] ? ' - ' . $paciente['cidadao']['domicilio']['endereco']['complemento'] : '' }}
</td>
</tr>
<tr>
<td colspan="2">
<strong>Bairro:</strong> {{ $paciente['cidadao']['domicilio']['endereco']['logradouro']['bairro']['nome'] ?? '' }}
</td>
</tr>
<tr>
<td>
<strong>Município/UF:</strong>
{{ $paciente['cidadao']['domicilio']['endereco']['logradouro']['municipio']['nome'] ?? '' }}/{{ $paciente['cidadao']['domicilio']['endereco']['logradouro']['municipio']['estado']['uf'] ?? '' }}
</td>
<td>
<strong>CEP:</strong> {{ $paciente['cidadao']['domicilio']['endereco']['logradouro']['cep'] ? \App\Utils\MaskUtil::getCepMasked($paciente['cidadao']['domicilio']['endereco']['logradouro']['cep']) : '' }}
</td>
</tr>
</tbody>
</table>
<br />
<table class="table">
<thead>
<tr>
<th colspan="2">
<strong>INFORMAÇÔES DA UNIDADE RESPONSÁVEL</strong>
</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="2">
<strong>Unidade/Vínculo atual:</strong> {{ $paciente['unidade']['nome_fantasia'] }}
</td>
</tr>
<tr>
<td colspan="2">
<strong>Situação cadastral:</strong> {{ $paciente['bloqueado'] ? 'Bloqueado' : 'Ativo' }}
</td>
</tr>
<tr>
<td>
<strong>Profissinal responsável pelo cadastro:</strong> {{ $paciente['cadastroIndividual']['usuario']['cidadao']['nome'] ?? '' }}
</td>
<td>
<strong>Data da última atualização:</strong> {{ $paciente['cidadao']['updated_at'] ? \Carbon\Carbon::parse($paciente['cidadao']['updated_at'])->format('d/m/Y') : '' }}
</td>
</tr>
</tbody>
</table>
<br />
<table class="table">
<thead>
<tr>
<th colspan="2">
<strong>PROGRAMAS SOCIAIS</strong>
</th>
</tr>
</thead>
@php
$cadastroDomiciliar = $paciente['cidadao']['domicilio']['CadastroDomiciliar'] ?? [];
@endphp
<tbody>
<tr>
<td>
<strong>Bolsa família:</strong>
{{ !empty($cadastroDomiciliar['bolsa_familia']) ? 'Sim' : 'Não' }}
</td>
<td>
<strong>Vale gás:</strong>
{{ !empty($cadastroDomiciliar['vale_gas']) ? 'Sim' : 'Não' }}
</td>
</tr>
<tr>
<td>
<strong>Bolsa escola:</strong>
{{ !empty($cadastroDomiciliar['bolsa_escola']) ? 'Sim' : 'Não' }}
</td>
<td>
<strong>BPC:</strong>
{{ !empty($cadastroDomiciliar['bpc']) ? 'Sim' : 'Não' }}
</td>
</tr>
</tbody>
</table>