init commit
All checks were successful
build-api-image / build (push) Successful in 51s

This commit is contained in:
Antonio Lopes dos Santos
2026-08-04 16:52:02 -03:00
commit afec302c3e
11594 changed files with 1636728 additions and 0 deletions

View File

@@ -0,0 +1,217 @@
@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>

View File

@@ -0,0 +1,79 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.table th {text-align: center;}
.col-min {width: 1%;}
.text-center {text-align: center;}
</style>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-3">
<strong>Grupo</strong>
<div>{{$grupo}}</div>
</div>
<div class="col-3">
<strong>Subgrupo</strong>
<div>{{$subgrupo}}</div>
</div>
<div class="col-3">
<strong>Tipo de receita</strong>
<div>{{$receita_tipo}}</div>
</div>
<div class="col-3">
<strong>Livro</strong>
<div>{{$livro}}</div>
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Tipo de livro</strong>
<div>{{$livro_tipo}}</div>
</div>
<div class="col-3">
<strong>Forma farmacêutica</strong>
<div>{{$forma_farmaceutica}}</div>
</div>
<div class="col-6">
<strong>Programas/Ações</strong>
<div>{{$programas_acoes}}</div>
</div>
</div>
<div class="row">
<div class="col-12">
<strong>Material</strong>
<div>{{$material}}</div>
</div>
</div>
</fieldset>
<table class="table">
<thead>
<tr>
@foreach ($columns as $column)
<th class="{{$column['class']}}">{{$column['label']}}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($itens as $item)
<tr>
@foreach ($columns as $column)
<td class="{{$column['class']}}">{{$item->{$column['key']} ?? '-'}}</td>
@endforeach
</tr>
@endforeach
</tbody>
</table>
@endsection

View File

@@ -0,0 +1,128 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.table-relatorio > thead > tr > th,
.table-relatorio > tfoot > tr > th { text-align: center; }
.col-min { width: 1%; }
.text-center { text-align: center !important; }
</style>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-2">
<strong>Classificação</strong>
<div>
{{ $classificacao }}
</div>
</div>
<div class="col-4">
<strong>Município</strong>
<div>
{{ $municipio }}
</div>
</div>
<div class="col-6">
<strong>Unidade</strong>
<div>
{{ $unidade }}
</div>
</div>
</div>
<div class="row">
<div class="col-3">
<strong>Bairro</strong>
<div>
{{ $bairro }}
</div>
</div>
<div class="col-3">
<strong>Tipo de logradouro</strong>
<div>
{{ $tipoLogradouro }}
</div>
</div>
<div class="col-6">
<strong>Logradouro</strong>
<div>
{{ $logradouro }}
</div>
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Paciente</strong>
<div>
{{ $paciente }}
</div>
</div>
<div class="col-2">
<strong>Fora de área</strong>
<div>
{{ $foraArea }}
</div>
</div>
<div class="col-2">
<strong>Área</strong>
<div>
{{ $area }}
</div>
</div>
<div class="col-2">
<strong>Microárea</strong>
<div>
{{ $microarea }}
</div>
</div>
</div>
</fieldset>
<table class="table table-relatorio">
<thead>
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($itens as $item)
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] }}">{{ $item->{$coluna['key']} }}</td>
@endforeach
</tr>
@endforeach
@if($isModeloSintetico)
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] }}">{{ $totalizadores->{$coluna['key']} ?? '' }}</th>
@endforeach
</tr>
@endif
</tbody>
</table>
@endsection

View File

@@ -0,0 +1,100 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.table-relatorio > thead > tr > th,
.table-relatorio > tfoot > tr > th { text-align: center; }
.col-min { width: 1%; }
.text-center { text-align: center !important; }
</style>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-2">
<strong>Lotação principal</strong>
<div>
{{ $lotacaoPrincipal }}
</div>
</div>
<div class="col-5">
<strong>Unidade (Lotação)</strong>
<div>
{{ $unidade }}
</div>
</div>
<div class="col-5">
<strong>Local de atendimento (Lotação)</strong>
<div>
{{ $infraestrutura }}
</div>
</div>
</div>
<div class="row">
<div class="col-5">
<strong>CBO (Lotação)</strong>
<div>
{{ $ocupacao }}
</div>
</div>
<div class="col-2">
<strong>Status</strong>
<div>
{{ $status }}
</div>
</div>
<div class="col-5">
<strong>Sexo</strong>
<div>
{{ $sexo }}
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<strong>Usuário</strong>
<div>
{{ $usuario }}
</div>
</div>
</div>
</fieldset>
<table class="table table-relatorio">
<thead>
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($itens as $item)
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] }}">{{ $item->{$coluna['key']} ?? '-' }}</td>
@endforeach
</tr>
@endforeach
<tr>
<th colspan="{{ $colunas->count() }}" style="text-align: center;">Total de usuários: {{ $totalizadores->usuario }}</th>
</tr>
</tbody>
</table>
@endsection