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,80 @@
<table>
<tr>
<td colspan="{{ count($colunas) }}"><strong>RELATÓRIO DE PROCEDIMENTOS</strong></td>
</tr>
<tr>
<td><strong>Período</strong></td>
<td>De {{ $inicio }} até {{ $fim }}</td>
</tr>
<tr>
<td><strong>Unidade</strong></td>
<td>{{ $unidade }}</td>
</tr>
<tr>
<td><strong>Local de atendimento</strong></td>
<td>{{ $infraestrutura }}</td>
</tr>
<tr>
<td><strong>CBO</strong></td>
<td>{{ $ocupacao }}</td>
</tr>
<tr>
<td><strong>Especialidade</strong></td>
<td>{{ $especialidade }}</td>
</tr>
<tr>
<td><strong>Profissional</strong></td>
<td>{{ $usuario }}</td>
</tr>
<tr>
<td><strong>Procedimento SIGTAP</strong></td>
<td>{{ $procedimento }}</td>
</tr>
<tr>
<td><strong>Tipo de Demanda</strong></td>
<td>{{ $demandaTipo }}</td>
</tr>
<tr></tr>
</table>
<table>
<thead>
<tr>
@foreach ($colunas as $coluna)
<th><strong>{{ $coluna['label'] }}</strong></th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($itens as $item)
<tr>
@foreach ($colunas as $coluna)
@php $val = $item->{$coluna['key']} ?? null; @endphp
<td>
@if(is_iterable($val))
{{ collect($val)->filter()->implode(', ') ?: '-' }}
@else
{{ $val ?? '-' }}
@endif
</td>
@endforeach
</tr>
@endforeach
<tr>
<td><strong>Total de Registros: {{ $totalRegistros }}</strong></td>
<td><strong>Total de Procedimentos SIGTAP: {{ $totalProcedimentos }}</strong></td>
<td><strong>Total de Procedimentos ABPG: {{ $totalAbpg }}</strong></td>
</tr>
</tbody>
</table>