Files
rkm-conectasus-ci-sandbox/api/resources/views/exportacoes/regulacao/relatorio-solicitacao.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

272 lines
5.4 KiB
PHP

<table>
<tr>
<td style="text-align: center" colspan="{{ $colunas->count() }}">
<strong>RELATÓRIO DE SOLICITAÇÕES</strong>
</td>
</tr>
<tr>
<td>
<strong>Período</strong>
</td>
<td>
<strong>Período movimentação</strong>
</td>
<td>
<strong>Paciente</strong>
</td>
</tr>
<tr>
<td>
@if($inicio)De {{ $inicio }}@endif @if($fim)até {{ $fim }}@endif
</td>
<td>
@if($movimentacaoInicio)De {{ $movimentacaoInicio }}@endif @if($movimentacaoFim)até {{ $movimentacaoFim }}@endif
</td>
<td>
{{ $paciente }}
</td>
</tr>
<tr>
<td>
<strong>Idade de</strong>
</td>
<td>
<strong>Idade até</strong>
</td>
<td>
<strong>Unidade(s) reguladora(s)</strong>
</td>
<td>
<strong>Local(is) de atendimento regulador(es)</strong>
</td>
<td>
<strong>Unidade(s) solicitante(s)</strong>
</td>
</tr>
<tr>
<td>
{{ $idadeDe }}
</td>
<td>
{{ $idadeAte }}
</td>
<td>
{{ $unidadesReguladorasLabel }}
</td>
<td>
{{ $reguladoresLabel }}
</td>
<td>
{{ $unidadesSolicitantesLabel }}
</td>
</tr>
<tr>
<td>
<strong>Local(is) de atendimento solicitante(s)</strong>
</td>
<td>
<strong>Unidade(s) referência(s)</strong>
</td>
<td>
<strong>Profissional(is) solicitante(s)</strong>
</td>
</tr>
<tr>
<td>
{{ $infraestruturasSolicitantesLabel }}
</td>
<td>
{{ $unidadesReferenciasLabel }}
</td>
<td>
{{ $usuariosSolicitantesLabel }}
</td>
</tr>
<tr>
<td>
<strong>Prestador(es)</strong>
</td>
<td>
<strong>Status</strong>
</td>
<td>
<strong>Retirada(s) de protocolo(s)</strong>
</td>
<td>
<strong>Grupo(s)</strong>
</td>
</tr>
<tr>
<td>
{{ $prestadoresLabel }}
</td>
<td>
{{ $statusLabel }}
</td>
<td>
{{ $opcoesRetiradasProtocoloAgendamentoLabel }}
</td>
<td>
{{ $gruposLabel }}
</td>
</tr>
<tr>
<td>
<strong>Exame(s) solicitado(s)</strong>
</td>
<td>
<strong>Procedimento(s) cirúrgico(s) solicitado(s)</strong>
</td>
<td>
<strong>Especialidade(s) solicitada(s)</strong>
</td>
</tr>
<tr>
<td>
{{ $examesLabel }}
</td>
<td>
{{ $procedimentosCirurgicosLabel }}
</td>
<td>
{{ $especialidadesLabel }}
</td>
</tr>
<tr>
<td>
<strong>Prioridade(s)</strong>
</td>
<td>
<strong>CID</strong>
</td>
<td>
<strong>CIAP</strong>
</td>
</tr>
<tr>
<td>
{{ $prioridadesLabel }}
</td>
<td>
{{ $cid }}
</td>
<td>
{{ $ciap }}
</td>
</tr>
<tr>
<td>
<strong>Sexo(s)</strong>
</td>
<td>
<strong>Protocolo(s) / OCI</strong>
</td>
<td>
<strong>Etapa(s) do(s) protocolo(s) / OCI</strong>
</td>
</tr>
<tr>
<td>
{{ $sexosLabel }}
</td>
<td>
{{ $ocisLabel }}
</td>
<td>
{{ $etapasClinicasLabel }}
</td>
</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)
<td>
@if($coluna['key'] === 'itens')
@foreach ($item->{$coluna['key']} as $procedimento)
{{ $procedimento }}
@endforeach
@else
{{ $item->{$coluna['key']} }}
@endif
</td>
@endforeach
</tr>
@endforeach
<tr>
<td><strong>Total de solicitações: {{ $totalizadores->solicitacoes }}</strong></td>
<td><strong>Total de pacientes: {{ $totalizadores->pacientes }}</strong></td>
<td><strong>Total de locais de atendimento solicitantes: {{ $totalizadores->infraestruturas_solicitantes }}</strong></td>
<td><strong>Total de prestadores: {{ $totalizadores->prestadores }}</strong></td>
</tr>
<tr>
<td><strong>Total por status:</strong></td>
@foreach ($totalizadores->por_status as $i => $status)
<td><strong>{{ $status->nome }}: {{ $status->quantidade }}</strong></td>
@endforeach
</tr>
</tbody>
</table>