This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
<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>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>De {{ $inicio }} até {{ $fim }}</td>
|
||||
<td>{{ $unidade }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Local de atendimento</strong></td>
|
||||
<td><strong>CBO</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $infraestrutura }}</td>
|
||||
<td>{{ $ocupacao }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Profissional</strong></td>
|
||||
<td><strong>Procedimento</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $usuario }}</td>
|
||||
<td>{{ $procedimento }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Idade (anos)</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
@if ($idadeDe && $idadeAte)
|
||||
De {{ $idadeDe }} até {{ $idadeAte }}
|
||||
@elseif ($idadeDe && !$idadeAte)
|
||||
De {{ $idadeDe }}
|
||||
@elseif (!$idadeDe && $idadeAte)
|
||||
Até {{ $idadeAte }}
|
||||
@else
|
||||
Todas
|
||||
@endif
|
||||
</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
|
||||
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() }}" style="text-align: center;"><strong>Total de procedimentos: {{ $totalizadores->quantidade }}</strong></th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user