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,146 @@
<table>
<tr>
<td colspan="{{ $colunas->count() }}" style="text-align: center">
<strong>{{ $title }}</strong>
</td>
</tr>
<tr>
<td>
<strong>Ano</strong>
</td>
<td>
<strong>Mês</strong>
</td>
<td colspan="7">
<strong>Unidade</strong>
</td>
<td colspan="7">
<strong>Local de atendimento</strong>
</td>
</tr>
<tr>
<td>
{{ $ano }}
</td>
<td>
{{ $mes }}
</td>
<td colspan="7">
{{ $unidade }}
</td>
<td colspan="7">
{{ $infraestrutura }}
</td>
</tr>
<tr>
<td colspan="9">
<strong>CBO</strong>
</td>
<td colspan="7">
<strong>Especialidade</strong>
</td>
</tr>
<tr>
<td colspan="9">
{{ $ocupacao }}
</td>
<td colspan="7">
{{ $especialidade }}
</td>
</tr>
@foreach ($itens as $i => $infraestrutura)
<tr>
<td colspan="{{ count($colunas) }}"></td>
</tr>
<tr>
<td colspan="{{ count($colunas) }}" style="text-align: center;">
<strong>Unidade: {{ $infraestrutura->unidade_nome_fantasia }}<br>Local de atendimento: {{ $infraestrutura->infraestrutura_nome }}</strong>
</td>
</tr>
<tr>
<th></th>
<th colspan="{{ count($colunas) - 2 }}" style="text-align: center;">
<strong>Dia do mês</strong>
</th>
<th></th>
</tr>
<tr>
@foreach ($colunas as $coluna)
<td>
<strong>{{ $coluna['label'] }}</strong>
</td>
@endforeach
</tr>
@foreach ($infraestrutura->usuarios as $usuario)
<tr>
@foreach ($colunas as $coluna)
<td>{{ $usuario->{$coluna['key']} }}</td>
@endforeach
</tr>
@endforeach
<tr>
@foreach ($colunas as $coluna)
<td>
<strong>{{ $infraestrutura->{$coluna['key']} ?? '' }}</strong>
</td>
@endforeach
</tr>
@endforeach
<tr>
<td colspan="{{ count($colunas) }}"></td>
</tr>
<tr>
<td colspan="{{ count($colunas) }}" style="text-align: center;">
<strong>Totalizadores</strong>
</td>
</tr>
<tr>
<th></th>
<th colspan="{{ count($colunas) - 2 }}" style="text-align: center;">
<strong>Dia do mês</strong>
</th>
<th></th>
</tr>
<tr>
<td></td>
@foreach ($colunasTotalizadores as $coluna)
<td>
<strong>{{ $coluna['label'] }}</strong>
</td>
@endforeach
</tr>
<tr>
<td></td>
@foreach ($colunasTotalizadores as $coluna)
<td>{{ $totalizadores->{$coluna['key']} }}</td>
@endforeach
</tr>
</table>