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,129 @@
<table>
<tr>
<td style="text-align: center" colspan="{{ $colunas->count() }}">
<strong>{{ $title }}</strong>
</td>
</tr>
<tr>
<td>
<strong>Período de envio DRS:</strong>
</td>
<td colspan="2">
<strong>Unidade:</strong>
</td>
</tr>
<tr>
<td>
De {{ $inicio }} até {{ $fim }}
</td>
<td colspan="2">
{{ $unidade }}
</td>
</tr>
<tr>
<td>
<strong>Local de atendimento:</strong>
</td>
<td>
<strong>Setor:</strong>
</td>
<td>
<strong>Tipo:</strong>
</td>
</tr>
<tr>
<td>
{{ $infraestrutura }}
</td>
<td>
{{ $setor }}
</td>
<td>
{{ $tipo }}
</td>
</tr>
<tr>
<td>
<strong>Subtipo:</strong>
</td>
<td colspan="2">
<strong>Paciente:</strong>
</td>
</tr>
<tr>
<td>
{{ $subtipo }}
</td>
<td colspan="2">
{{ $paciente }}
</td>
</tr>
</table>
<table>
<thead>
<tr>
@foreach ($colunas as $coluna)
<th>
<strong>{{ $coluna['label'] }}</strong>
</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($itens as $item)
@if ($item->materiais->count() > 1)
@foreach ($item->materiais as $i => $material)
<tr>
@foreach ($colunas as $coluna)
@if (in_array($coluna['key'], ['material_descricao', 'quantidade_solicitada']))
<td>{{ $material->{$coluna['key']} }}</td>
@elseif ($i === 0)
<td rowspan="{{ $item->materiais->count() }}">{{ $item->{$coluna['key']} ?? '-' }}</td>
@endif
@endforeach
</tr>
@endforeach
@else
<tr>
@foreach ($colunas as $coluna)
@if (in_array($coluna['key'], ['material_descricao', 'quantidade_solicitada']))
<td>
@foreach ($item->materiais as $material)
{{ $material->{$coluna['key']} }}
@endforeach
</td>
@else
<td>{{ $item->{$coluna['key']} ?? '-' }}</td>
@endif
@endforeach
</tr>
@endif
@endforeach
</tbody>
<tfoot>
<tr>
<th><strong>Total de pacientes: {{ $totalizadores->pacientes }}</strong></th>
<th></th>
<th><strong>Total de processos: {{ $totalizadores->processos }}</strong></th>
<th></th>
<th><strong>Total de medicamentos: {{ $totalizadores->medicamentos }}</strong></th>
</tr>
</tfoot>
</table>

View File

@@ -0,0 +1,97 @@
<table>
<tr>
<td style="text-align: center" colspan="{{ $colunas->count() }}">
<strong>{{ $title }}</strong>
</td>
</tr>
<tr>
<td>
<strong>Data</strong>
</td>
<td>
<strong>Período de solicitação:</strong>
</td>
<td>
<strong>Unidade:</strong>
</td>
</tr>
<tr>
<td>
{{ $periodoTipo }}
</td>
<td>
De {{ $inicio }} até {{ $fim }}
</td>
<td>
{{ $unidade }}
</td>
</tr>
<tr>
<td>
<strong>Local de atendimento:</strong>
</td>
<td>
<strong>Setor:</strong>
</td>
</tr>
<tr>
<td>
{{ $infraestrutura }}
</td>
<td>
{{ $setor }}
</td>
</tr>
<tr>
<td>
<strong>Paciente:</strong>
</td>
<td>
<strong>Medicamento:</strong>
</td>
</tr>
<tr>
<td>
{{ $paciente }}
</td>
<td>
{{ $material }}
</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>{{ $item->{$coluna['key']} ?? '-' }}</td>
@endforeach
</tr>
@endforeach
</tbody>
</table>

View File

@@ -0,0 +1,57 @@
<table>
<tr>
<td style="text-align: center" colspan="2">
<strong>{{$title}}</strong>
</td>
</tr>
<tr>
<td><strong>Período</strong></td>
<td><strong>Unidade</strong></td>
</tr>
<tr>
<td>De {{$periodo['inicio']}} até {{$periodo['fim']}}</td>
<td>{{$unidade}}</td>
</tr>
<tr>
<td><strong>Local de atendimento</strong></td>
<td><strong>Medicamento</strong></td>
</tr>
<tr>
<td>{{$infraestrutura}}</td>
<td>{{$material}}</td>
</tr>
<tr>
<td><strong>Paciente</strong></td>
</tr>
<tr>
<td>{{$paciente}}</td>
</tr>
</table>
<table>
<thead>
<tr>
@foreach ($colunas as $coluna)
<th>
<strong>{{$coluna['label']}}</strong>
</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($data['itens'] as $item)
<tr>
@foreach ($colunas as $coluna)
<td>{{$item->{$coluna['key']} ?? '-'}}</td>
@endforeach
</tr>
@endforeach
</tbody>
</table>

View File

@@ -0,0 +1,72 @@
<table>
<tr>
<td style="text-align: center" colspan="{{ $colunas->count() }}">
<strong>{{ $title }}</strong>
</td>
</tr>
<tr>
<td><strong>Período:</strong></td>
<td><strong>Unidade:</strong></td>
<td><strong>Local de atendimento:</strong></td>
</tr>
<tr>
<td>De {{ $inicio }} até {{ $fim }}</td>
<td>{{ $unidade }}</td>
<td>{{ $infraestrutura }}</td>
</tr>
<tr>
<td><strong>Setor:</strong></td>
<td><strong>Médico solicitante:</strong></td>
<td><strong>Tipo da receita:</strong></td>
</tr>
<tr>
<td>{{ $setor }}</td>
<td>{{ $usuarioSolicitante }}</td>
<td>{{ $tipoReceita }}</td>
</tr>
<tr>
<td><strong>Grupo:</strong></td>
<td><strong>Subgrupo:</strong></td>
<td><strong>Medicamento:</strong></td>
</tr>
<tr>
<td>{{ $grupo }}</td>
<td>{{ $subgrupo }}</td>
<td>{{ $material }}</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>{{ $item->{$coluna['key']} ?? '-' }}</td>
@endforeach
</tr>
@endforeach
</tbody>
</table>
<tfoot>
<tr>
<th colspan="{{ $colunas->count() - 1 }}"></th>
<th>{{ $totalizadores->quantidade }}</th>
</tr>
</tfoot>