129 lines
2.9 KiB
PHP
129 lines
2.9 KiB
PHP
<table>
|
|
<tr>
|
|
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
|
<strong>{{ $title }}</strong>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="2">
|
|
<strong>Período:</strong>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="2">
|
|
De {{ $periodo['start'] }} até {{ $periodo['end'] }}
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
<strong>Unidade Solicitante:</strong>
|
|
</td>
|
|
|
|
<td>
|
|
<strong>Local de atendimento:</strong>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
{{ $unidade_nome }}
|
|
</td>
|
|
|
|
<td>
|
|
{{ $infraestrutura_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 }}
|
|
</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>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
<tr>
|
|
@foreach ($colunas as $coluna)
|
|
<th class="{{ $coluna['class'] }}"><strong>{{ $coluna['label'] }}</strong></th>
|
|
@endforeach
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
@foreach ($exames as $exame)
|
|
<tr>
|
|
@foreach ($colunas as $coluna)
|
|
<td class="{{ $coluna['class'] }} background-white">{{ $exame[$coluna['key']] ?? '-' }}</td>
|
|
@endforeach
|
|
</tr>
|
|
@endforeach
|
|
<tr>
|
|
<th colspan="{{ $colunas->count() - 2 }}"></th>
|
|
<th>
|
|
<strong>Total</strong>
|
|
</th>
|
|
<th>
|
|
<strong>{{ $total }}</strong>
|
|
</th>
|
|
</tr>
|
|
<tr><td colspan="{{ $colunas->count() }}"></td></tr>
|
|
</tbody>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table> |