72 lines
1.6 KiB
PHP
72 lines
1.6 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>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> |