This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $columns->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Período:</strong></td>
|
||||
<td>Unidade:</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>De {{$start_date}} até {{$end_date}}</td>
|
||||
<td>{{$servico_tipo}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Tipo de serviço:</strong></td>
|
||||
<td><strong>Status do processamento:</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$servico_tipo}}</td>
|
||||
<td>{{$processamento_status}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Protocolo:</strong></td>
|
||||
<td><strong>Lote:</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$protocolo}}</td>
|
||||
<td>{{$lote}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($columns as $column)
|
||||
<th><strong>{{$column['label']}}</strong></th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($itens as $item)
|
||||
<tr>
|
||||
@foreach ($columns as $column)
|
||||
@if ($column['key'] === 'inconsistencias')
|
||||
@if (isset($item->respostas) && count($item->respostas) > 0)
|
||||
@foreach ($item->respostas as $resposta)
|
||||
<strong>Código:</strong> {{$resposta['codigo'] ?? 'Não informado'}}, <strong>Valor rejeitado:</strong> {{$resposta['valor_rejeitado'] ?? 'Não informado'}}, <strong>Descrição:</strong> {{$resposta['descricao'] ?? 'Não informado'}}<br />
|
||||
@endforeach
|
||||
@else
|
||||
-
|
||||
@endif
|
||||
@else
|
||||
<td>{{$item->{$column['key']} ?? '-'}}</td>
|
||||
@endif
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td><strong>Quantidade total de envios:</strong></td>
|
||||
<td><strong>Quantidade total de inconsistências:</strong></td>
|
||||
<td><strong>Quantidade total:</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$totalizadores->quantidade_total_envios}}</td>
|
||||
<td>{{$totalizadores->quantidade_total_inconsistencias}}</td>
|
||||
<td>{{$totalizadores->quantidade_total}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -0,0 +1,154 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ count($params['columns']) }}">
|
||||
RELATÓRIO DE ATENDIMENTOS
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Período de:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Até: </strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Hora de:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Até: </strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Dia da semana:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['periodo']['date']['start'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['periodo']['date']['end'] }}
|
||||
</td>
|
||||
<td>
|
||||
@empty($params['periodo']['time']['start'])
|
||||
Todas
|
||||
@endempty
|
||||
{{ $params['periodo']['time']['start'] }}
|
||||
</td>
|
||||
<td>
|
||||
@empty($params['periodo']['time']['end'])
|
||||
Todas
|
||||
@endempty
|
||||
{{ $params['periodo']['time']['end'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['diaSemanaFilter'] }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Tipo de Alta::</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Profissional:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Cid:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['tipoAltaFilter'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['profissionalFilter'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['cidFilter'] }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Idade de:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Até:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Paciente:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td>
|
||||
@empty($params['idade_de'])
|
||||
Todas
|
||||
@endempty
|
||||
{{ $params['idade_de'] }}
|
||||
</td>
|
||||
<td>
|
||||
@empty($params['idade_ate'])
|
||||
Todas
|
||||
@endempty
|
||||
{{ $params['idade_ate'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['pacienteFilter'] }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Cns:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Sexo:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['cns'] ?? 'Todos' }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['sexoFilter'] }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach($params['columns'] as $coluna)
|
||||
@if ($coluna['key'] !== 'todas')
|
||||
<th>{{ $coluna['label'] }}</th>
|
||||
@endif
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($atendimentos['atendimentos'] as $atendimento)
|
||||
<tr>
|
||||
@foreach($params['columns'] as $coluna)
|
||||
@if ($coluna['key'] !== 'todas')
|
||||
|
||||
@if ($coluna['key'] == 'data_nascimento')
|
||||
<td>{{ \Carbon\Carbon::parse($atendimento[$coluna['key']])->format('d/m/Y') }}</td>
|
||||
@else
|
||||
<td>{{ $atendimento[$coluna['key']] }}</td>
|
||||
@endif
|
||||
@endif
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
<tr>
|
||||
<td colspan="{{ count($params['columns']) - (collect($params['columns'])->pluck('key')->contains('todas') ? 1 : 0) }}">
|
||||
<strong>Total de atendimentos: </strong> {{ count($atendimentos['atendimentos']) }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,153 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="12">
|
||||
<strong>{{$title}}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Período de envio de</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Período de envio até</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Período de aplicação de</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Período de aplicação até</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Unidade</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Local de atendimento</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Aplicador</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Prontuário</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Sexo</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Vacina</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Status</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Tipo de envio</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Situação do envio</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{$periodo_envio['inicio']}}
|
||||
</td>
|
||||
<td>
|
||||
{{$periodo_envio['fim']}}
|
||||
</td>
|
||||
<td>
|
||||
{{$periodo_aplicacao['inicio']}}
|
||||
</td>
|
||||
<td>
|
||||
{{$periodo_aplicacao['inicio']}}
|
||||
</td>
|
||||
<td>
|
||||
{{$unidade_nome_fantasia}}
|
||||
</td>
|
||||
<td>
|
||||
{{$infraestrutura_nome}}
|
||||
</td>
|
||||
<td>
|
||||
{{$usuario_nome}}
|
||||
</td>
|
||||
<td>
|
||||
{{$paciente_prontuario}}
|
||||
</td>
|
||||
<td>
|
||||
{{$sexo}}
|
||||
</td>
|
||||
<td>
|
||||
{{$vacina_nome}}
|
||||
</td>
|
||||
<td>
|
||||
{{$status}}
|
||||
</td>
|
||||
<td>
|
||||
{{$tipo_envio}}
|
||||
</td>
|
||||
<td>
|
||||
{{$situacao_envio}}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th class="{{$coluna['class']}}">{{$coluna['label']}}</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($itens['resultado'] as $item)
|
||||
<tr>
|
||||
@foreach($colunas as $coluna)
|
||||
<td class="{{$coluna['class']}}">
|
||||
@if($coluna['key'] === 'inconsistencias')
|
||||
@foreach($item->inconsistencias as $inconsistencia)
|
||||
<div>{{$inconsistencia['resposta']}}</div>
|
||||
@endforeach
|
||||
@else
|
||||
{{$item->{$coluna['key']} ?? '-'}}
|
||||
@endif
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="3">Totalizadores - Envio</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>
|
||||
<strong>Sem inconsistência</strong>
|
||||
</th>
|
||||
<th>
|
||||
<strong>Sem inconsistência</strong>
|
||||
</th>
|
||||
<th>
|
||||
<strong>Total</strong>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
{{$itens['totalizadores']['sem_inconsistencias']}}
|
||||
</td>
|
||||
<td>
|
||||
{{$itens['totalizadores']['com_inconsistencias']}}
|
||||
</td>
|
||||
<td>
|
||||
{{$itens['totalizadores']['total_envios']}}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user