Files
rkm-conectasus-ci-sandbox/api/resources/views/exportacoes/exame-laboratorial/quantitativo-exame-solicitado.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

115 lines
4.2 KiB
PHP

<table>
<tr>
<td style="text-align: center" colspan="{{ $colunas->count() }}">
<strong>{{ $title }}</strong>
</td>
</tr>
<tr>
<td><strong>Período:</strong></td>
<td><strong>Exame:</strong></td>
</tr>
<tr>
<td>De {{ $periodo['start'] }} até {{ $periodo['end'] }}</td>
<td>{{ $exame_nome }}</td>
</tr>
<tr>
<td><strong>Unidade de coleta:</strong></td>
<td><strong>Local de atendimento:</strong></td>
</tr>
<tr>
<td>{{ $coleta_unidade_nome }}</td>
<td>{{ $coleta_infraestrutura_nome }}</td>
</tr>
<tr>
<td><strong>Laboratório:</strong></td>
<td><strong>Local de atendimento:</strong></td>
</tr>
<tr>
<td>{{ $laboratorio_nome_fantasia }}</td>
<td>{{ $laboratorio_infraestrutura_nome }}</td>
</tr>
</table>
<table>
<thead>
<tr>
@foreach ($colunas as $coluna)
<th>
<strong>{{ $coluna['label'] }}</strong>
</th>
@endforeach
</tr>
</thead>
<tbody>
<tr>
<td>
@foreach ($unidade_coleta as $coleta)
<table>
@foreach ($coleta['exames'] as $agendamento)
<thead>
@if ($loop->first)
<tr>
<th colspan="{{ $colunas->count()}}">
<strong>
Unidade de coleta: {{ $coleta['coleta_nome_fantasia'] }}
- Local de atendimento: {{ $coleta['coleta_infraestrutura_nome'] }}
</strong>
</th>
</tr>
<tr>
<th colspan="{{ $colunas->count()}}">
<strong>
Laboratório: {{ $coleta['laboratorio_nome_fantasia'] }}
- Local de atendimento: {{ $coleta['laboratorio_infraestrutura_nome'] }}
</strong>
</th>
</tr>
@endif
@if ($loop->first)
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] }}">
<strong>
{{ $coluna['label'] }}
</strong>
</th>
@endforeach
</tr>
@endif
</thead>
<tbody>
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] }} background-white">
{{ $agendamento[$coluna['key']] ?? '-' }}
</td>
@endforeach
</tr>
@if ($loop->last)
<tr>
<th colspan="{{ $colunas->count() }}" style="text-align: right">
<strong>
Total de exames: {{$coleta['total_exames']}}
</strong>
</th>
</tr>
@endif
</tbody>
@endforeach
</table>
@endforeach
</td>
</tr>
</tbody>
</table>