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,139 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.table-relatorio > thead > tr > th,
.table-relatorio > tfoot > tr > th { text-align: center; font-size: 11px; }
.table-relatorio > tbody > tr > td { font-size: 11px; }
.col-min { width: 1%; white-space: nowrap; }
.totalizadores { margin-top: 16px; }
.totalizadores td, .totalizadores th { padding: 4px 12px; font-size: 12px; }
</style>
@php
$cols = $colunas ?? [];
$show = fn($key) => in_array($key, $cols);
@endphp
@php $f = $filtros ?? []; @endphp
<fieldset style="font-size: 11px;">
<legend style="font-size: 12px;">Filtros</legend>
<div class="row">
<div class="col-4"><strong>Período:</strong></div>
<div class="col-4"><strong>PSE:</strong></div>
<div class="col-4"><strong>Turno:</strong></div>
</div>
<div class="row" style="margin-bottom:6px">
<div class="col-4">{{ $f['periodo'] ?? '' }}</div>
<div class="col-4">{{ $f['pse'] ?? 'Todos' }}</div>
<div class="col-4">{{ $f['turno'] ?? 'Todos' }}</div>
</div>
<div class="row">
<div class="col-4"><strong>Unidade:</strong></div>
<div class="col-4"><strong>Local de Atendimento:</strong></div>
<div class="col-4"><strong>Profissional:</strong></div>
</div>
<div class="row" style="margin-bottom:6px">
<div class="col-4">{{ $f['unidade'] ?? 'Todos' }}</div>
<div class="col-4">{{ $f['localAtendimento'] ?? 'Todos' }}</div>
<div class="col-4">{{ $f['profissional'] ?? 'Todos' }}</div>
</div>
<div class="row">
<div class="col-4"><strong>CBO:</strong></div>
<div class="col-4"><strong>Equipe:</strong></div>
<div class="col-4"><strong>Atividade:</strong></div>
</div>
<div class="row" style="margin-bottom:6px">
<div class="col-4">{{ $f['cbo'] ?? 'Todos' }}</div>
<div class="col-4">{{ $f['equipe'] ?? 'Todos' }}</div>
<div class="col-4">{{ $f['atividade'] ?? 'Todos' }}</div>
</div>
<div class="row">
<div class="col-4"><strong>Público Alvo:</strong></div>
<div class="col-4"><strong>Temas para Saúde:</strong></div>
<div class="col-4"><strong>Práticas em Saúde:</strong></div>
</div>
<div class="row" style="margin-bottom:6px">
<div class="col-4">{{ $f['publicoAlvo'] ?? 'Todos' }}</div>
<div class="col-4">{{ $f['temaSaude'] ?? 'Todos' }}</div>
<div class="col-4">{{ $f['praticaSaude'] ?? 'Todos' }}</div>
</div>
<div class="row">
<div class="col-4"><strong>Procedimentos:</strong></div>
<div class="col-4"><strong>Paciente:</strong></div>
<div class="col-4"><strong>INEP:</strong></div>
</div>
<div class="row" style="margin-bottom:6px">
<div class="col-4">{{ $f['procedimentos'] ?? 'Todos' }}</div>
<div class="col-4">{{ $f['paciente'] ?? 'Todos' }}</div>
<div class="col-4">{{ $f['inep'] ?? 'Todos' }}</div>
</div>
</fieldset>
<table class="table table-bordered table-relatorio">
<thead>
<tr>
<th class="col-min">Data</th>
@if($show('unidade')) <th>Unidade</th> @endif
@if($show('profissional')) <th>Profissional</th> @endif
@if($show('cbo')) <th class="col-min">CBO</th> @endif
@if($show('equipe')) <th>Equipe</th> @endif
@if($show('atividade')) <th>Atividade</th> @endif
@if($show('totalParticipantes')) <th class="col-min">Participantes</th> @endif
@if($show('totalPessoasAvaliadas')) <th class="col-min">Pessoas Avaliadas</th> @endif
@if($show('localAtendimento')) <th>Local de Atendimento</th> @endif
@if($show('cnes')) <th class="col-min">CNES</th> @endif
@if($show('turno')) <th class="col-min">Turno</th> @endif
@if($show('publicoAlvo')) <th>Público Alvo</th> @endif
@if($show('temaSaude')) <th>Temas para Saúde</th> @endif
@if($show('praticaSaude')) <th>Práticas em Saúde</th> @endif
@if($show('procedimentosVinculados')) <th>Procedimentos</th> @endif
</tr>
</thead>
<tbody>
@foreach ($itens as $item)
<tr>
<td>{{ \Carbon\Carbon::parse($item->data)->format('d/m/Y') }}</td>
@if($show('unidade')) <td>{{ $item->unidade }}</td> @endif
@if($show('profissional')) <td>{{ $item->profissional }}</td> @endif
@if($show('cbo')) <td>{{ $item->cbo }}</td> @endif
@if($show('equipe')) <td>{{ $item->equipe }}</td> @endif
@if($show('atividade')) <td>{{ $item->atividade }}</td> @endif
@if($show('totalParticipantes')) <td style="text-align:center">{{ $item->totalParticipantes }}</td> @endif
@if($show('totalPessoasAvaliadas')) <td style="text-align:center">{{ $item->totalPessoasAvaliadas }}</td> @endif
@if($show('localAtendimento')) <td>{{ $item->localAtendimento }}</td> @endif
@if($show('cnes')) <td>{{ $item->cnes }}</td> @endif
@if($show('turno')) <td>{{ $item->turno }}</td> @endif
@if($show('publicoAlvo')) <td>{{ $item->publicoAlvo }}</td> @endif
@if($show('temaSaude')) <td>{{ $item->temaSaude }}</td> @endif
@if($show('praticaSaude')) <td>{{ $item->praticaSaude }}</td> @endif
@if($show('procedimentosVinculados')) <td>{{ $item->procedimentosVinculados }}</td> @endif
</tr>
@endforeach
</tbody>
</table>
<div class="totalizadores">
<table class="table table-bordered">
<thead>
<tr>
<th>Total de Atividades</th>
<th>Total de Procedimentos</th>
<th>Total de Pessoas Avaliadas</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">{{ $totalizadores['totalAtividades'] }}</td>
<td style="text-align:center">{{ $totalizadores['totalProcedimentos'] }}</td>
<td style="text-align:center">{{ $totalizadores['totalPessoasAvaliadas'] }}</td>
</tr>
</tbody>
</table>
</div>
@endsection