This commit is contained in:
@@ -0,0 +1,119 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ count($params['columns']) }}">
|
||||
RELATÓRIO QUANTITATIVO DE PRODUÇÃO
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Período de:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Até: </strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Unidade:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['periodo']['date']['start'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['periodo']['date']['end'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['unidade'] }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Local de atendimento:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Idade de:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Até:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['local_atendimento'] }}
|
||||
</td>
|
||||
<td>
|
||||
@if (empty($params['idade_de']))
|
||||
Todas
|
||||
@else
|
||||
{{ $params['idade_de'] }}
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if (empty($params['idade_ate']))
|
||||
Todas
|
||||
@else
|
||||
{{ $params['idade_ate'] }}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>CBO:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Procedimento:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Status:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['ocupacao'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['procedimento'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['status_nome'] }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach($params['columns'] as $col)
|
||||
<th><strong>{{ $col['label'] }}</strong></th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($procedimentos_atendimentos['procedimentos_atendimentos'] as $procedimentoAtendimento)
|
||||
<tr>
|
||||
@foreach($params['columns'] as $col)
|
||||
@if ($col['key'] === 'procedimento')
|
||||
<td>{{ $procedimentoAtendimento->procedimento_codigo_nome }}</td>
|
||||
@elseif ($col['key'] === 'ocupacao')
|
||||
<td>{{ $procedimentoAtendimento->ocupacao_codigo_nome }}</td>
|
||||
@else
|
||||
<td>{{ get_object_vars($procedimentoAtendimento)[$col['key']] }}</td>
|
||||
@endif
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
<tr>
|
||||
<td colspan="{{ count($params['columns']) - 1 }}" style="text-align: right">
|
||||
<strong>Total Geral</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $procedimentos_atendimentos['quantidade_total'] }}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user