81 lines
2.0 KiB
PHP
81 lines
2.0 KiB
PHP
<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>
|