This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="7">
|
||||
<strong>{{$title}}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Data</strong></td>
|
||||
<td><strong>Hora</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>De {{$data['start']}} até {{$data['end']}}</td>
|
||||
<td>De {{$hora['start']}} até {{$hora['end']}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Usuário</strong></td>
|
||||
<td><strong>Unidade</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$usuario}}</td>
|
||||
<td>{{$unidade}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Local de atendimento</strong></td>
|
||||
<td><strong>Módulo</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$infraestrutura}}</td>
|
||||
<td>{{$modulo}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Funcionalidade</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$funcionalidade}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><strong>Data</strong></th>
|
||||
<th><strong>Hora</strong></th>
|
||||
<th><strong>Usuário</strong></th>
|
||||
<th><strong>Unidade</strong></th>
|
||||
<th><strong>Local de atendimento</strong></th>
|
||||
<th><strong>Módulo</strong></th>
|
||||
<th><strong>Funcionalidade</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach($dados['itens'] as $item)
|
||||
<tr>
|
||||
<td>{{$item->data}}</td>
|
||||
<td>{{$item->hora}}</td>
|
||||
<td>{{$item->usuario_nome}}</td>
|
||||
<td>{{$item->unidade_nome_fantasia}}</td>
|
||||
<td>{{$item->infraestrutura_nome}}</td>
|
||||
<td>{{$item->modulo_nome}}</td>
|
||||
<td>{{$item->funcionalidade_nome}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="7" style="text-align: right;">
|
||||
Total: {{$dados['totalizadores']['total_acessos']}}
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
@@ -0,0 +1,73 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="4">
|
||||
<strong>{{$title}}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Data</strong></td>
|
||||
<td><strong>Hora</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>De {{$data['start']}} até {{$data['end']}}</td>
|
||||
<td>De {{$hora['start']}} até {{$hora['end']}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Usuário</strong></td>
|
||||
<td><strong>Status</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$usuario}}</td>
|
||||
<td>{{$status}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><strong>Data</strong></th>
|
||||
<th><strong>Hora</strong></th>
|
||||
<th><strong>Usuário</strong></th>
|
||||
<th><strong>Status</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach($dados['itens'] as $item)
|
||||
<tr>
|
||||
<td>{{Carbon\Carbon::parse($item->data)->format('d/m/Y')}}</td>
|
||||
<td>{{$item->hora}}</td>
|
||||
<td>{{$item->usuario_nome}}</td>
|
||||
<td>{{$item->status_nome}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="4">
|
||||
<strong>Totais</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Total de acessos</strong></td>
|
||||
<td><strong>Total de acessos realizados com sucesso</strong></td>
|
||||
<td><strong>Total de usuário e/ou senha incorretos</strong></td>
|
||||
<td><strong>Total de usuários bloqueados</strong></td>
|
||||
<td><strong>Total de usuários que acessaram o sistema</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$dados['totalizadores']['total_acessos']}}</td>
|
||||
<td>{{$dados['totalizadores']['total_acesso_realizado_com_sucesso']}}</td>
|
||||
<td>{{$dados['totalizadores']['total_usuario_e_ou_senha_incorretos']}}</td>
|
||||
<td>{{$dados['totalizadores']['total_usuario_bloqueado']}}</td>
|
||||
<td>{{$dados['totalizadores']['total_usuario_acesso']}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -0,0 +1,32 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="5">
|
||||
<strong>{{$title}}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><strong>Unidade</strong></th>
|
||||
<th><strong>Local de atendimento</strong></th>
|
||||
<th><strong>Papel</strong></th>
|
||||
<th><strong>Usuário</strong></th>
|
||||
<th><strong>CBO</strong></th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach($data['itens'] as $item)
|
||||
<tr>
|
||||
<td>{{$item->unidade_nome_fantasia}}</td>
|
||||
<td>{{$item->infraestrutura_nome}}</td>
|
||||
<td>{{$item->papel_nome}}</td>
|
||||
<td>{{$item->usuario_nome}}</td>
|
||||
<td>{{$item->ocupacao_nome}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,33 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="6">
|
||||
<strong>{{$title}}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><strong>Unidade</strong></th>
|
||||
<th><strong>Local de atendimento</strong></th>
|
||||
<th><strong>Usuário</strong></th>
|
||||
<th><strong>CBO</strong></th>
|
||||
<th><strong>Módulo</strong></th>
|
||||
<th><strong>Funcionalidade</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach($data['itens'] as $item)
|
||||
<tr>
|
||||
<td>{{$item->unidade_nome_fantasia}}</td>
|
||||
<td>{{$item->infraestrutura_nome}}</td>
|
||||
<td>{{$item->usuario_nome}}</td>
|
||||
<td>{{$item->ocupacao_nome}}</td>
|
||||
<td>{{$item->modulo_nome}}</td>
|
||||
<td>{{$item->funcionalidade_nome}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,27 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="3">
|
||||
<strong>{{$title}}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><strong>Papel</strong></th>
|
||||
<th><strong>Módulo</strong></th>
|
||||
<th><strong>Funcionalidade</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach($data['itens'] as $item)
|
||||
<tr>
|
||||
<td>{{$item->papel_nome}}</td>
|
||||
<td>{{$item->modulo_nome}}</td>
|
||||
<td>{{$item->funcionalidade_nome}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,117 @@
|
||||
<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>Setor:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $infraestrutura }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $setor }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Grupo:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Subgrupo:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $grupo }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $subgrupo }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Material:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Tipo de Documento:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $material }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $tipo_documento }}
|
||||
</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>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() - 2 }}"></th>
|
||||
<th>{{ $totalizadores['total'] }}</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
@@ -0,0 +1,149 @@
|
||||
<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>Setor:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $infraestrutura }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $setor }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Grupo:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Subgrupo:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $grupo }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $subgrupo }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Fornecedor:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Tipo de Documento:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Número do Documento:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $fornecedor }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $tipo_documento }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $numero_documento }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Material:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Tipo de Entrada:</strong>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $material }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $tipo_entrada }}
|
||||
</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>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() - 1 }}"></th>
|
||||
<th>
|
||||
<strong>{{ $totalizadores['total'] }}</strong>
|
||||
</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
@@ -0,0 +1,118 @@
|
||||
<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>Setor:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $infraestrutura }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $setor }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Fornecedor:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Grupo:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $fornecedor }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $grupo }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Subgrupo:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Material:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<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>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() - 1 }}"></th>
|
||||
<th>
|
||||
<strong>{{ $totalizadores->quantidade }}</strong>
|
||||
</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
@@ -0,0 +1,126 @@
|
||||
<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>Setor:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Tipo de saída:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $infraestrutura }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $setor }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $tipoSaida }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Usuário requisitante:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Grupo:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $usuarioRequisitante }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $grupo }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Subgrupo:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Material:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<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>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() - 1 }}"></th>
|
||||
<th>
|
||||
<strong>{{ $totalizadores->quantidade }}</strong>
|
||||
</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
@@ -0,0 +1,71 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{$colunas->count()}}">
|
||||
<strong>{{$title}}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Período:</strong></td>
|
||||
<td><strong>Tipo de movimentação:</strong></td>
|
||||
<td><strong>Subtipo de movimentação:</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>De {{$periodo['start']}} até {{$periodo['end']}}</td>
|
||||
<td>{{$movimentacao_tipo}}</td>
|
||||
<td>{{$movimentacao_subtipo}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Unidade:</strong></td>
|
||||
<td><strong>Local de atendimento:</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$unidade}}</td>
|
||||
<td>{{$infraestrutura}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Setor:</strong></td>
|
||||
<td><strong>Usuário:</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$setor}}</td>
|
||||
<td>{{$usuario}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Origem programática:</strong></td>
|
||||
<td><strong>Material:</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$origem_programatica}}</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>
|
||||
@@ -0,0 +1,117 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Unidade:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Local de atendimento:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $unidade_nome_fantasia }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $infraestrutura_nome }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Setor:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Grupo:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $setor_nome }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $grupo_nome }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Subgrupo:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Material:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $subgrupo_nome }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $material_descricao }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Status:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $status }}
|
||||
</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)
|
||||
@if (in_array($coluna['key'], ['lote', 'validade_lote', 'quantidade']))
|
||||
<td>
|
||||
@foreach ($item->lotes as $lote)
|
||||
{{ $lote->{$coluna['key']} }}<br/>
|
||||
@endforeach
|
||||
</td>
|
||||
@elseif ($coluna['key'] == 'status')
|
||||
<td style="
|
||||
{{ $item->status['value'] == 'abaixo_minimo' ? 'color: #dc3545;' : '' }}
|
||||
{{ $item->status['value'] == 'normal' ? 'color: #28a745;' : '' }}
|
||||
{{ $item->status['value'] == 'acima_maximo' ? 'color: #ffc107;' : '' }}
|
||||
">
|
||||
{{ $item->status['text'] ?? '-' }}
|
||||
</td>
|
||||
@else
|
||||
<td>{{ $item->{$coluna['key']} ?? '-' }}</td>
|
||||
@endif
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,155 @@
|
||||
<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 (Almoxarifado):</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
De {{ $inicio }} até {{ $fim }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $unidade }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Local de atendimento (Almoxarifado):</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Setor (Almoxarifado):</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $infraestrutura }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $setor }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Unidade requisitante:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Local de atendimento requisitante:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $unidadeRequisitante }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $infraestruturaRequisitante }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Setor requisitante:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Usuário requisitante:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $setorRequisitante }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $usuarioRequisitante }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Status:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Número:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Grupo:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $status }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $numero }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $grupo }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Subgrupo:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Material:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<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 ($requisicoes as $requisicao)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>{{ $requisicao->{$coluna['key']} ?? '-' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,186 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<strong>Período:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Unidade:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
De {{ $inicio }} até {{ $fim }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $unidade }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<strong>Local de atendimento:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Setor:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
{{ $infraestrutura }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $setor }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Tipo:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Motivo:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Usuário que realizou a saída:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $tipo }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $motivo }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $usuarioSaida }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<strong>Unidade requisitante:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Local de atendimento requisitante:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
{{ $unidadeRequisitante }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $infraestruturaRequisitante }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<strong>Setor requisitante:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Usuário requisitante:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
{{ $setorRequisitante }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $usuarioRequisitante }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<strong>Grupo:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Subgrupo:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
{{ $grupo }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $subgrupo }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<strong>Material:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
{{ $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>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() - 1 }}"></th>
|
||||
<th>
|
||||
<strong>{{ $totalizadores->quantidade }}</strong>
|
||||
</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() }}">
|
||||
@foreach ($totalizadores->tipos as $i => $totalizadorTipo)
|
||||
@if($i > 0)|@endif {{ $totalizadorTipo->nome }}: {{ $totalizadorTipo->quantidade }}
|
||||
@endforeach
|
||||
</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
@@ -0,0 +1,114 @@
|
||||
<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>Setor:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $infraestrutura }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $setor }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Grupo:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Subgrupo:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $grupo }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $subgrupo }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Material:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<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>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() - 1 }}"></th>
|
||||
<th>
|
||||
<strong>{{ $totalizadores['total'] }}</strong>
|
||||
</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,114 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="2">
|
||||
<strong>{{$title}}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Período</strong></td>
|
||||
<td><strong>Unidade</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>De {{ $periodo['inicio'] }} até {{ $periodo['fim'] }}</td>
|
||||
<td>{{ $unidade }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Local de atendimento</strong></td>
|
||||
<td><strong>Especialidade</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $infraestrutura }}</td>
|
||||
<td>{{ $especialidade }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Profissional</strong></td>
|
||||
<td><strong>Status</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$infraestrutura}}</td>
|
||||
<td>{{$especialidade}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Profissional</strong></td>
|
||||
<td><strong>Status</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $usuario }}</td>
|
||||
<td>{{ $status }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><strong>Tipo de demanda</strong></th>
|
||||
<th><strong>Data de atendimento</strong></th>
|
||||
<th><strong>Profissional</strong></th>
|
||||
<th><strong>Especialidade</strong></th>
|
||||
<th><strong>Paciente</strong></th>
|
||||
<th><strong>Prontuário</strong></th>
|
||||
<th><strong>Horário</strong></th>
|
||||
<th><strong>Cids / Ciaps</strong></th>
|
||||
<th><strong>Procedimentos</strong></th>
|
||||
<th><strong>Status</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach($itens['atendimentos'] as $atendimento)
|
||||
<tr>
|
||||
<td>{{$atendimento->demanda_tipo}}</td>
|
||||
<td>{{$atendimento->data_atendimento}}</td>
|
||||
<td>{{$atendimento->usuario_nome}}</td>
|
||||
<td>{{$atendimento->especialidade_nome}}</td>
|
||||
<td>{{$atendimento->paciente_nome}}</td>
|
||||
<td>{{$atendimento->paciente_prontuario}}</td>
|
||||
<td>{{$atendimento->horario_atendimento}}</td>
|
||||
|
||||
<td>
|
||||
@foreach($atendimento->cids_ciaps as $cidCiap)
|
||||
{{$cidCiap}} <br/>
|
||||
@endforeach
|
||||
</td>
|
||||
|
||||
<td>
|
||||
@foreach($atendimento->procedimentos as $procedimento)
|
||||
{{$procedimento}} <br/>
|
||||
@endforeach
|
||||
</td>
|
||||
|
||||
<td>{{$atendimento->agendamento_status_nome}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="4">
|
||||
<strong>Totais</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Total de pacientes</strong></td>
|
||||
<td><strong>Total de atendimentos realizadas</strong></td>
|
||||
<td><strong>Total de faltas</strong></td>
|
||||
<td><strong>Total de procedimentos lançados</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$itens['totalizadores']['quantidade_pacientes']}}</td>
|
||||
<td>{{$itens['totalizadores']['quantidade_atendimentos_realizados']}}</td>
|
||||
<td>{{$itens['totalizadores']['quantidade_faltas']}}</td>
|
||||
<td>{{$itens['totalizadores']['quantidade_procedimentos_lancados']}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -0,0 +1,127 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="3">
|
||||
<strong>{{$title}}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Período</strong></td>
|
||||
<td><strong>Tipo de demanda</strong></td>
|
||||
<td><strong>Tipo de agendamento</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>De {{$periodo['inicio']}} até {{$periodo['fim']}}</td>
|
||||
<td>{{$demanda_tipo}}</td>
|
||||
<td>{{$agendamento_tipo}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Municipio</strong></td>
|
||||
<td><strong>Unidade</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$municipio}}</td>
|
||||
<td>{{$unidade}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Local de atendimento</strong></td>
|
||||
<td><strong>Especialidade</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$infraestrutura}}</td>
|
||||
<td>{{$especialidade}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Profissional</strong></td>
|
||||
<td><strong>Status</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$usuario}}</td>
|
||||
<td>{{$status}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><strong>Data</strong></th>
|
||||
<th><strong>Tipo de agendamento</strong></th>
|
||||
<th><strong>Municipio</strong></th>
|
||||
<th><strong>Unidade</strong></th>
|
||||
<th><strong>Local de atendimento</strong></th>
|
||||
<th><strong>Especialidade</strong></th>
|
||||
<th><strong>Profissional</strong></th>
|
||||
<th><strong>Status</strong></th>
|
||||
<th><strong>Total</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach($data['itens'] as $item)
|
||||
<tr>
|
||||
<td>{{$item->data}}</td>
|
||||
<td>{{$item->agendamento_tipo_nome}}</td>
|
||||
<td>{{$item->municipio_nome}}</td>
|
||||
<td>{{$item->unidade_nome_fantasia}}</td>
|
||||
<td>{{$item->infraestrutura_nome}}</td>
|
||||
<td>{{$item->especialidade_nome}}</td>
|
||||
<td>{{$item->usuario_nome}}</td>
|
||||
<td>{{$item->agendamento_status_nome}}</td>
|
||||
<td>{{$item->quantidade}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="@if($demanda_tipo === 'AGENDADA') 4 @else 3 @endif">
|
||||
<strong>Totais</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Agendado</strong></td>
|
||||
<td><strong>Realizado</strong></td>
|
||||
<td><strong>Reagendado pelo paciente</strong></td>
|
||||
<td><strong>Reagendado pelo médico</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$data['totalizadores']['agendado']}}</td>
|
||||
<td>{{$data['totalizadores']['realizado']}}</td>
|
||||
<td>{{$data['totalizadores']['reagendado_paciente']}}</td>
|
||||
<td>{{$data['totalizadores']['reagendado_medico']}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Cancelado pelo paciente</strong></td>
|
||||
<td><strong>Cancelado pelo médico</strong></td>
|
||||
<td><strong>Falta do paciente</strong></td>
|
||||
<td><strong>Falta do médico</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$data['totalizadores']['cancelado_paciente']}}</td>
|
||||
<td>{{$data['totalizadores']['cancelado_medico']}}</td>
|
||||
<td>{{$data['totalizadores']['falta_paciente']}}</td>
|
||||
<td>{{$data['totalizadores']['falta_medica']}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Aberto</strong></td>
|
||||
<td><strong>Total geral</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$data['totalizadores']['aberto']}}</td>
|
||||
<td>{{$data['totalizadores']['geral']}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -0,0 +1,80 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="{{ count($colunas) }}"><strong>RELATÓRIO DE PROCEDIMENTOS</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Período</strong></td>
|
||||
<td>De {{ $inicio }} até {{ $fim }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Unidade</strong></td>
|
||||
<td>{{ $unidade }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Local de atendimento</strong></td>
|
||||
<td>{{ $infraestrutura }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>CBO</strong></td>
|
||||
<td>{{ $ocupacao }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Especialidade</strong></td>
|
||||
<td>{{ $especialidade }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Profissional</strong></td>
|
||||
<td>{{ $usuario }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Procedimento SIGTAP</strong></td>
|
||||
<td>{{ $procedimento }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Tipo de Demanda</strong></td>
|
||||
<td>{{ $demandaTipo }}</td>
|
||||
</tr>
|
||||
|
||||
<tr></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)
|
||||
@php $val = $item->{$coluna['key']} ?? null; @endphp
|
||||
<td>
|
||||
@if(is_iterable($val))
|
||||
{{ collect($val)->filter()->implode(', ') ?: '-' }}
|
||||
@else
|
||||
{{ $val ?? '-' }}
|
||||
@endif
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
<tr>
|
||||
<td><strong>Total de Registros: {{ $totalRegistros }}</strong></td>
|
||||
<td><strong>Total de Procedimentos SIGTAP: {{ $totalProcedimentos }}</strong></td>
|
||||
<td><strong>Total de Procedimentos ABPG: {{ $totalAbpg }}</strong></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,146 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="{{ $colunas->count() }}" style="text-align: center">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Ano</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Mês</strong>
|
||||
</td>
|
||||
|
||||
<td colspan="7">
|
||||
<strong>Unidade</strong>
|
||||
</td>
|
||||
|
||||
<td colspan="7">
|
||||
<strong>Local de atendimento</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $ano }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $mes }}
|
||||
</td>
|
||||
|
||||
<td colspan="7">
|
||||
{{ $unidade }}
|
||||
</td>
|
||||
|
||||
<td colspan="7">
|
||||
{{ $infraestrutura }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="9">
|
||||
<strong>CBO</strong>
|
||||
</td>
|
||||
|
||||
<td colspan="7">
|
||||
<strong>Especialidade</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="9">
|
||||
{{ $ocupacao }}
|
||||
</td>
|
||||
|
||||
<td colspan="7">
|
||||
{{ $especialidade }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@foreach ($itens as $i => $infraestrutura)
|
||||
<tr>
|
||||
<td colspan="{{ count($colunas) }}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="{{ count($colunas) }}" style="text-align: center;">
|
||||
<strong>Unidade: {{ $infraestrutura->unidade_nome_fantasia }}<br>Local de atendimento: {{ $infraestrutura->infraestrutura_nome }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th></th>
|
||||
|
||||
<th colspan="{{ count($colunas) - 2 }}" style="text-align: center;">
|
||||
<strong>Dia do mês</strong>
|
||||
</th>
|
||||
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
|
||||
@foreach ($infraestrutura->usuarios as $usuario)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>{{ $usuario->{$coluna['key']} }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>
|
||||
<strong>{{ $infraestrutura->{$coluna['key']} ?? '' }}</strong>
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
<tr>
|
||||
<td colspan="{{ count($colunas) }}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="{{ count($colunas) }}" style="text-align: center;">
|
||||
<strong>Totalizadores</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th></th>
|
||||
|
||||
<th colspan="{{ count($colunas) - 2 }}" style="text-align: center;">
|
||||
<strong>Dia do mês</strong>
|
||||
</th>
|
||||
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
@foreach ($colunasTotalizadores as $coluna)
|
||||
<td>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
@foreach ($colunasTotalizadores as $coluna)
|
||||
<td>{{ $totalizadores->{$coluna['key']} }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
</table>
|
||||
@@ -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>
|
||||
@@ -0,0 +1,104 @@
|
||||
<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 {{$periodo['inicio']}} até {{$periodo['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>{{ $cbo }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Profissional</strong></td>
|
||||
<td><strong>Procedimento</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $usuario }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th><strong>{{ $coluna['label'] }}</strong></th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($itens['itens'] as $atendimento)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
@php
|
||||
$key = $coluna['key'];
|
||||
$valor = data_get($atendimento, $key, '-');
|
||||
@endphp
|
||||
|
||||
<td class="{{ $coluna['class'] ?? '' }}">
|
||||
{{ $valor }}
|
||||
</td>
|
||||
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
<tr>
|
||||
<th colspan="auto" style="text-align: center;">
|
||||
<strong>Pacientes distintos atendidos: </strong>
|
||||
{{$itens['totalizadores']['pacientes_distintos_atendidos']}}
|
||||
</th>
|
||||
|
||||
<th colspan="auto" style="text-align: center;">
|
||||
<strong>feridas realizados: </strong>
|
||||
{{$itens['totalizadores']['atendimentos_realizados']}}
|
||||
</th>
|
||||
|
||||
<th colspan="auto" style="text-align: center;">
|
||||
<strong>SOAPs geradas: </strong>
|
||||
{{$itens['totalizadores']['soaps_geradas']}}
|
||||
</th>
|
||||
|
||||
<th colspan="auto" style="text-align: center;">
|
||||
<strong>Feridas registradas: </strong>
|
||||
{{$itens['totalizadores']['feridas_registradas']}}
|
||||
</th>
|
||||
|
||||
<th colspan="auto" style="text-align: center;">
|
||||
<strong>Procedimentos lançados: </strong>
|
||||
{{$itens['totalizadores']['procedimentos_lancados']}}
|
||||
</th>
|
||||
|
||||
<th colspan="auto" style="text-align: center;">
|
||||
<strong>Kits/materiais consumidos: </strong>
|
||||
{{$itens['totalizadores']['kits_materiais_consumidos']}}
|
||||
</th>
|
||||
|
||||
<th colspan="auto" style="text-align: center;">
|
||||
<strong>Valores de custo total: </strong>
|
||||
{{$itens['totalizadores']['valor_custo_total']}}
|
||||
</th>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
@@ -0,0 +1,116 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="9">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Competência</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Tipo de inconsistência</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Unidade executante</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{$competencia}}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{$tipo_inconsistencia}}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{$unidade_executante}}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Profissional executante</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>CBO</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{$usuario_executante}}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{$ocupacao}}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Procedimento</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>CID(s)</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{$procedimento}}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{$cid}}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><strong>Data de processamento</strong></th>
|
||||
<th><strong>Prontuário</strong></th>
|
||||
<th><strong>Paciente</strong></th>
|
||||
<th><strong>Unidade executante</strong></th>
|
||||
<th><strong>Profissional executante</strong></th>
|
||||
<th><strong>CBO</strong></th>
|
||||
<th><strong>Procedimento</strong></th>
|
||||
<th><strong>CID</strong></th>
|
||||
<th><strong>Inconsistências</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach($data['itens'] as $item)
|
||||
<tr>
|
||||
<td>{{ \Carbon\Carbon::create($item['data_processamento'])->format('d/m/Y') }}</td>
|
||||
<td>{{ $item['prontuario'] }}</td>
|
||||
<td>{{ $item['paciente_nome'] }}</td>
|
||||
<td>{{ $item['unidade_executante_nome_fantasia'] }}</td>
|
||||
<td>{{ $item['usuario_executante_nome'] }}</td>
|
||||
<td>{{ $item['ocupacao_codigo'] }}</td>
|
||||
<td>{{ $item['procedimento_descricao'] }}</td>
|
||||
<td>{{ $item['cid_descricao'] }}</td>
|
||||
|
||||
<td>
|
||||
@foreach($item['inconsistencias'] as $inconsistencia)
|
||||
<div>{{$inconsistencia->inconsistencia_descricao}}</div>
|
||||
@endforeach
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
<tr>
|
||||
<th colspan="9" style="text-align: center;"><strong>Total:</strong> {{ count($data['itens']) }}</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,128 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="2">
|
||||
<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>Equipe</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$infraestrutura}}</td>
|
||||
<td>{{$equipe}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Profissional</strong></td>
|
||||
<td><strong>Visualizar por</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$usuario}}</td>
|
||||
<td>{{ $tipo_visualizacao === 'equipe' ? 'Equipe' : 'Profissional' }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@php
|
||||
$totalColunas = 5;
|
||||
|
||||
if (is_null($unidade_id)) $totalColunas++;
|
||||
if (is_null($equipe_id)) $totalColunas++;
|
||||
if (is_null($usuario_id) && $tipo_visualizacao === 'usuario') $totalColunas++;
|
||||
@endphp
|
||||
|
||||
<th style="text-align: center" colspan="{{ $totalColunas }}"><strong>Totalizadores</strong></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>Programados</strong></th>
|
||||
<th><strong>Espontâneos</strong></th>
|
||||
<th><strong>Total</strong></th>
|
||||
<th><strong>% Programados</strong></th>
|
||||
<th><strong>% Espontâneos</strong></th>
|
||||
@if(is_null($unidade_id))
|
||||
<th><strong>Total de unidades</strong></th>
|
||||
@endif
|
||||
|
||||
@if(is_null($equipe_id))
|
||||
<th><strong>Total de equipes</strong></th>
|
||||
@endif
|
||||
|
||||
@if(is_null($usuario_id) && $tipo_visualizacao === 'usuario')
|
||||
<th><strong>Total de profissionais</strong></th>
|
||||
@endif
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ $totalizadores['total_programados'] }}</td>
|
||||
<td>{{ $totalizadores['total_espontaneos'] }}</td>
|
||||
<td>{{ $totalizadores['total'] }}</td>
|
||||
<td>{{ $totalizadores['percentual_programados'] }}</td>
|
||||
<td>{{ $totalizadores['percentual_espontaneos'] }}</td>
|
||||
@if(is_null($unidade_id))
|
||||
<td>{{ $totalizadores['total_unidades'] }}</td>
|
||||
@endif
|
||||
|
||||
@if(is_null($equipe_id))
|
||||
<td>{{ $totalizadores['total_equipes'] }}</td>
|
||||
@endif
|
||||
|
||||
@if(is_null($usuario_id) && $tipo_visualizacao === 'usuario')
|
||||
<td>{{ $totalizadores['total_profissionais'] }}</td>
|
||||
@endif
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><strong>Unidade</strong></th>
|
||||
<th><strong>Local de atendimento</strong></th>
|
||||
<th><strong>Equipe</strong></th>
|
||||
@if ($tipo_visualizacao === 'usuario')
|
||||
<th><strong>Profissional</strong></th>
|
||||
@endif
|
||||
<th><strong>Programados</strong></th>
|
||||
<th><strong>% Programados</strong></th>
|
||||
<th><strong>Espontâneos</strong></th>
|
||||
<th><strong>% Espontâneos</strong></th>
|
||||
<th><strong>Total</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach($itens as $item)
|
||||
<tr>
|
||||
<td>{{ $item->unidade_nome_fantasia }}</td>
|
||||
<td>{{ $item->infraestrutura_nome }}</td>
|
||||
<td>{{ $item->equipe_descricao }}</td>
|
||||
@if ($tipo_visualizacao === 'usuario')
|
||||
<td>{{ $item->usuario_nome }}</td>
|
||||
@endif
|
||||
<td>{{ $item->total_atendimento_demanda_programada }}</td>
|
||||
<td>{{ $item->porcentagem_atendimento_demanda_programada }}%</td>
|
||||
<td>{{ $item->total_atendimento_demanda_espontanea }}</td>
|
||||
<td>{{ $item->porcentagem_atendimento_demanda_espontanea }}%</td>
|
||||
<td>{{ $item->total_atendimento }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,92 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="2">
|
||||
<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>Profissional</strong></td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$infraestrutura}}</td>
|
||||
<td>{{$usuario}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Turno</strong></td>
|
||||
<td><strong>CBO</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$turno}}</td>
|
||||
<td>{{$ocupacao}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Equipe</strong></td>
|
||||
<td><strong>Modalidade</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$equipe}}</td>
|
||||
<td>{{$modalidade}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th><strong>{{ $coluna['label'] }}</strong></th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach($itens['itens'] as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td style="{{($item->quantidade_dias_cadastro_paciente_desatualizado > 0 || $item->avaliacao_elegibilidade === 'Não') ? 'background-color: #f8d7da;' : '' }}">{{ $item->{$coluna['key']} ?? '-' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="5">
|
||||
<strong>Totais</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Total de atendimentos</strong></td>
|
||||
<td><strong>Total de pacientes atendidos</strong></td>
|
||||
<td><strong>Total de atendimentos AD 1</strong></td>
|
||||
<td><strong>Total de atendimentos AD 2</strong></td>
|
||||
<td><strong>Total de atendimentos AD 3</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$itens['totalizadores']['total_atendimentos']}}</td>
|
||||
<td>{{$itens['totalizadores']['total_pacientes_atendidos']}}</td>
|
||||
<td>{{$itens['totalizadores']['total_modalidades']['AD_1']}}</td>
|
||||
<td>{{$itens['totalizadores']['total_modalidades']['AD_2']}}</td>
|
||||
<td>{{$itens['totalizadores']['total_modalidades']['AD_3']}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -0,0 +1,113 @@
|
||||
@php
|
||||
$cols = $colunas ?? [];
|
||||
$show = fn($key) => in_array($key, $cols);
|
||||
$f = $filtros ?? [];
|
||||
@endphp
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="15" style="text-align:center"><strong>{{ $title }}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Período</strong></td>
|
||||
<td><strong>PSE</strong></td>
|
||||
<td><strong>Turno</strong></td>
|
||||
<td><strong>Unidade</strong></td>
|
||||
<td><strong>Local de Atendimento</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $f['periodo'] ?? '' }}</td>
|
||||
<td>{{ $f['pse'] ?? 'Todos' }}</td>
|
||||
<td>{{ $f['turno'] ?? 'Todos' }}</td>
|
||||
<td>{{ $f['unidade'] ?? 'Todos' }}</td>
|
||||
<td>{{ $f['localAtendimento'] ?? 'Todos' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Profissional</strong></td>
|
||||
<td><strong>CBO</strong></td>
|
||||
<td><strong>Equipe</strong></td>
|
||||
<td><strong>Atividade</strong></td>
|
||||
<td><strong>Paciente</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $f['profissional'] ?? 'Todos' }}</td>
|
||||
<td>{{ $f['cbo'] ?? 'Todos' }}</td>
|
||||
<td>{{ $f['equipe'] ?? 'Todos' }}</td>
|
||||
<td>{{ $f['atividade'] ?? 'Todos' }}</td>
|
||||
<td>{{ $f['paciente'] ?? 'Todos' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Público Alvo</strong></td>
|
||||
<td><strong>Temas para Saúde</strong></td>
|
||||
<td><strong>Práticas em Saúde</strong></td>
|
||||
<td><strong>Procedimentos</strong></td>
|
||||
<td><strong>INEP</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $f['publicoAlvo'] ?? 'Todos' }}</td>
|
||||
<td>{{ $f['temaSaude'] ?? 'Todos' }}</td>
|
||||
<td>{{ $f['praticaSaude'] ?? 'Todos' }}</td>
|
||||
<td>{{ $f['procedimentos'] ?? 'Todos' }}</td>
|
||||
<td>{{ $f['inep'] ?? 'Todos' }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Data</th>
|
||||
@if($show('unidade')) <th>Unidade</th> @endif
|
||||
@if($show('profissional')) <th>Profissional</th> @endif
|
||||
@if($show('cbo')) <th>CBO</th> @endif
|
||||
@if($show('equipe')) <th>Equipe</th> @endif
|
||||
@if($show('atividade')) <th>Atividade</th> @endif
|
||||
@if($show('totalParticipantes')) <th>Participantes</th> @endif
|
||||
@if($show('totalPessoasAvaliadas')) <th>Pessoas Avaliadas</th> @endif
|
||||
@if($show('localAtendimento')) <th>Local de Atendimento</th> @endif
|
||||
@if($show('cnes')) <th>CNES</th> @endif
|
||||
@if($show('turno')) <th>Turno</th> @endif
|
||||
@if($show('publicoAlvo')) <th>Público Alvo</th> @endif
|
||||
@if($show('temaSaude')) <th>Temas para Saúde</th> @endif
|
||||
@if($show('praticaSaude')) <th>Práticas em Saúde</th> @endif
|
||||
@if($show('procedimentosVinculados')) <th>Procedimentos</th> @endif
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($itens as $item)
|
||||
<tr>
|
||||
<td>{{ \Carbon\Carbon::parse($item->data)->format('d/m/Y') }}</td>
|
||||
@if($show('unidade')) <td>{{ $item->unidade }}</td> @endif
|
||||
@if($show('profissional')) <td>{{ $item->profissional }}</td> @endif
|
||||
@if($show('cbo')) <td>{{ $item->cbo }}</td> @endif
|
||||
@if($show('equipe')) <td>{{ $item->equipe }}</td> @endif
|
||||
@if($show('atividade')) <td>{{ $item->atividade }}</td> @endif
|
||||
@if($show('totalParticipantes')) <td>{{ $item->total_participantes }}</td> @endif
|
||||
@if($show('totalPessoasAvaliadas')) <td>{{ $item->total_pessoas_avaliadas }}</td> @endif
|
||||
@if($show('localAtendimento')) <td>{{ $item->local_atendimento }}</td> @endif
|
||||
@if($show('cnes')) <td>{{ $item->cnes }}</td> @endif
|
||||
@if($show('turno')) <td>{{ $item->turno }}</td> @endif
|
||||
@if($show('publicoAlvo')) <td>{{ $item->publico_alvo }}</td> @endif
|
||||
@if($show('temaSaude')) <td>{{ $item->tema_saude }}</td> @endif
|
||||
@if($show('praticaSaude')) <td>{{ $item->pratica_saude }}</td> @endif
|
||||
@if($show('procedimentosVinculados')) <td>{{ $item->procedimentos_vinculados }}</td> @endif
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Total de Atividades</th>
|
||||
<th>Total de Procedimentos</th>
|
||||
<th>Total de Pessoas Avaliadas</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $totalizadores['total_atividades'] ?? 0 }}</td>
|
||||
<td>{{ $totalizadores['total_procedimentos'] ?? 0 }}</td>
|
||||
<td>{{ $totalizadores['total_pessoas_avaliadas'] ?? 0 }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -0,0 +1,196 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="4" style="text-align: center">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Período</strong></td>
|
||||
<td><strong>Unidade</strong></td>
|
||||
<td><strong>Local de atendimento</strong></td>
|
||||
<td><strong>Equipe</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
@if($quadrimestre)
|
||||
Quadrimestre {{ $quadrimestre }}
|
||||
@else
|
||||
De {{ $inicio }} até {{ $fim }}
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ $unidade }}</td>
|
||||
<td>{{ $infraestrutura }}</td>
|
||||
<td>{{ $equipe }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Sexo</strong></td>
|
||||
<td><strong>Paciente</strong></td>
|
||||
<td><strong>Busca Ativa</strong></td>
|
||||
<td><strong>Boas Práticas</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
@php
|
||||
$feiInicial = collect([
|
||||
isset($faixaEtariaInicial['anos']) ? $faixaEtariaInicial['anos'].'a' : null,
|
||||
isset($faixaEtariaInicial['meses']) ? $faixaEtariaInicial['meses'].'m' : null,
|
||||
isset($faixaEtariaInicial['dias']) ? $faixaEtariaInicial['dias'].'d' : null,
|
||||
])->filter()->implode(' ');
|
||||
$feiFinal = collect([
|
||||
isset($faixaEtariaFinal['anos']) ? $faixaEtariaFinal['anos'].'a' : null,
|
||||
isset($faixaEtariaFinal['meses']) ? $faixaEtariaFinal['meses'].'m' : null,
|
||||
isset($faixaEtariaFinal['dias']) ? $faixaEtariaFinal['dias'].'d' : null,
|
||||
])->filter()->implode(' ');
|
||||
@endphp
|
||||
<td>{{ $sexo }}</td>
|
||||
<td>{{ $paciente }}</td>
|
||||
<td>{{ $buscaAtiva ? 'Sim' : 'Não' }}</td>
|
||||
<td>{{ implode(', ', $boasPraticasSelecionadas) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Faixa Etária Inicial</strong></td>
|
||||
<td><strong>Faixa Etária Final</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $feiInicial ?: '-' }}</td>
|
||||
<td>{{ $feiFinal ?: '-' }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
{{-- Totalizadores --}}
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><strong>Pacientes</strong></th>
|
||||
<th><strong>Equipes</strong></th>
|
||||
<th><strong>Microáreas</strong></th>
|
||||
<th><strong>Denominador (D)</strong></th>
|
||||
<th><strong>Numerador (N)</strong></th>
|
||||
<th><strong>Resultado (%)</strong></th>
|
||||
@foreach($boasPraticasSelecionadas as $pratica)
|
||||
<th><strong>% Boa Prática {{ $pratica }}</strong></th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ $totalizadores['totalPacientes'] }}</td>
|
||||
<td>{{ $totalizadores['totalEquipes'] }}</td>
|
||||
<td>{{ $totalizadores['totalMicroareas'] }}</td>
|
||||
<td>{{ $totalizadores['denominador'] }}</td>
|
||||
<td>{{ $totalizadores['numerador'] }}</td>
|
||||
<td>{{ $totalizadores['resultado'] }}%</td>
|
||||
@foreach($boasPraticasSelecionadas as $pratica)
|
||||
<td>{{ $totalizadores['boasPraticas'][$pratica]['percentual'] ?? '-' }}%</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
{{-- Resultado por Equipe --}}
|
||||
@if(!empty($resultadoPorEquipe))
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><strong>Unidade</strong></th>
|
||||
<th><strong>Equipe</strong></th>
|
||||
<th><strong>Denominador (D)</strong></th>
|
||||
<th><strong>Numerador (N)</strong></th>
|
||||
<th><strong>Resultado (%)</strong></th>
|
||||
<th><strong>Classificação</strong></th>
|
||||
@foreach($boasPraticasSelecionadas as $pratica)
|
||||
<th><strong>% Prática {{ $pratica }}</strong></th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($resultadoPorEquipe as $item)
|
||||
<tr>
|
||||
<td>{{ $item['unidadeNomeFantasia'] }}</td>
|
||||
<td>{{ $item['equipeDescricao'] }}</td>
|
||||
<td>{{ $item['denominador'] }}</td>
|
||||
<td>{{ $item['numerador'] }}</td>
|
||||
<td>{{ $item['resultado'] }}%</td>
|
||||
<td>{{ $item['classificacao'] }}</td>
|
||||
@foreach($boasPraticasSelecionadas as $pratica)
|
||||
<td>{{ $item['percentual' . $pratica] ?? '-' }}%</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
|
||||
<br>
|
||||
|
||||
{{-- Busca Ativa --}}
|
||||
@if(!empty($buscaAtivaDados))
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><strong>Unidade</strong></th>
|
||||
<th><strong>Equipe</strong></th>
|
||||
<th><strong>Paciente</strong></th>
|
||||
<th><strong>Sexo</strong></th>
|
||||
<th><strong>Idade</strong></th>
|
||||
<th><strong>Usuário Responsável</strong></th>
|
||||
@if(in_array('pacienteDataNascimento', $selectedColsBuscaAtiva))
|
||||
<th><strong>Data de Nascimento</strong></th>
|
||||
@endif
|
||||
@if(in_array('pacienteTelefone', $selectedColsBuscaAtiva))
|
||||
<th><strong>Telefone</strong></th>
|
||||
@endif
|
||||
@if(in_array('pacienteEndereco', $selectedColsBuscaAtiva))
|
||||
<th><strong>Endereço</strong></th>
|
||||
@endif
|
||||
@if(in_array('areaMicroareaDomicilio', $selectedColsBuscaAtiva))
|
||||
<th><strong>Area/Microarea do Domicilio</strong></th>
|
||||
@endif
|
||||
@foreach($boasPraticasSelecionadas as $pratica)
|
||||
<th><strong>Prática {{ $pratica }}</strong></th>
|
||||
@endforeach
|
||||
<th><strong>Pontuação Total</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($buscaAtivaDados as $pacienteItem)
|
||||
<tr>
|
||||
<td>{{ $pacienteItem['unidadeNomeFantasia'] }}</td>
|
||||
<td>{{ $pacienteItem['equipeDescricao'] }}</td>
|
||||
<td>{{ $pacienteItem['pacienteNome'] }}</td>
|
||||
<td>{{ $pacienteItem['pacienteSexo'] }}</td>
|
||||
<td>{{ $pacienteItem['idadeCompleta'] }}</td>
|
||||
<td>{{ $pacienteItem['usuarioResponsavelNome'] }}</td>
|
||||
@if(in_array('pacienteDataNascimento', $selectedColsBuscaAtiva))
|
||||
<td>{{ $pacienteItem['pacienteDataNascimento'] }}</td>
|
||||
@endif
|
||||
@if(in_array('pacienteTelefone', $selectedColsBuscaAtiva))
|
||||
<td>{{ $pacienteItem['pacienteTelefone'] }}</td>
|
||||
@endif
|
||||
@if(in_array('pacienteEndereco', $selectedColsBuscaAtiva))
|
||||
<td>{{ $pacienteItem['pacienteEndereco'] }}</td>
|
||||
@endif
|
||||
@if(in_array('areaMicroareaDomicilio', $selectedColsBuscaAtiva))
|
||||
<td>{{ $pacienteItem['areaMicroareaDomicilio'] }}</td>
|
||||
@endif
|
||||
@foreach($boasPraticasSelecionadas as $pratica)
|
||||
@php $campo = 'indicador' . $pratica; @endphp
|
||||
<td>
|
||||
@if($pacienteItem[$campo] ?? false)
|
||||
Sim
|
||||
@elseif($pratica === 'D' && ($pacienteItem['areaTipoId'] ?? null) == 5)
|
||||
N/C
|
||||
@else
|
||||
Não
|
||||
@endif
|
||||
</td>
|
||||
@endforeach
|
||||
<td>{{ $pacienteItem['pontuacaoTotal'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
@@ -0,0 +1,239 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="5">
|
||||
<strong>{{$title}}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Período</strong></td>
|
||||
<td><strong>Ano</strong></td>
|
||||
<td><strong>Quadrimestre</strong></td>
|
||||
<td colspan="2"><strong>Unidade</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>De {{ $periodoDe }} até {{ $periodoAte }}</td>
|
||||
<td>{{ $quadrimestreAno }}</td>
|
||||
<td>{{ $quadrimestre }}</td>
|
||||
<td colspan="2">{{ $unidade }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3"><strong>Equipe</strong></td>
|
||||
<td><strong>Boas práticas</strong></td>
|
||||
<td><strong>Busca ativa</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">{{ $equipe }}</td>
|
||||
<td>{{ $boasPraticas }}</td>
|
||||
<td>{{ $buscaAtiva }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Sexo</strong></td>
|
||||
<td><strong>Idade mínima</strong></td>
|
||||
<td><strong>Idade máxima</strong></td>
|
||||
<td colspan="2"><strong>Paciente</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $sexo }}</td>
|
||||
<td>{{ $idadeMinima }}</td>
|
||||
<td>{{ $idadeMaxima }}</td>
|
||||
<td colspan="2">{{ $paciente }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="6" style="text-align: center"><strong>Totalizadores</strong></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th><strong>Total de pacientes</strong></th>
|
||||
<th><strong>Total de equipes</strong></th>
|
||||
<th><strong>Total de microáreas</strong></th>
|
||||
<th><strong>Denominador</strong></th>
|
||||
<th><strong>Numerador</strong></th>
|
||||
<th><strong>Resultado</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ $totalizadores->total_pacientes }}</td>
|
||||
<td>{{ $totalizadores->total_equipes }}</td>
|
||||
<td>{{ $totalizadores->total_microareas }}</td>
|
||||
<td>{{ $totalizadores->denominador }}</td>
|
||||
<td>{{ $totalizadores->numerador }}</td>
|
||||
<td>{{ $totalizadores->resultado }}%</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@if($boasPraticasSelecionadas->contains('A'))<th><strong>Boa prática A</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('B'))<th><strong>Boa prática B</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('C'))<th><strong>Boa prática C</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('D'))<th><strong>Boa prática D</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('E'))<th><strong>Boa prática E</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('F'))<th><strong>Boa prática F</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('G'))<th><strong>Boa prática G</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('H'))<th><strong>Boa prática H</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('I'))<th><strong>Boa prática I</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('J'))<th><strong>Boa prática J</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('K'))<th><strong>Boa prática K</strong></th>@endif
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
@if($boasPraticasSelecionadas->contains('A'))<td>{{ $totalizadores->boa_pratica_a }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('B'))<td>{{ $totalizadores->boa_pratica_b }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('C'))<td>{{ $totalizadores->boa_pratica_c }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('D'))<td>{{ $totalizadores->boa_pratica_d }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('E'))<td>{{ $totalizadores->boa_pratica_e }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('F'))<td>{{ $totalizadores->boa_pratica_f }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('G'))<td>{{ $totalizadores->boa_pratica_g }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('H'))<td>{{ $totalizadores->boa_pratica_h }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('I'))<td>{{ $totalizadores->boa_pratica_i }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('J'))<td>{{ $totalizadores->boa_pratica_j }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('K'))<td>{{ $totalizadores->boa_pratica_k }}%</td>@endif
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><strong>Unidade</strong></th>
|
||||
<th><strong>Equipe</strong></th>
|
||||
<th><strong>Denominador</strong></th>
|
||||
<th><strong>Numerador</strong></th>
|
||||
<th><strong>Resultado</strong></th>
|
||||
<th><strong>Classificação</strong></th>
|
||||
@if($boasPraticasSelecionadas->contains('A'))<th><strong>A</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('B'))<th><strong>B</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('C'))<th><strong>C</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('D'))<th><strong>D</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('E'))<th><strong>E</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('F'))<th><strong>F</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('G'))<th><strong>G</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('H'))<th><strong>H</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('I'))<th><strong>I</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('J'))<th><strong>J</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('K'))<th><strong>K</strong></th>@endif
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($equipes as $item)
|
||||
<tr>
|
||||
<td>{{ $item->unidade_nome_fantasia }}</td>
|
||||
<td>{{ $item->equipe_descricao }}</td>
|
||||
<td>{{ $item->denominador }}</td>
|
||||
<td>{{ $item->numerador }}</td>
|
||||
<td>{{ $item->resultado }}%</td>
|
||||
<td>{{ $item->classificacao_resultado }}</td>
|
||||
@if($boasPraticasSelecionadas->contains('A'))<td>{{ $item->boa_pratica_a }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('B'))<td>{{ $item->boa_pratica_b }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('C'))<td>{{ $item->boa_pratica_c }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('D'))<td>{{ $item->boa_pratica_d }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('E'))<td>{{ $item->boa_pratica_e }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('F'))<td>{{ $item->boa_pratica_f }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('G'))<td>{{ $item->boa_pratica_g }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('H'))<td>{{ $item->boa_pratica_h }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('I'))<td>{{ $item->boa_pratica_i }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('J'))<td>{{ $item->boa_pratica_j }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('K'))<td>{{ $item->boa_pratica_k }}%</td>@endif
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@if($isBuscaAtiva)
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@php
|
||||
$colspan = 8;
|
||||
if($colunasPacientes->contains('data_nascimento')) $colspan++;
|
||||
if($colunasPacientes->contains('telefone_principal')) $colspan++;
|
||||
if($colunasPacientes->contains('endereco')) $colspan++;
|
||||
if($colunasPacientes->contains('microarea_descricao')) $colspan++;
|
||||
if($colunasPacientes->contains('area_microarea_domicilio')) $colspan++;
|
||||
if($boasPraticasSelecionadas->contains('A')) $colspan++;
|
||||
if($boasPraticasSelecionadas->contains('B')) $colspan++;
|
||||
if($boasPraticasSelecionadas->contains('C')) $colspan++;
|
||||
if($boasPraticasSelecionadas->contains('D')) $colspan++;
|
||||
if($boasPraticasSelecionadas->contains('E')) $colspan++;
|
||||
if($boasPraticasSelecionadas->contains('F')) $colspan++;
|
||||
if($boasPraticasSelecionadas->contains('G')) $colspan++;
|
||||
if($boasPraticasSelecionadas->contains('H')) $colspan++;
|
||||
if($boasPraticasSelecionadas->contains('I')) $colspan++;
|
||||
if($boasPraticasSelecionadas->contains('J')) $colspan++;
|
||||
if($boasPraticasSelecionadas->contains('K')) $colspan++;
|
||||
@endphp
|
||||
<th colspan="{{ $colspan }}" style="text-align: center"><strong>Busca ativa por paciente</strong></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>Unidade</strong></th>
|
||||
<th><strong>Equipe</strong></th>
|
||||
<th><strong>Paciente</strong></th>
|
||||
<th><strong>Sexo</strong></th>
|
||||
<th><strong>Idade</strong></th>
|
||||
<th><strong>Responsável pelo cadastro</strong></th>
|
||||
@if($colunasPacientes->contains('data_nascimento'))<th><strong>Data de nascimento</strong></th>@endif
|
||||
@if($colunasPacientes->contains('telefone_principal'))<th><strong>Telefone</strong></th>@endif
|
||||
@if($colunasPacientes->contains('endereco'))<th><strong>Endereço</strong></th>@endif
|
||||
@if($colunasPacientes->contains('microarea_descricao'))<th><strong>Microárea</strong></th>@endif
|
||||
@if($colunasPacientes->contains('area_microarea_domicilio'))<th><strong>Área/Microárea do Domicílio</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('A'))<th><strong>A</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('B'))<th><strong>B</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('C'))<th><strong>C</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('D'))<th><strong>D</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('E'))<th><strong>E</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('F'))<th><strong>F</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('G'))<th><strong>G</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('H'))<th><strong>H</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('I'))<th><strong>I</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('J'))<th><strong>J</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('K'))<th><strong>K</strong></th>@endif
|
||||
<th><strong>Pontuação total</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($pacientes as $item)
|
||||
<tr>
|
||||
<td>{{ $item->unidade_nome_fantasia }}</td>
|
||||
<td>{{ $item->equipe_descricao }}</td>
|
||||
<td>{{ $item->paciente_nome }}</td>
|
||||
<td>{{ $item->sexo_descricao }}</td>
|
||||
<td>{{ $item->idade }}</td>
|
||||
<td>{{ $item->usuario_cadastro_nome }}</td>
|
||||
@if($colunasPacientes->contains('data_nascimento'))<td>{{ $item->data_nascimento }}</td>@endif
|
||||
@if($colunasPacientes->contains('telefone_principal'))<td>{{ $item->telefone_principal }}</td>@endif
|
||||
@if($colunasPacientes->contains('endereco'))<td>{{ $item->endereco }}</td>@endif
|
||||
@if($colunasPacientes->contains('microarea_descricao'))<td>{{ $item->microarea_descricao }}</td>@endif
|
||||
@if($colunasPacientes->contains('area_microarea_domicilio'))<td>{{ $item->area_microarea_domicilio }}</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('A'))<td>{{ $item->boa_pratica_a ? 'x' : '' }}</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('B'))<td>{{ $item->boa_pratica_b ? 'x' : '' }}</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('C'))<td>{{ $item->boa_pratica_c ? 'x' : '' }}</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('D'))<td>{{ $item->boa_pratica_d ? 'x' : '' }}</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('E'))<td>{{ $item->area_tipo_id == 5 && !$item->boa_pratica_e ? 'N/C' : ($item->boa_pratica_e ? 'x' : '') }}</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('F'))<td>{{ $item->boa_pratica_f ? 'x' : '' }}</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('G'))<td>{{ $item->boa_pratica_g ? 'x' : '' }}</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('H'))<td>{{ $item->boa_pratica_h ? 'x' : '' }}</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('I'))<td>{{ $item->boa_pratica_i ? 'x' : '' }}</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('J'))<td>{{ $item->area_tipo_id == 5 && !$item->boa_pratica_j ? 'N/C' : ($item->boa_pratica_j ? 'x' : '') }}</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('K'))<td>{{ $item->boa_pratica_k ? 'x' : '' }}</td>@endif
|
||||
<td>{{ $item->pontuacao_total }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
@@ -0,0 +1,294 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="5">
|
||||
<strong>{{$title}}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Período</strong></td>
|
||||
<td><strong>Ano</strong></td>
|
||||
<td><strong>Quadrimestre</strong></td>
|
||||
<td colspan="2"><strong>Unidade</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
@if($periodoDe)
|
||||
De {{ $periodoDe }} até {{ $periodoAte }}
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ $quadrimestreAno }}</td>
|
||||
<td>{{ $quadrimestre }}</td>
|
||||
<td colspan="2">{{ $unidade }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Equipe</strong></td>
|
||||
<td colspan="2"><strong>Boas práticas</strong></td>
|
||||
<td><strong>Sexo</strong></td>
|
||||
<td><strong>Identidade de gênero</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $equipe }}</td>
|
||||
<td colspan="2">{{ $boasPraticas }}</td>
|
||||
<td>{{ $sexo }}</td>
|
||||
<td>{{ $identidadeGenero }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Faixa etária inicial</strong></td>
|
||||
<td colspan="2"><strong>Faixa etária final</strong></td>
|
||||
<td colspan="2"><strong>Paciente</strong></td>
|
||||
<td><strong>Busca ativa</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
@isset($idadeMinimaAnos){{ $idadeMinimaAnos }} anos @endisset
|
||||
@isset($idadeMinimaMeses){{ $idadeMinimaMeses }} meses @endisset
|
||||
@isset($idadeMinimaDias){{ $idadeMinimaDias }} dias @endisset
|
||||
</td>
|
||||
<td colspan="2">
|
||||
@isset($idadeMaximaAnos){{ $idadeMaximaAnos }} anos @endisset
|
||||
@isset($idadeMaximaMeses){{ $idadeMaximaMeses }} meses @endisset
|
||||
@isset($idadeMaximaDias){{ $idadeMaximaDias }} dias @endisset
|
||||
</td>
|
||||
<td colspan="2">{{ $paciente }}</td>
|
||||
<td>{{ $buscaAtiva }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="5"><strong>Fora de Área</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="5">{{ $foraArea }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="4" style="text-align: center"><strong>Totalizadores</strong></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th><strong>Total de pacientes</strong></th>
|
||||
<th><strong>Total de equipes</strong></th>
|
||||
<th><strong>Total de microáreas</strong></th>
|
||||
<th><strong>Resultado (%)</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ $totalizadores->total_pacientes }}</td>
|
||||
<td>{{ $totalizadores->total_equipes }}</td>
|
||||
<td>{{ $totalizadores->total_microareas }}</td>
|
||||
<td>{{ $totalizadores->resultado }}%</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
@if($boasPraticasSelecionadas->contains('A'))
|
||||
<th><strong>Denominador da boa prática A</strong></th>
|
||||
<th><strong>Numerador da boa prática A</strong></th>
|
||||
@endif
|
||||
|
||||
@if($boasPraticasSelecionadas->contains('B'))
|
||||
<th><strong>Denominador da boa prática B</strong></th>
|
||||
<th><strong>Numerador da boa prática B</strong></th>
|
||||
@endif
|
||||
|
||||
@if($boasPraticasSelecionadas->contains('C'))
|
||||
<th><strong>Denominador da boa prática C</strong></th>
|
||||
<th><strong>Numerador da boa prática C</strong></th>
|
||||
@endif
|
||||
|
||||
@if($boasPraticasSelecionadas->contains('D'))
|
||||
<th><strong>Denominador da boa prática D</strong></th>
|
||||
<th><strong>Numerador da boa prática D</strong></th>
|
||||
@endif
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@if($boasPraticasSelecionadas->contains('A'))
|
||||
<td>{{ $totalizadores->denominador_boa_pratica_a }}</td>
|
||||
<td>{{ $totalizadores->numerador_boa_pratica_a }}</td>
|
||||
@endif
|
||||
|
||||
@if($boasPraticasSelecionadas->contains('B'))
|
||||
<td>{{ $totalizadores->denominador_boa_pratica_b }}</td>
|
||||
<td>{{ $totalizadores->numerador_boa_pratica_b }}</td>
|
||||
@endif
|
||||
|
||||
@if($boasPraticasSelecionadas->contains('C'))
|
||||
<td>{{ $totalizadores->denominador_boa_pratica_c }}</td>
|
||||
<td>{{ $totalizadores->numerador_boa_pratica_c }}</td>
|
||||
@endif
|
||||
|
||||
@if($boasPraticasSelecionadas->contains('D'))
|
||||
<td>{{ $totalizadores->denominador_boa_pratica_d }}</td>
|
||||
<td>{{ $totalizadores->numerador_boa_pratica_d }}</td>
|
||||
@endif
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@if($boasPraticasSelecionadas->contains('A'))<th colspan="2"><strong>% Boa prática A</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('B'))<th colspan="2"><strong>% Boa prática B</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('C'))<th colspan="2"><strong>% Boa prática C</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('D'))<th colspan="2"><strong>% Boa prática D</strong></th>@endif
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@if($boasPraticasSelecionadas->contains('A'))<td colspan="2">{{ $totalizadores->percentual_boa_pratica_a }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('B'))<td colspan="2">{{ $totalizadores->percentual_boa_pratica_b }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('C'))<td colspan="2">{{ $totalizadores->percentual_boa_pratica_c }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('D'))<td colspan="2">{{ $totalizadores->percentual_boa_pratica_d }}%</td>@endif
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><strong>Unidade</strong></th>
|
||||
<th><strong>Equipe</strong></th>
|
||||
@if($boasPraticasSelecionadas->contains('A') && $colunasEquipes->contains('denominador_boa_pratica_a'))<th><strong>Denominador da boa prática A</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('A') && $colunasEquipes->contains('numerador_boa_pratica_a'))<th><strong>Numerador da boa prática A</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('B') && $colunasEquipes->contains('denominador_boa_pratica_b'))<th><strong>Denominador da boa prática B</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('B') && $colunasEquipes->contains('numerador_boa_pratica_b'))<th><strong>Numerador da boa prática B</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('C') && $colunasEquipes->contains('denominador_boa_pratica_c'))<th><strong>Denominador da boa prática C</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('C') && $colunasEquipes->contains('numerador_boa_pratica_c'))<th><strong>Numerador da boa prática C</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('D') && $colunasEquipes->contains('denominador_boa_pratica_d'))<th><strong>Denominador da boa prática D</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('D') && $colunasEquipes->contains('numerador_boa_pratica_d'))<th><strong>Numerador da boa prática D</strong></th>@endif
|
||||
<th><strong>Resultado (%)</strong></th>
|
||||
<th><strong>Classificação</strong></th>
|
||||
@if($boasPraticasSelecionadas->contains('A'))<th><strong>% Boa prática A</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('B'))<th><strong>% Boa prática B</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('C'))<th><strong>% Boa prática C</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('D'))<th><strong>% Boa prática D</strong></th>@endif
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($equipes as $item)
|
||||
<tr>
|
||||
<td>{{ $item->unidade_nome_fantasia }}</td>
|
||||
<td>{{ $item->equipe_descricao }}</td>
|
||||
@if($boasPraticasSelecionadas->contains('A') && $colunasEquipes->contains('denominador_boa_pratica_a'))<td class="text-center">{{ $item->denominador_boa_pratica_a }}</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('A') && $colunasEquipes->contains('numerador_boa_pratica_a'))<td class="text-center">{{ $item->numerador_boa_pratica_a }}</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('B') && $colunasEquipes->contains('denominador_boa_pratica_b'))<td class="text-center">{{ $item->denominador_boa_pratica_b }}</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('B') && $colunasEquipes->contains('numerador_boa_pratica_b'))<td class="text-center">{{ $item->numerador_boa_pratica_b }}</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('C') && $colunasEquipes->contains('denominador_boa_pratica_c'))<td class="text-center">{{ $item->denominador_boa_pratica_c }}</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('C') && $colunasEquipes->contains('numerador_boa_pratica_c'))<td class="text-center">{{ $item->numerador_boa_pratica_c }}</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('D') && $colunasEquipes->contains('denominador_boa_pratica_d'))<td class="text-center">{{ $item->denominador_boa_pratica_d }}</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('D') && $colunasEquipes->contains('numerador_boa_pratica_d'))<td class="text-center">{{ $item->numerador_boa_pratica_d }}</td>@endif
|
||||
<td>{{ $item->resultado }}%</td>
|
||||
<td>{{ $item->classificacao_resultado }}</td>
|
||||
@if($boasPraticasSelecionadas->contains('A'))<td>{{ $item->percentual_boa_pratica_a }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('B'))<td>{{ $item->percentual_boa_pratica_b }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('C'))<td>{{ $item->percentual_boa_pratica_c }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('D'))<td>{{ $item->percentual_boa_pratica_d }}%</td>@endif
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@if($isBuscaAtiva)
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@php
|
||||
$colspan = 8;
|
||||
if($colunasPacientes->contains('data_nascimento')) $colspan++;
|
||||
if($colunasPacientes->contains('telefone_principal')) $colspan++;
|
||||
if($colunasPacientes->contains('endereco')) $colspan++;
|
||||
if($colunasPacientes->contains('area_microarea_domicilio')) $colspan++;
|
||||
if($boasPraticasSelecionadas->contains('A')) $colspan++;
|
||||
if($boasPraticasSelecionadas->contains('B')) $colspan++;
|
||||
if($boasPraticasSelecionadas->contains('C')) $colspan++;
|
||||
if($boasPraticasSelecionadas->contains('D')) $colspan++;
|
||||
@endphp
|
||||
<th colspan="{{ $colspan }}" style="text-align: center"><strong>Busca ativa por paciente</strong></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>Unidade</strong></th>
|
||||
<th><strong>Equipe</strong></th>
|
||||
<th><strong>Paciente</strong></th>
|
||||
<th><strong>Sexo</strong></th>
|
||||
<th><strong>Idade</strong></th>
|
||||
<th><strong>Microárea</strong></th>
|
||||
<th><strong>Responsável pelo cadastro</strong></th>
|
||||
@if($colunasPacientes->contains('data_nascimento'))<th><strong>Data de nascimento</strong></th>@endif
|
||||
@if($colunasPacientes->contains('telefone_principal'))<th><strong>Telefone</strong></th>@endif
|
||||
@if($colunasPacientes->contains('endereco'))<th><strong>Endereço</strong></th>@endif
|
||||
@if($colunasPacientes->contains('area_microarea_domicilio'))<th><strong>Área/Microárea do Domicílio</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('A'))<th><strong>A</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('B'))<th><strong>B</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('C'))<th><strong>C</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('D'))<th><strong>D</strong></th>@endif
|
||||
<th><strong>Pontuação total</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($pacientes as $item)
|
||||
<tr>
|
||||
<td>{{ $item->unidade_nome_fantasia }}</td>
|
||||
<td>{{ $item->equipe_descricao }}</td>
|
||||
<td>{{ $item->paciente_nome }}</td>
|
||||
<td>{{ $item->sexo_descricao }}</td>
|
||||
<td>{{ $item->idade }}</td>
|
||||
<td>{{ $item->microarea_descricao }}</td>
|
||||
<td>{{ $item->usuario_cadastro_nome }}</td>
|
||||
@if($colunasPacientes->contains('data_nascimento'))<td>{{ $item->data_nascimento }}</td>@endif
|
||||
@if($colunasPacientes->contains('telefone_principal'))<td>{{ $item->telefone_principal }}</td>@endif
|
||||
@if($colunasPacientes->contains('endereco'))<td>{{ $item->endereco }}</td>@endif
|
||||
@if($colunasPacientes->contains('area_microarea_domicilio'))<td>{{ $item->area_microarea_domicilio }}</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('A'))
|
||||
<td>
|
||||
@if($item->boa_pratica_a_aplica)
|
||||
{{ $item->boa_pratica_a ? 'Sim' : 'Não' }}
|
||||
@else
|
||||
Não aplica
|
||||
@endif
|
||||
</td>
|
||||
@endif
|
||||
@if($boasPraticasSelecionadas->contains('B'))
|
||||
<td>
|
||||
@if($item->boa_pratica_b_aplica)
|
||||
{{ $item->boa_pratica_b ? 'Sim' : 'Não' }}
|
||||
@else
|
||||
Não aplica
|
||||
@endif
|
||||
</td>
|
||||
@endif
|
||||
@if($boasPraticasSelecionadas->contains('C'))
|
||||
<td>
|
||||
@if($item->boa_pratica_c_aplica)
|
||||
{{ $item->boa_pratica_c ? 'Sim' : 'Não' }}
|
||||
@else
|
||||
Não aplica
|
||||
@endif
|
||||
</td>
|
||||
@endif
|
||||
@if($boasPraticasSelecionadas->contains('D'))
|
||||
<td>
|
||||
@if($item->boa_pratica_d_aplica)
|
||||
{{ $item->boa_pratica_d ? 'Sim' : 'Não' }}
|
||||
@else
|
||||
Não aplica
|
||||
@endif
|
||||
</td>
|
||||
@endif
|
||||
<td>{{ $item->pontuacao_total }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
@@ -0,0 +1,245 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="2">
|
||||
<strong>{{$title}}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@if ($periodo['inicio'] && $periodo['fim'])
|
||||
<td><strong>Período</strong></td>
|
||||
@else
|
||||
<td><strong>Ano/Quadrimestre</strong></td>
|
||||
@endif
|
||||
|
||||
<td><strong>Unidade</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@if ($periodo['inicio'] && $periodo['fim'])
|
||||
<td>De {{$periodo['inicio']}} até {{$periodo['fim']}}</td>
|
||||
@else
|
||||
<td>{{$ano}}/{{$quadrimestre}}</td>
|
||||
@endif
|
||||
|
||||
<td>{{$unidade}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Equipe</strong></td>
|
||||
<td><strong>Sexo</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$equipe}}</td>
|
||||
<td>{{$sexo}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Idade mínima (anos)</strong></td>
|
||||
<td><strong>Idade máxima (anos)</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$idade_anos_minimo}}</td>
|
||||
<td>{{$idade_anos_maximo}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><strong>Paciente</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">{{$paciente}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><strong>Fora de Área</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">{{$fora_area ? 'Sim' : 'Não'}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align: center" colspan="2">
|
||||
<strong>Totalizadores</strong>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>Total de pacientes</strong></th>
|
||||
<th><strong>Total de equipes</strong></th>
|
||||
<th><strong>Total de microáreas</strong></th>
|
||||
<th><strong>Denominador</strong></th>
|
||||
<th><strong>Numerador</strong></th>
|
||||
<th><strong>Resultado</strong></th>
|
||||
<th><strong>% Boa prática A</strong></th>
|
||||
<th><strong>% Boa prática B</strong></th>
|
||||
<th><strong>% Boa prática C</strong></th>
|
||||
<th><strong>% Boa prática D</strong></th>
|
||||
<th><strong>% Boa prática E</strong></th>
|
||||
<th><strong>% Boa prática F</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{$itens['totalizadores']['pacientes']}}</td>
|
||||
<td>{{$itens['totalizadores']['equipes']}}</td>
|
||||
<td>{{$itens['totalizadores']['microareas']}}</td>
|
||||
<td>{{$itens['totalizadores']['denominador']}}</td>
|
||||
<td>{{$itens['totalizadores']['numerador']}}</td>
|
||||
<td>{{$itens['totalizadores']['resultado']}}%</td>
|
||||
<td>{{$itens['totalizadores']['percentual_boas_praticas_a']}}%</td>
|
||||
<td>{{$itens['totalizadores']['percentual_boas_praticas_b']}}%</td>
|
||||
<td>{{$itens['totalizadores']['percentual_boas_praticas_c']}}%</td>
|
||||
<td>{{$itens['totalizadores']['percentual_boas_praticas_d']}}%</td>
|
||||
<td>{{$itens['totalizadores']['percentual_boas_praticas_e']}}%</td>
|
||||
<td>{{$itens['totalizadores']['percentual_boas_praticas_f']}}%</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align: center" colspan="2">
|
||||
<strong>Resultado por equipe</strong>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>Unidade</strong></th>
|
||||
<th><strong>Equipe</strong></th>
|
||||
<th><strong>Denominador</strong></th>
|
||||
<th><strong>Numerador</strong></th>
|
||||
<th><strong>Resultado</strong></th>
|
||||
<th><strong>Classificação</strong></th>
|
||||
@if (in_array('A', $boas_praticas))
|
||||
<th><strong>% Boa prática A</strong></th>
|
||||
@endif
|
||||
@if (in_array('B', $boas_praticas))
|
||||
<th><strong>% Boa prática B</strong></th>
|
||||
@endif
|
||||
@if (in_array('C', $boas_praticas))
|
||||
<th><strong>% Boa prática C</strong></th>
|
||||
@endif
|
||||
@if (in_array('D', $boas_praticas))
|
||||
<th><strong>% Boa prática D</strong></th>
|
||||
@endif
|
||||
@if (in_array('E', $boas_praticas))
|
||||
<th><strong>% Boa prática E</strong></th>
|
||||
@endif
|
||||
@if (in_array('F', $boas_praticas))
|
||||
<th><strong>% Boa prática F</strong></th>
|
||||
@endif
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach($itens['itens_agrupados'] as $item)
|
||||
<tr>
|
||||
<td>{{$item['unidade_nome_fantasia']}}</td>
|
||||
<td>{{$item['equipe_descricao']}}</td>
|
||||
<td>{{$item['denominador']}}</td>
|
||||
<td>{{$item['numerador']}}</td>
|
||||
<td>{{$item['resultado']}}%</td>
|
||||
<td>{{$item['classificacao']}}</td>
|
||||
|
||||
@if (in_array('A', $boas_praticas))
|
||||
<td>{{$item['percentual_boas_praticas_a']}}%</td>
|
||||
@endif
|
||||
@if (in_array('B', $boas_praticas))
|
||||
<td>{{$item['percentual_boas_praticas_b']}}%</td>
|
||||
@endif
|
||||
@if (in_array('C', $boas_praticas))
|
||||
<td>{{$item['percentual_boas_praticas_c']}}%</td>
|
||||
@endif
|
||||
@if (in_array('D', $boas_praticas))
|
||||
<td>{{$item['percentual_boas_praticas_d']}}%</td>
|
||||
@endif
|
||||
@if (in_array('E', $boas_praticas))
|
||||
<td>{{$item['percentual_boas_praticas_e']}}%</td>
|
||||
@endif
|
||||
@if (in_array('F', $boas_praticas))
|
||||
<td>{{$item['percentual_boas_praticas_f']}}%</td>
|
||||
@endif
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@if ($busca_ativa)
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align: center" colspan="2">
|
||||
<strong>Busca ativa por paciente</strong>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>Unidade</strong></th>
|
||||
<th><strong>Equipe</strong></th>
|
||||
<th><strong>Área/Microárea do Domicílio</strong></th>
|
||||
<th><strong>Paciente</strong></th>
|
||||
<th><strong>Sexo</strong></th>
|
||||
<th><strong>Data de nascimento</strong></th>
|
||||
<th><strong>Idade</strong></th>
|
||||
@if (in_array('A', $boas_praticas))
|
||||
<th><strong>Boa prática A</strong></th>
|
||||
@endif
|
||||
@if (in_array('B', $boas_praticas))
|
||||
<th><strong>Boa prática B</strong></th>
|
||||
@endif
|
||||
@if (in_array('C', $boas_praticas))
|
||||
<th><strong>Boa prática C</strong></th>
|
||||
@endif
|
||||
@if (in_array('D', $boas_praticas))
|
||||
<th><strong>Boa prática D</strong></th>
|
||||
@endif
|
||||
@if (in_array('E', $boas_praticas))
|
||||
<th><strong>Boa prática E</strong></th>
|
||||
@endif
|
||||
@if (in_array('F', $boas_praticas))
|
||||
<th><strong>Boa prática F</strong></th>
|
||||
@endif
|
||||
<th><strong>Pontuação total</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach($itens['itens_desagrupados'] as $item)
|
||||
<tr>
|
||||
<td>{{$item['unidade_nome_fantasia']}}</td>
|
||||
<td>{{$item['equipe_descricao']}}</td>
|
||||
<td>{{$item['area_microarea_domicilio']}}</td>
|
||||
<td>{{$item['paciente_nome']}}</td>
|
||||
<td>{{$item['paciente_sexo_descricao']}}</td>
|
||||
<td>{{$item['paciente_data_nascimento']}}</td>
|
||||
<td>{{$item['paciente_idade']}}</td>
|
||||
@if (in_array('A', $boas_praticas))
|
||||
<td>{{$item['boa_pratica_a'] ? 'Sim' : 'Não'}}</td>
|
||||
@endif
|
||||
@if (in_array('B', $boas_praticas))
|
||||
<td>{{$item['boa_pratica_b'] ? 'Sim' : 'Não'}}</td>
|
||||
@endif
|
||||
@if (in_array('C', $boas_praticas))
|
||||
<td>{{$item['boa_pratica_c'] ? 'Sim' : 'Não'}}</td>
|
||||
@endif
|
||||
@if (in_array('D', $boas_praticas))
|
||||
<td>{{$item['area_tipo_id'] == 5 && !$item['boa_pratica_d'] ? 'N/C' : ($item['boa_pratica_d'] ? 'Sim' : 'Não')}}</td>
|
||||
@endif
|
||||
@if (in_array('E', $boas_praticas))
|
||||
<td>{{$item['boa_pratica_e'] ? 'Sim' : 'Não'}}</td>
|
||||
@endif
|
||||
@if (in_array('F', $boas_praticas))
|
||||
<td>{{$item['boa_pratica_f'] ? 'Sim' : 'Não'}}</td>
|
||||
@endif
|
||||
<td>{{$item['pontuacao_total']}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
@@ -0,0 +1,205 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="5">
|
||||
<strong>{{$title}}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Período</strong></td>
|
||||
<td><strong>Ano</strong></td>
|
||||
<td><strong>Quadrimestre</strong></td>
|
||||
<td colspan="2"><strong>Unidade</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>De {{ $periodoDe }} até {{ $periodoAte }}</td>
|
||||
<td>{{ $quadrimestreAno }}</td>
|
||||
<td>{{ $quadrimestre }}</td>
|
||||
<td colspan="2">{{ $unidade }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3"><strong>Equipe</strong></td>
|
||||
<td><strong>Boas práticas</strong></td>
|
||||
<td><strong>Busca ativa</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">{{ $equipe }}</td>
|
||||
<td>{{ $boasPraticas }}</td>
|
||||
<td>{{ $buscaAtiva }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Sexo</strong></td>
|
||||
<td><strong>Idade mínima</strong></td>
|
||||
<td><strong>Idade máxima</strong></td>
|
||||
<td colspan="2"><strong>Paciente</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $sexo }}</td>
|
||||
<td>{{ $idadeMinima }}</td>
|
||||
<td>{{ $idadeMaxima }}</td>
|
||||
<td colspan="2">{{ $paciente }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="5"><strong>Fora de Área</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="5">{{ $foraArea }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="6" style="text-align: center"><strong>Totalizadores</strong></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th><strong>Total de pacientes</strong></th>
|
||||
<th><strong>Total de equipes</strong></th>
|
||||
<th><strong>Total de microáreas</strong></th>
|
||||
<th><strong>Denominador</strong></th>
|
||||
<th><strong>Numerador</strong></th>
|
||||
<th><strong>Resultado</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ $totalizadores->total_pacientes }}</td>
|
||||
<td>{{ $totalizadores->total_equipes }}</td>
|
||||
<td>{{ $totalizadores->total_microareas }}</td>
|
||||
<td>{{ $totalizadores->denominador }}</td>
|
||||
<td>{{ $totalizadores->numerador }}</td>
|
||||
<td>{{ $totalizadores->resultado }}%</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@if($boasPraticasSelecionadas->contains('A'))<th><strong>Boa prática A</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('B'))<th><strong>Boa prática B</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('C'))<th><strong>Boa prática C</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('D'))<th><strong>Boa prática D</strong></th>@endif
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
@if($boasPraticasSelecionadas->contains('A'))<td>{{ $totalizadores->boa_pratica_a }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('B'))<td>{{ $totalizadores->boa_pratica_b }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('C'))<td>{{ $totalizadores->boa_pratica_c }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('D'))<td>{{ $totalizadores->boa_pratica_d }}%</td>@endif
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><strong>Unidade</strong></th>
|
||||
<th><strong>Equipe</strong></th>
|
||||
<th><strong>Denominador</strong></th>
|
||||
<th><strong>Numerador</strong></th>
|
||||
<th><strong>Resultado</strong></th>
|
||||
<th><strong>Classificação</strong></th>
|
||||
@if($boasPraticasSelecionadas->contains('A'))<th><strong>A</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('B'))<th><strong>B</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('C'))<th><strong>C</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('D'))<th><strong>D</strong></th>@endif
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($equipes as $item)
|
||||
<tr>
|
||||
<td>{{ $item->unidade_nome_fantasia }}</td>
|
||||
<td>{{ $item->equipe_descricao }}</td>
|
||||
<td>{{ $item->denominador }}</td>
|
||||
<td>{{ $item->numerador }}</td>
|
||||
<td>{{ $item->resultado }}%</td>
|
||||
<td>{{ $item->classificacao_resultado }}</td>
|
||||
@if($boasPraticasSelecionadas->contains('A'))<td>{{ $item->boa_pratica_a }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('B'))<td>{{ $item->boa_pratica_b }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('C'))<td>{{ $item->boa_pratica_c }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('D'))<td>{{ $item->boa_pratica_d }}%</td>@endif
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@if($isBuscaAtiva)
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@php
|
||||
$colspan = 8;
|
||||
if($colunasPacientes->contains('data_nascimento')) $colspan++;
|
||||
if($colunasPacientes->contains('telefone_principal')) $colspan++;
|
||||
if($colunasPacientes->contains('endereco')) $colspan++;
|
||||
if($colunasPacientes->contains('area_microarea_domicilio')) $colspan++;
|
||||
if($boasPraticasSelecionadas->contains('A')) $colspan++;
|
||||
if($boasPraticasSelecionadas->contains('B')) $colspan++;
|
||||
if($boasPraticasSelecionadas->contains('C')) $colspan++;
|
||||
if($boasPraticasSelecionadas->contains('D')) $colspan++;
|
||||
@endphp
|
||||
<th colspan="{{ $colspan }}" style="text-align: center"><strong>Busca ativa por paciente</strong></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>Unidade</strong></th>
|
||||
<th><strong>Equipe</strong></th>
|
||||
<th><strong>Paciente</strong></th>
|
||||
<th><strong>Sexo</strong></th>
|
||||
<th><strong>Idade</strong></th>
|
||||
<th><strong>Microárea</strong></th>
|
||||
<th><strong>Responsável pelo cadastro</strong></th>
|
||||
@if($colunasPacientes->contains('data_nascimento'))<th><strong>Data de nascimento</strong></th>@endif
|
||||
@if($colunasPacientes->contains('telefone_principal'))<th><strong>Telefone</strong></th>@endif
|
||||
@if($colunasPacientes->contains('endereco'))<th><strong>Endereço</strong></th>@endif
|
||||
@if($colunasPacientes->contains('area_microarea_domicilio'))<th><strong>Área/Microárea do Domicílio</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('A'))<th><strong>A</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('B'))<th><strong>B</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('C'))<th><strong>C</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('D'))<th><strong>D</strong></th>@endif
|
||||
<th><strong>Pontuação total</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($pacientes as $item)
|
||||
<tr>
|
||||
<td>{{ $item->unidade_nome_fantasia }}</td>
|
||||
<td>{{ $item->equipe_descricao }}</td>
|
||||
<td>{{ $item->paciente_nome }}</td>
|
||||
<td>{{ $item->sexo_descricao }}</td>
|
||||
<td>{{ $item->idade }}</td>
|
||||
<td>{{ $item->microarea_descricao }}</td>
|
||||
<td>{{ $item->usuario_cadastro_nome }}</td>
|
||||
@if($colunasPacientes->contains('data_nascimento'))<td>{{ $item->data_nascimento }}</td>@endif
|
||||
@if($colunasPacientes->contains('telefone_principal'))<td>{{ $item->telefone_principal }}</td>@endif
|
||||
@if($colunasPacientes->contains('endereco'))<td>{{ $item->endereco }}</td>@endif
|
||||
@if($colunasPacientes->contains('area_microarea_domicilio'))<td>{{ $item->area_microarea_domicilio }}</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('A'))<td>{{ $item->boa_pratica_a ? 'Sim' : 'Não' }}</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('B'))<td>{{ $item->boa_pratica_b ? 'Sim' : 'Não' }}</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('C'))<td>{{ $item->boa_pratica_c ? 'Sim' : 'Não' }}</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('D'))
|
||||
<td>
|
||||
@if($item->is_equipe_eap)
|
||||
Não condicionante
|
||||
@else
|
||||
{{ $item->boa_pratica_d ? 'Sim' : 'Não' }}
|
||||
@endif
|
||||
</td>
|
||||
@endif
|
||||
<td>{{ $item->pontuacao_total }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
@@ -0,0 +1,205 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="5">
|
||||
<strong>{{$title}}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Período</strong></td>
|
||||
<td><strong>Ano</strong></td>
|
||||
<td><strong>Quadrimestre</strong></td>
|
||||
<td colspan="2"><strong>Unidade</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>De {{ $periodoDe }} até {{ $periodoAte }}</td>
|
||||
<td>{{ $quadrimestreAno }}</td>
|
||||
<td>{{ $quadrimestre }}</td>
|
||||
<td colspan="2">{{ $unidade }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3"><strong>Equipe</strong></td>
|
||||
<td><strong>Boas práticas</strong></td>
|
||||
<td><strong>Busca ativa</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">{{ $equipe }}</td>
|
||||
<td>{{ $boasPraticas }}</td>
|
||||
<td>{{ $buscaAtiva }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Sexo</strong></td>
|
||||
<td><strong>Idade mínima</strong></td>
|
||||
<td><strong>Idade máxima</strong></td>
|
||||
<td colspan="2"><strong>Paciente</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $sexo }}</td>
|
||||
<td>{{ $idadeMinima }}</td>
|
||||
<td>{{ $idadeMaxima }}</td>
|
||||
<td colspan="2">{{ $paciente }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="5"><strong>Fora de Área</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="5">{{ $foraArea }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="6" style="text-align: center"><strong>Totalizadores</strong></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th><strong>Total de pacientes</strong></th>
|
||||
<th><strong>Total de equipes</strong></th>
|
||||
<th><strong>Total de microáreas</strong></th>
|
||||
<th><strong>Denominador (D)</strong></th>
|
||||
<th><strong>Numerador (N)</strong></th>
|
||||
<th><strong>Resultado (%)</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ $totalizadores->total_pacientes }}</td>
|
||||
<td>{{ $totalizadores->total_equipes }}</td>
|
||||
<td>{{ $totalizadores->total_microareas }}</td>
|
||||
<td>{{ $totalizadores->denominador }}</td>
|
||||
<td>{{ $totalizadores->numerador }}</td>
|
||||
<td>{{ $totalizadores->resultado }}%</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@if($boasPraticasSelecionadas->contains('A'))<th><strong>% Boa prática A</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('B'))<th><strong>% Boa prática B</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('C'))<th><strong>% Boa prática C</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('D'))<th><strong>% Boa prática D</strong></th>@endif
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
@if($boasPraticasSelecionadas->contains('A'))<td>{{ $totalizadores->percentual_boa_pratica_a }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('B'))<td>{{ $totalizadores->percentual_boa_pratica_b }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('C'))<td>{{ $totalizadores->percentual_boa_pratica_c }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('D'))<td>{{ $totalizadores->percentual_boa_pratica_d }}%</td>@endif
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><strong>Unidade</strong></th>
|
||||
<th><strong>Equipe</strong></th>
|
||||
<th><strong>Denominador (D)</strong></th>
|
||||
<th><strong>Numerador (N)</strong></th>
|
||||
<th><strong>Resultado (%)</strong></th>
|
||||
<th><strong>Classificação</strong></th>
|
||||
@if($boasPraticasSelecionadas->contains('A'))<th><strong>% Boa prática A</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('B'))<th><strong>% Boa prática B</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('C'))<th><strong>% Boa prática C</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('D'))<th><strong>% Boa prática D</strong></th>@endif
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($equipes as $item)
|
||||
<tr>
|
||||
<td>{{ $item->unidade_nome_fantasia }}</td>
|
||||
<td>{{ $item->equipe_descricao }}</td>
|
||||
<td>{{ $item->denominador }}</td>
|
||||
<td>{{ $item->numerador }}</td>
|
||||
<td>{{ $item->resultado }}%</td>
|
||||
<td>{{ $item->classificacao_resultado }}</td>
|
||||
@if($boasPraticasSelecionadas->contains('A'))<td>{{ $item->percentual_boa_pratica_a }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('B'))<td>{{ $item->percentual_boa_pratica_b }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('C'))<td>{{ $item->percentual_boa_pratica_c }}%</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('D'))<td>{{ $item->percentual_boa_pratica_d }}%</td>@endif
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@if($isBuscaAtiva)
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@php
|
||||
$colspan = 8;
|
||||
if($colunasPacientes->contains('data_nascimento')) $colspan++;
|
||||
if($colunasPacientes->contains('telefone_principal')) $colspan++;
|
||||
if($colunasPacientes->contains('endereco')) $colspan++;
|
||||
if($colunasPacientes->contains('area_microarea_domicilio')) $colspan++;
|
||||
if($boasPraticasSelecionadas->contains('A')) $colspan++;
|
||||
if($boasPraticasSelecionadas->contains('B')) $colspan++;
|
||||
if($boasPraticasSelecionadas->contains('C')) $colspan++;
|
||||
if($boasPraticasSelecionadas->contains('D')) $colspan++;
|
||||
@endphp
|
||||
<th colspan="{{ $colspan }}" style="text-align: center"><strong>Busca ativa por paciente</strong></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>Unidade</strong></th>
|
||||
<th><strong>Equipe</strong></th>
|
||||
<th><strong>Paciente</strong></th>
|
||||
<th><strong>Sexo</strong></th>
|
||||
<th><strong>Idade</strong></th>
|
||||
<th><strong>Microárea</strong></th>
|
||||
<th><strong>Responsável pelo cadastro</strong></th>
|
||||
@if($colunasPacientes->contains('data_nascimento'))<th><strong>Data de nascimento</strong></th>@endif
|
||||
@if($colunasPacientes->contains('telefone_principal'))<th><strong>Telefone</strong></th>@endif
|
||||
@if($colunasPacientes->contains('endereco'))<th><strong>Endereço</strong></th>@endif
|
||||
@if($colunasPacientes->contains('area_microarea_domicilio'))<th><strong>Área/Microárea do Domicílio</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('A'))<th><strong>A</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('B'))<th><strong>B</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('C'))<th><strong>C</strong></th>@endif
|
||||
@if($boasPraticasSelecionadas->contains('D'))<th><strong>D</strong></th>@endif
|
||||
<th><strong>Pontuação total</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($pacientes as $item)
|
||||
<tr>
|
||||
<td>{{ $item->unidade_nome_fantasia }}</td>
|
||||
<td>{{ $item->equipe_descricao }}</td>
|
||||
<td>{{ $item->paciente_nome }}</td>
|
||||
<td>{{ $item->sexo_descricao }}</td>
|
||||
<td>{{ $item->idade }}</td>
|
||||
<td>{{ $item->microarea_descricao }}</td>
|
||||
<td>{{ $item->usuario_cadastro_nome }}</td>
|
||||
@if($colunasPacientes->contains('data_nascimento'))<td>{{ $item->data_nascimento }}</td>@endif
|
||||
@if($colunasPacientes->contains('telefone_principal'))<td>{{ $item->telefone_principal }}</td>@endif
|
||||
@if($colunasPacientes->contains('endereco'))<td>{{ $item->endereco }}</td>@endif
|
||||
@if($colunasPacientes->contains('area_microarea_domicilio'))<td>{{ $item->area_microarea_domicilio }}</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('A'))<td>{{ $item->boa_pratica_a ? 'Sim' : 'Não' }}</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('B'))<td>{{ $item->boa_pratica_b ? 'Sim' : 'Não' }}</td>@endif
|
||||
@if($boasPraticasSelecionadas->contains('C'))
|
||||
<td>
|
||||
@if($item->is_equipe_eap)
|
||||
Não condicionante
|
||||
@else
|
||||
{{ $item->boa_pratica_c ? 'Sim' : 'Não' }}
|
||||
@endif
|
||||
</td>
|
||||
@endif
|
||||
@if($boasPraticasSelecionadas->contains('D'))<td>{{ $item->boa_pratica_d ? 'Sim' : 'Não' }}</td>@endif
|
||||
<td>{{ $item->pontuacao_total }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
@@ -0,0 +1,104 @@
|
||||
<style>
|
||||
.table-relatorio>thead>tr>th,
|
||||
.table-relatorio>tfoot>tr>th {
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.col-min {
|
||||
width: 1%;
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.linha-filtro {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
margin-top: 20px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="6">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Competência</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Unidade</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $competencia }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $unidade }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Local de atendimento</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Profissional</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $infraestrutura }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $usuario }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Ficha</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $ficha }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="table table-relatorio">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th class="{{ $coluna['class'] }}"><strong>{{ $coluna['label'] }}</strong> </th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($items as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>
|
||||
{!! $item[$coluna['key']] ?? '-' !!}
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,67 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="4">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Ano</strong></td>
|
||||
<td><strong>Mês</strong></td>
|
||||
<td><strong>Unidade</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="text-align: left;">{{ $ano }}</td>
|
||||
<td>{{ $mes }}</td>
|
||||
<td>{{ $unidade }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><strong>Local de atendimento</strong></td>
|
||||
<td><strong>Equipe</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">{{ $infraestrutura }}</td>
|
||||
<td>{{ $equipe }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@foreach ($resultado as $key => $data)
|
||||
<table class="table table-relatorio" style="{{ $key !== 'levantamento_quantitativo' ? 'margin-top: 15px;' : '' }}">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="{{ isset($data['itens'][0]['percentual']) ? 3 : 2 }}" style="text-align: center"><strong>{{ $data['titulo'] }}</strong></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th style="text-align: center"><strong>Quantitativo</strong></th>
|
||||
<th style="text-align: center"><strong>Quantidade</strong></th>
|
||||
|
||||
@isset($data['itens'][0]['percentual'])
|
||||
<th style="text-align: center"><strong>%</strong></th>
|
||||
@endisset
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($data['itens'] as $item)
|
||||
<tr>
|
||||
<td>{{ $item['descricao'] }}</td>
|
||||
<td style="text-align: center">{{ $item['quantidade'] }}</td>
|
||||
|
||||
@isset($item['percentual'])
|
||||
<td style="text-align: center">{{ $item['percentual'] }}</td>
|
||||
@endisset
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
@isset($data['rodape'])
|
||||
<tr>
|
||||
<th colspan="{{ isset($data['itens'][0]['percentual']) ? 3 : 2 }}">{{ $data['rodape'] }}</th>
|
||||
</tr>
|
||||
@endisset
|
||||
</tbody>
|
||||
</table>
|
||||
@endforeach
|
||||
@@ -0,0 +1,109 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="10">
|
||||
<strong>{{$title}}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Período</strong></td>
|
||||
<td><strong>Unidade</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>De {{$periodo['inicio']}} até {{$periodo['fim']}}</td>
|
||||
<td>{{$unidade}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Local de atendimento</strong></td>
|
||||
<td><strong>Área</strong></td>
|
||||
<td><strong>Microarea</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$infraestrutura}}</td>
|
||||
<td>{{$area}}</td>
|
||||
<td>{{$microarea}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Agente responsável</strong></td>
|
||||
<td><strong>Paciente</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$usuario}}</td>
|
||||
<td>{{$paciente}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Logradouro</strong></td>
|
||||
<td><strong>Número do logradouro</strong></td>
|
||||
<td><strong>Desfecho</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$domicilio}}</td>
|
||||
<td>{{$endereco_numero}}</td>
|
||||
<td>{{$desfecho}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Data</th>
|
||||
<th>Paciente</th>
|
||||
<th>Prontuário</th>
|
||||
<th>Endereço completo</th>
|
||||
<th>Agente responsável</th>
|
||||
<th>Área</th>
|
||||
<th>Microarea</th>
|
||||
<th>Residentes</th>
|
||||
<th>Responsável familiar</th>
|
||||
<th>Desfecho</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach($data['itens'] as $item)
|
||||
<tr>
|
||||
<td>{{ \Carbon\Carbon::parse($item->data)->format('d/m/Y') }}</td>
|
||||
<td>{{$item->paciente_nome}}</td>
|
||||
<td>{{$item->paciente_prontuario}}</td>
|
||||
<td>{{$item->paciente_endereco}}</td>
|
||||
<td>{{$item->usuario_nome}}</td>
|
||||
<td>{{$item->area_descricao}}</td>
|
||||
<td>{{$item->microarea_descricao}}</td>
|
||||
<td>{{$item->residentes}}</td>
|
||||
<td>{{$item->responsavel_familiar}}</td>
|
||||
<td>{{$item->desfecho_descricao}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="5">
|
||||
<strong>Totais</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Total de visitas realizadas</strong></td>
|
||||
<td><strong>Total de ausências</strong></td>
|
||||
<td><strong>Total de recusas</strong></td>
|
||||
<td><strong>Total de visitas registradas</strong></td>
|
||||
<td><strong>Total de pacientes atendidos</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$data['totalizadores']['quantidade_visitas_realizadas']}}</td>
|
||||
<td>{{$data['totalizadores']['quantidade_ausencias']}}</td>
|
||||
<td>{{$data['totalizadores']['quantidade_recusas']}}</td>
|
||||
<td>{{$data['totalizadores']['quantidade_visitas_registradas']}}</td>
|
||||
<td>{{$data['totalizadores']['quantidade_pacientes_atendidos']}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -0,0 +1,101 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Data inicial:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Data final:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $data_inicial }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $data_final }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Unidade:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Equipe:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $unidade }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $equipe }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<b>1ª Consulta Odontológica Programática</b>
|
||||
</th>
|
||||
<th>
|
||||
<b>Escovação Dental Supervisionada</b>
|
||||
</th>
|
||||
<th>
|
||||
<b>Tratamento Concluído</b>
|
||||
</th>
|
||||
<th>
|
||||
<b>Urgência</b>
|
||||
</th>
|
||||
<th>
|
||||
<b>Gestante</b>
|
||||
</th>
|
||||
<th>
|
||||
<b>Instalação de Próteses Dentárias</b>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ $primeira_consulta_odontologica }}</td>
|
||||
<td>{{ $escovacao_dental_supervisionada }}</td>
|
||||
<td>{{ $tratamento_concluido }}</td>
|
||||
<td>{{ $urgencia }}</td>
|
||||
<td>{{ $gestante }}</td>
|
||||
<td>{{ $instalacao_proteses_dentarias }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<strong>Total</strong>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<b>{{ $total_atendimentos_odontologicos }}</b>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,98 @@
|
||||
<style>
|
||||
.table-relatorio>thead>tr>th,
|
||||
.table-relatorio>tfoot>tr>th {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.col-min {
|
||||
width: 1%;
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.linha-filtro {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
margin-top: 20px;
|
||||
}
|
||||
</style>
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="6">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Unidade</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Domicílio</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Área / INE</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Microárea</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $unidade }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $domicilio }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $area }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $microarea }}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($items as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>
|
||||
@if ($coluna['key'] == 'data_nascimento')
|
||||
{{ date('d/m/Y', strtotime($item->{$coluna['key']})) }}
|
||||
@else
|
||||
{{ $item->{$coluna['key']} ?? '-' }}
|
||||
@endif
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td><strong>Total de pacientes</strong></td>
|
||||
<td>{{ count($items) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -0,0 +1,201 @@
|
||||
<style>
|
||||
.table-relatorio>thead>tr>th,
|
||||
.table-relatorio>tfoot>tr>th {
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.col-min {
|
||||
width: 1%;
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.linha-filtro {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
margin-top: 20px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="6">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Unidade</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Domicílio</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Área / INE</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Microárea</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $unidade }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $domicilio }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $area }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $microarea }}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="table table-relatorio">
|
||||
<thead>
|
||||
@if ($domicilio != 'Fora de área')
|
||||
@php
|
||||
$colspanMicroareas = count($colunas) - count(['unidade_nome', 'areas', 'pacientes_fora_area']);
|
||||
if ($domicilio == 'Dentro de área') {
|
||||
$colspanMicroareas++;
|
||||
}
|
||||
@endphp
|
||||
<tr>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th style="text-align: center" colspan="{{ $colspanMicroareas }}"><strong>Microáreas</strong></th>
|
||||
@if ($domicilio == 'Todos' && $microarea == 'Todos')
|
||||
<th></th>
|
||||
@endif
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th class="{{ $coluna['class'] }}"><strong>{{ $coluna['label'] }}</strong> </th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($items['consulta'] as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
{{-- Coluna de pacientes fora de área --}}
|
||||
@if ($coluna['key'] == 'pacientes_fora_area')
|
||||
<td> {{ $item[$coluna['key']]['total_fora_area'] ?? '0' }}</td>
|
||||
|
||||
{{-- Coluna de areas --}}
|
||||
@elseif ($coluna['key'] == 'areas')
|
||||
<td>
|
||||
@foreach ($item['areas'] as $index => $itemArea)
|
||||
@if ($index > 0 && $microarea == 'Todos')
|
||||
<br />
|
||||
@endif
|
||||
|
||||
{{-- Coluna de área quando tem area filtrada --}}
|
||||
@if ($area == $itemArea['area_descricao'] && $microarea == 'Todos')
|
||||
{{ $itemArea['area_descricao'] }}
|
||||
@endif
|
||||
|
||||
{{-- Coluna de area quando tem microarea filtrada --}}
|
||||
@if ($microarea != 'Todos')
|
||||
@if (count($itemArea['microareas']) > 0)
|
||||
@if ($index > 0)
|
||||
<br />
|
||||
@endif
|
||||
@if ($area == $itemArea['area_descricao'])
|
||||
{{ $itemArea['area_descricao'] }}
|
||||
@elseif($area == 'Todos')
|
||||
{{ $itemArea['area_descricao'] }}
|
||||
@endif
|
||||
@endif
|
||||
@endif
|
||||
|
||||
{{-- Coluna de área por padrão --}}
|
||||
@if ($area == 'Todos' && $microarea == 'Todos')
|
||||
{{ $itemArea['area_descricao'] }}
|
||||
@endif
|
||||
@endforeach
|
||||
</td>
|
||||
|
||||
{{-- Coluna de microareas --}}
|
||||
@elseif ($coluna['key'] != 'unidade_nome')
|
||||
<td>
|
||||
@foreach ($item['areas'] as $index => $itemArea)
|
||||
@if ($index > 0)
|
||||
<br />
|
||||
@endif
|
||||
|
||||
@if (
|
||||
$coluna['key'] != 'total' &&
|
||||
!$itemArea['microareas']->contains('microarea_descricao', $coluna['key']) &&
|
||||
$microarea == 'Todos')
|
||||
@if ($area == $itemArea['area_descricao'])
|
||||
0
|
||||
@elseif($area == 'Todos')
|
||||
0
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@foreach ($itemArea['microareas'] as $itemMicroarea)
|
||||
@if ($area == $itemArea['area_descricao'] && $itemMicroarea['microarea_descricao'] == $coluna['key'])
|
||||
{{ $itemMicroarea['microarea_total_pacientes'] }}
|
||||
@elseif ($area === 'Todos' && $itemMicroarea['microarea_descricao'] == $coluna['key'] && $coluna['key'] !== 'total')
|
||||
{{ $itemMicroarea['microarea_total_pacientes'] }}
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
{{-- Coluna de total --}}
|
||||
@if ($coluna['key'] == 'total')
|
||||
@if ($itemArea['area_descricao'] === $area)
|
||||
{{ $itemArea['area_total_pacientes'] }}
|
||||
@elseif ($area == 'Todos')
|
||||
{{ $itemArea['area_total_pacientes'] }}
|
||||
@endif
|
||||
@endif
|
||||
@endforeach
|
||||
</td>
|
||||
|
||||
{{-- Demais colunas --}}
|
||||
@else
|
||||
<td>
|
||||
{{ $item[$coluna['key']] ?? '-' }}
|
||||
</td>
|
||||
@endif
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td><strong>Unidade(s)</strong></td>
|
||||
<td>{{ $totalizadores['unidades'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Dentro de área</strong></td>
|
||||
<td>{{ $totalizadores['dentro_area'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Fora de área</strong></td>
|
||||
<td>{{ $totalizadores['fora_area'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Dentro + Fora de área</strong></td>
|
||||
<td>{{ $totalizadores['dentro_area'] + $totalizadores['fora_area'] }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -0,0 +1,222 @@
|
||||
<style>
|
||||
.table-relatorio>thead>tr>th,
|
||||
.table-relatorio>tfoot>tr>th {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.col-min {
|
||||
width: 1%;
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.linha-filtro {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
margin-top: 20px;
|
||||
}
|
||||
</style>
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
{{ $title }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Competência:</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $competencia }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Unidade:</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $unidade }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Profissional:</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $profissional }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Local de atendimento:</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $localAtendimento }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Prontuario:</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $prontuario }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Idade:</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $idade }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Sexo:</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $sexo }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Hipertenso:</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $hipertenso }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Condição avaliada:</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $condicaoAvaliada }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Doença transmissível:</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $doencaTransmissivel }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Rastreamento:</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $rastreamento }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>CIAP2:</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $ciap2 }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>CID10:</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $cid }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Gestante:</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $gestante }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Diabético:</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $diabetico }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Vacina em dia:</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $vacinaEmDia }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Aleitamento materno:</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $aleitamentoMaterno }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="6">
|
||||
TOTAIS
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>Registro(s)</strong></th>
|
||||
<th><strong>Unidade(s)</strong></th>
|
||||
<th><strong>Profissional(s)</strong></th>
|
||||
<th><strong>Local(s) de atendimento</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ $totalizadores['registros'] }}</td>
|
||||
<td>{{ $totalizadores['unidades'] }}</td>
|
||||
<td>{{ $totalizadores['profissionais'] }}</td>
|
||||
<td>{{ $totalizadores['locaisAtendimento'] }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($items as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>
|
||||
@if ($coluna['key'] == 'condicao_avaliada')
|
||||
{{ $item->condicaoAvaliada ?? '-' }}
|
||||
@else
|
||||
{{ $item->{$coluna['key']} ?? '-' }}
|
||||
@endif
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,385 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ count($params['selected_columns']) }}">
|
||||
RELATÓRIO ESTATÍSTICO DE PACIENTES CADASTRADOS
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="{{ count($params['selected_columns']) }}">
|
||||
Os paciente com saída do cadastro por motivo de óbito ou mudança de território não serão exibidos.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="text-align: left" colspan="{{ count($params['selected_columns']) }}">
|
||||
<strong>EQUIPE</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Unidade:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Local de atendimento:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Local do domicílio:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['unidade_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['local_atendimento_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['local_domicilio_label'] }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Área da equipe</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Micro área</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Profissional</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['area_equipe_label'] }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $params['micro_area_label'] }}
|
||||
</td>
|
||||
|
||||
<td class="col-4">
|
||||
{{ $params['profissional_label'] }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="text-align: left" colspan="{{ count($params['selected_columns']) }}">
|
||||
<strong>PACIENTE</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Classificação:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Anos de:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Meses de:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Dias de:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Anos até:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Meses até:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Dias até:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Paciente:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['classificacao_paciente_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['anos_de_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['meses_de_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['dias_de_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['anos_ate_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['meses_ate_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['dias_ate_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['paciente_label'] }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="text-align: left" colspan="{{ count($params['selected_columns']) }}">
|
||||
<strong>CONDICIONALIDADES</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Sexo:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Peso:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Gestante:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Hipertenso:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Diabético:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Hanseniase:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Tuberculose:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Fumante:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Alcool:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Drogas:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Tea:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['condicionalidades_label']['sexo_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['condicionalidades_label']['peso_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['condicionalidades_label']['gestante_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['condicionalidades_label']['hipertenso_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['condicionalidades_label']['diabetico_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['condicionalidades_label']['hanseniase_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['condicionalidades_label']['tuberculose_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['condicionalidades_label']['fumante_label'] }}
|
||||
</td>
|
||||
<td class="col-1">
|
||||
{{ $params['condicionalidades_label']['alcool_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['condicionalidades_label']['drogas_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['condicionalidades_label']['tea_label'] }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="text-align: left" colspan="{{ count($params['selected_columns']) }}">
|
||||
<strong>OUTRAS DOENÇAS/TRATAMENTOS</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Avc/Derrame:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Infarto:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Cancer:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Fibromialgia:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Internação:</strong>
|
||||
</td>
|
||||
<td class="col-1">
|
||||
<strong>Doença cardíaca:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['outras_doencas_label']['avc_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['outras_doencas_label']['infarto_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['outras_doencas_label']['cancer_label'] }}
|
||||
</td>
|
||||
<td class="col-1">
|
||||
{{ $params['outras_doencas_label']['fibromialgia_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['outras_doencas_label']['internacao_label'] }}
|
||||
</td>
|
||||
<td class="col-1">
|
||||
{{ $params['outras_doencas_label']['doenca_cardiaca_label'] }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Doença renal:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Doença respiratória:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Tratamento psiquiátrico:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Plantas medicinais:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Práticas integrativas:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['outras_doencas_label']['doenca_renal_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['outras_doencas_label']['doenca_respiratoria_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['outras_doencas_label']['tratamento_psicologico_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['outras_doencas_label']['plantas_medicinais_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['outras_doencas_label']['plantas_medicinais_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['outras_doencas_label']['praticas_integrativas_label'] }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="text-align: left" colspan="{{ count($params['selected_columns']) }}">
|
||||
<strong>ATENÇÃO DOMICILIAR</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Acamado:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Domiciliado:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['atencao_domiciliar_label']['acamado_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['atencao_domiciliar_label']['domiciliado_label'] }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach($params['selected_columns'] as $coluna)
|
||||
@if ($coluna['key'] !== 'todas')
|
||||
<th>{{ $coluna['label'] }}</th>
|
||||
@endif
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($relatorio['relatorio'] as $registros)
|
||||
<tr>
|
||||
@foreach($params['selected_columns'] as $coluna)
|
||||
@if ($coluna['key'] !== 'todas')
|
||||
<td>{{ $registros->{$coluna['key']} ?? '' }}</td>
|
||||
@endif
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
<br>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>
|
||||
TOTALIZADORES:
|
||||
</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<br>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Total de pacientes:</strong> {{ $relatorio['total_pacientes'] }}<br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Total de famílias:</strong> {{ $relatorio['total_familias'] }}<br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Total por sexo:</strong>
|
||||
</td>
|
||||
@foreach ($relatorio['total_pacientes_por_sexo'] as $sexo => $total)
|
||||
<td class="me-3">{{ ucfirst($sexo) }}: {{ $total }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Total por área:</strong>
|
||||
</td>
|
||||
@foreach ($relatorio['total_pacientes_por_area'] as $area => $total)
|
||||
<td class="me-3">{{ ucfirst($area) }}: {{ $total }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Total por micro área:</strong>
|
||||
</td>
|
||||
@foreach ($relatorio['total_pacientes_por_micro_area'] as $micro => $total)
|
||||
<td class="me-3">{{ ucfirst($micro) }}: {{ $total }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
</table>
|
||||
@@ -0,0 +1,61 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Ano</strong></td>
|
||||
<td><strong>Mês</strong></td>
|
||||
<td><strong>Unidade</strong></td>
|
||||
<td colspan="3"><strong>Ocupação</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $ano }}</td>
|
||||
<td>{{ $mes }}</td>
|
||||
<td>{{ $unidade }}</td>
|
||||
<td colspan="3">{{ $ocupacao }}</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3"><strong>Procedimento</strong></td>
|
||||
<td><strong>Inconsistência</strong></td>
|
||||
<td><strong>Idade de</strong></td>
|
||||
<td><strong>Idade até</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">{{ $procedimento }}</td>
|
||||
<td>{{ $comInconsistencia }}</td>
|
||||
<td>{{ $idadeDe }}</td>
|
||||
<td>{{ $idadeAte }}</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>
|
||||
@@ -0,0 +1,67 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Ano</strong></td>
|
||||
<td><strong>Mês</strong></td>
|
||||
<td><strong>Unidade</strong></td>
|
||||
<td><strong>Ocupação</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $ano }}</td>
|
||||
<td>{{ $mes }}</td>
|
||||
<td>{{ $unidade }}</td>
|
||||
<td>{{ $ocupacao }}</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><strong>Profissional</strong></td>
|
||||
<td><strong>Procedimento</strong></td>
|
||||
<td><strong>CID</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">{{ $usuario }}</td>
|
||||
<td>{{ $procedimento }}</td>
|
||||
<td>{{ $cid }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Inconsistência</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $comInconsistencia }}</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>
|
||||
@@ -0,0 +1,46 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count()}}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th><strong>Unidade</strong></th>
|
||||
<th>{{ $unidade }}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>Competência</strong></th>
|
||||
<th>{{ $competencia }}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>Instrumento de Registro</strong></th>
|
||||
<th>{{ $instrumento_registro }}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>Total de Inconsistências</strong></th>
|
||||
<th>{{ $total }}</th>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th class="{{ $coluna['class'] }}"><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>
|
||||
@@ -0,0 +1,77 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Ano</strong></td>
|
||||
<td><strong>Mês</strong></td>
|
||||
<td><strong>Módulo de origem</strong></td>
|
||||
<td><strong>Unidade</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $ano }}</td>
|
||||
<td>{{ $mes }}</td>
|
||||
<td>{{ $origem }}</td>
|
||||
<td>{{ $unidade }}</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><strong>Idade de</strong></td>
|
||||
<td><strong>Idade até</strong></td>
|
||||
<td><strong>CBO</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">{{ $idadeDe }}</td>
|
||||
<td>{{ $idadeAte }}</td>
|
||||
<td>{{ $ocupacao }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3"><strong>Profissional</strong></td>
|
||||
<td><strong>Procedimento</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">{{ $usuario }}</td>
|
||||
<td>{{ $procedimento }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><strong>Status</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">{{ $status }}</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>
|
||||
@@ -0,0 +1,63 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="{{$columns->count()}}" style="text-align: center">
|
||||
<strong>{{$title}}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Grupo</strong></td>
|
||||
<td><strong>Subgrupo</strong></td>
|
||||
<td><strong>Tipo de receita</strong></td>
|
||||
<td><strong>Livro</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$grupo}}</td>
|
||||
<td>{{$subgrupo}}</td>
|
||||
<td>{{$receita_tipo}}</td>
|
||||
<td>{{$livro}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Tipo de livro</strong></td>
|
||||
<td><strong>Forma farmacêutica</strong></td>
|
||||
<td colspan="2"><strong>Programas/Ações</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$livro_tipo}}</td>
|
||||
<td>{{$forma_farmaceutica}}</td>
|
||||
<td colspan="2">{{$programas_acoes}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="4"><strong>Material</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$material}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($columns as $column)
|
||||
<td>
|
||||
<strong>{{$column['label']}}</strong>
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach($itens as $item)
|
||||
<tr>
|
||||
@foreach ($columns as $column)
|
||||
<td>{{$item->{$column['key']} ?? '-'}}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,74 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Classificação</strong></td>
|
||||
<td><strong>Município</strong></td>
|
||||
<td colspan="3"><strong>Unidade</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $classificacao }}</td>
|
||||
<td>{{ $municipio }}</td>
|
||||
<td colspan="3">{{ $unidade }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Bairro</strong></td>
|
||||
<td><strong>Tipo de logradouro</strong></td>
|
||||
<td colspan="3"><strong>Logradouro</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $bairro }}</td>
|
||||
<td>{{ $tipoLogradouro }}</td>
|
||||
<td colspan="3">{{ $logradouro }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><strong>Paciente</strong></td>
|
||||
<td><strong>Fora de área</strong></td>
|
||||
<td><strong>Área</strong></td>
|
||||
<td><strong>Microárea</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">{{ $paciente }}</td>
|
||||
<td>{{ $foraArea }}</td>
|
||||
<td>{{ $area }}</td>
|
||||
<td>{{ $microarea }}</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
|
||||
|
||||
@if($isModeloSintetico)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th><strong>{{ $totalizadores->{$coluna['key']} ?? '' }}</strong></th>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,64 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Lotação principal</strong></td>
|
||||
<td><strong>Unidade (Lotação)</strong></td>
|
||||
<td><strong>Local de atendimento (Lotação)</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $lotacaoPrincipal }}</td>
|
||||
<td>{{ $unidade }}</td>
|
||||
<td>{{ $infraestrutura }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>CBO (Lotação)</strong></td>
|
||||
<td><strong>Status</strong></td>
|
||||
<td><strong>Sexo</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $ocupacao }}</td>
|
||||
<td>{{ $status }}</td>
|
||||
<td>{{ $sexo }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Usuário</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $usuario }}</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 usuários: {{ $totalizadores->usuario }}</strong></th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,99 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ count($params['columns']) }}">
|
||||
<strong>RELATÓRIO DE JORNADA - COTA PROFISSIONAL</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Período:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Unidade executante:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
De: {{$params['periodo']['start'] }} até {{$params['periodo']['end'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{$params['executantes']}}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Grupo de exames</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Profissional executante:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{$params['grupos']}}
|
||||
</td>
|
||||
<td>
|
||||
{{$params['profissional']}}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Status:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{$params['status']}}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($params['columns'] as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($listagem as $profissional)
|
||||
<tr>
|
||||
<td class="text-left">{{$profissional['data']}}</td>
|
||||
<td class="text-left">{{$profissional['profissional_nome']}}</td>
|
||||
<td class="text-left">{{$profissional['grupo']}}</td>
|
||||
<td class="text-left">{{$profissional['nome_semana']}}</td>
|
||||
<td class="text-left">{{$profissional['hora_inicial']}}</td>
|
||||
<td class="text-left">{{$profissional['hora_fim']}}</td>
|
||||
<td class="text-left">{{$profissional['status_nome']}}</td>
|
||||
<td class="text-left">
|
||||
{{$profissional['soma']}} / {{$profissional['vagas']}}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
<tr>
|
||||
<td colspan="{{ count($params['columns']) }}">
|
||||
<div style="float:left;font-weight:600">
|
||||
Total de atendimento: {{$params['totalAtendimento']}}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="{{ count($params['columns']) }}">
|
||||
<div style="float:right;font-weight:600">
|
||||
Total de vagas: {{$params['vagaTotal']}}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,142 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ count($params['columns']) }}">
|
||||
<strong>RELATÓRIO DE EXAME POR STATUS</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Período:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Unidade solicitante:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Unidade executante</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
De: {{$params['periodo']['start'] }} até {{$params['periodo']['end'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{$params['solicitantes']}}
|
||||
</td>
|
||||
<td>
|
||||
{{$params['executantes']}}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Profissional executante:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Grupo:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Exames:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{$params['profissional'] ?? 'Todos' }}
|
||||
</td>
|
||||
<td>
|
||||
{{$params['grupo'] ?? 'Todos' }}
|
||||
</td>
|
||||
<td>
|
||||
{{$params['exame']}}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Status:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Número prontuário:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Código do exame:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{$params['status']}}
|
||||
</td>
|
||||
<td>
|
||||
{{$params['prontuario'] ?? 'Todos'}}
|
||||
</td>
|
||||
<td>
|
||||
{{$params['procedimento'] ?? 'Todos' }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Paciente:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{$params['paciente']['cidadao']['nome'] ?? 'Todos' }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($params['columns'] as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($listagem as $item)
|
||||
<tr>
|
||||
@foreach ($params['columns'] as $coluna)
|
||||
<td>{{ $item[$coluna['key']] ?? '-' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
<tr>
|
||||
<td colspan="{{ count($params['columns']) }}">
|
||||
<div style="float:left;">
|
||||
<strong>
|
||||
Total de paciente: {{$params['totalizandoPaciente']}}
|
||||
</strong>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="{{ count($params['columns']) }}">
|
||||
<div style="float:right;">
|
||||
<strong>
|
||||
Total de exame: {{$params['totalizandoExames']}}
|
||||
</strong>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="{{ count($params['columns']) }}">
|
||||
<div style="float:right;">
|
||||
<strong>
|
||||
Valor Total: {{$params['valorExames']}}
|
||||
</strong>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,98 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ count($params['columns']) }}">
|
||||
<strong>RELATÓRIO FINANCEIRO DE EXAMES</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Período:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Unidade solicitante:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
De: {{$params['periodo']['start'] }} até {{$params['periodo']['end'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{$params['solicitantes']}}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Unidade executante</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Exames:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{$params['executantes']}}
|
||||
</td>
|
||||
<td>
|
||||
{{$params['exame']}}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Código procedimento:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{$params['procedimento'] ?? 'Todos' }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($params['columns'] as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($listagem as $financeiro)
|
||||
<tr>
|
||||
<td class="text-left">{{$financeiro['nome_procedimento']}}</td>
|
||||
<td class="text-left">{{$financeiro['procedimento']}}</td>
|
||||
<td class="text-left">{{$financeiro['exame_nome']}}</td>
|
||||
<td class="text-left">{{$financeiro['quantidade']}}</td>
|
||||
<td class="text-left">
|
||||
@php
|
||||
echo 'R$ '.number_format($financeiro['valor_unitario'], 2, ',', '.')
|
||||
@endphp
|
||||
</td>
|
||||
<td class="text-left">
|
||||
@php
|
||||
$total = $financeiro['quantidade'] * $financeiro['valor_unitario'];
|
||||
|
||||
echo 'R$ '.number_format($total, 2, ',', '.')
|
||||
@endphp
|
||||
</td>
|
||||
<td class="text-left">{{$financeiro['status_nome']}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
<tr>
|
||||
<td style="text-align:left" colspan="{{ count($params['columns']) }}">
|
||||
<strong>
|
||||
Valor geral: R$: {{$params['totalGeral']}}
|
||||
</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,84 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ count($busca['colunas']) }}">
|
||||
<strong>RELATÓRIO DE PRODUÇÃO</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Período:</strong></td>
|
||||
<td><strong>Unidade Solicitante:</strong></td>
|
||||
<td><strong>Local de atendimento:</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>De {{ $busca['inicio'] }} até {{ $busca['fim'] }}</td>
|
||||
<td>{{ $busca['unidadeSolicitante'] }}</td>
|
||||
<td>{{ $busca['infraestrutura_solicitante'] }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Unidade Executante:</strong></td>
|
||||
<td><strong>Local de atendimento:</strong></td>
|
||||
<td><strong>Status:</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $busca['unidadeExecutante'] }}</td>
|
||||
<td>{{ $busca['infraestrutura_executante'] }}</td>
|
||||
<td>{{ $busca['status'] }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Procedimentos:</strong></td>
|
||||
<td><strong>Exames:</strong></td>
|
||||
<td><strong>Ocupação:</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $busca['procedimento_nome'] }}</td>
|
||||
<td>{{ $busca['exame'] }}</td>
|
||||
<td>{{ $busca['ocupacao'] }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Profissional:</strong></td>
|
||||
<td><strong>Prestador:</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $busca['profissional'] }}</td>
|
||||
<td>{{ $busca['prestador'] }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($busca['colunas'] as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($itens as $item)
|
||||
<tr>
|
||||
@foreach($busca['colunas'] as $coluna)
|
||||
<td>{{ $item[$coluna['key']] ?? '-' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
<tr>
|
||||
<td style="text-align:right" colspan="{{ count($busca['colunas']) }}">
|
||||
<strong>
|
||||
@foreach($busca['totalExames'] as $total)
|
||||
Total geral de exames: {{$total}}
|
||||
@endforeach
|
||||
</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,89 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Período:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Exame:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
De {{ $periodo['start'] }} até {{ $periodo['end'] }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $exame_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>Paciente:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Prontuário:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $paciente }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $prontuario }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($agendamentos as $agendamento)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td class="{{ $coluna['class'] }} background-white">{{ $agendamento[$coluna['key']] ?? '-' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,138 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<strong>Período</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Unidade</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Profissional</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Supervisor</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Exame</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Status</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
De {{ $inicio }} até {{ $fim }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $unidade }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $profissional }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $supervisor }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $exame }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $status }}
|
||||
</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>
|
||||
|
||||
<tfoot>
|
||||
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() }}"></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() }}"><strong>Exame(s) bloqueado(s)</strong></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>
|
||||
Quantidade: {{ $totalizadores['quantidade_bloqueado'] }}
|
||||
</th>
|
||||
<th>
|
||||
Valor: {{ $totalizadores['total_bloqueado'] }}
|
||||
</th>
|
||||
<th colspan="{{ $colunas->count() - 2}}"></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() }}"></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() }}"><strong>Exame(s) liberado(s)</strong></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>
|
||||
Quantidade: {{ $totalizadores['quantidade_liberado'] }}
|
||||
</th>
|
||||
<th>
|
||||
Valor: {{ $totalizadores['total_liberado'] }}
|
||||
</th>
|
||||
<th colspan="{{ $colunas->count() - 2}}"></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() }}"></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() }}"><strong>Total</strong></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>
|
||||
Quantidade: {{ $totalizadores['quantidade_total'] }}
|
||||
</th>
|
||||
<th>
|
||||
Valor: {{ $totalizadores['total'] }}
|
||||
</th>
|
||||
<th colspan="{{ $colunas->count() - 2}}"></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
@@ -0,0 +1,124 @@
|
||||
<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>Laboratório:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Local de atendimento:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $laboratorio_nome }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $laboratorio_infraestrutura_nome }}
|
||||
</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>Grupo:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Exame:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $grupo_nome }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $exame_nome }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<table>
|
||||
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>{{ $coluna['label'] }}</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
|
||||
@foreach ($exames as $exame)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>
|
||||
{{ $exame[$coluna['key']] ?? '-' }}
|
||||
|
||||
@if ($coluna['key'] == 'paciente_nome')
|
||||
|
||||
@if (!empty($exame['paciente_nome_social']))
|
||||
({{ $exame['paciente_nome_social'] }})
|
||||
@endif
|
||||
@endif
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,121 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Período:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Exame:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
De {{ $periodo['start'] }} até {{ $periodo['end'] }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $exame_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_fantasia }}
|
||||
</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>
|
||||
|
||||
@php
|
||||
$quantidade = 0;
|
||||
$quantidadeReagentes = 0;
|
||||
@endphp
|
||||
|
||||
@foreach ($agendamentos as $agendamento)
|
||||
|
||||
@php
|
||||
$quantidade = $quantidade + $agendamento['quantidade'];
|
||||
$quantidadeReagentes = $quantidadeReagentes + $agendamento['quantidade_reagente'];
|
||||
@endphp
|
||||
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td class="{{ $coluna['class'] }} background-white">{{ $agendamento[$coluna['key']] ?? '-' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
|
||||
@if ($loop->last)
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() - 2 }}">
|
||||
<strong>
|
||||
Total
|
||||
</strong>
|
||||
</th>
|
||||
<th>
|
||||
<strong>
|
||||
{{ $quantidade }}
|
||||
</strong>
|
||||
</th>
|
||||
<th>
|
||||
<strong>
|
||||
{{ $quantidadeReagentes }}
|
||||
</strong>
|
||||
</th>
|
||||
</tr>
|
||||
@endif
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,273 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Período:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Exame:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
De {{ $periodo['start'] }} até{{ $periodo['end'] }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $exame_grupo }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Status:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Prontuário:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
@if ($status->count() == 7)
|
||||
|
||||
TODOS
|
||||
@else
|
||||
|
||||
@foreach ($status as $statusNome)
|
||||
@if ($loop->last)
|
||||
{{ $statusNome['nome'] }}.
|
||||
@else
|
||||
{{ $statusNome['nome'] }},
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $prontuario }}
|
||||
</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>
|
||||
|
||||
@foreach ($unidade_coleta as $coleta)
|
||||
|
||||
@foreach ($coleta['agendamentos'] as $agendamento)
|
||||
|
||||
<table>
|
||||
|
||||
<thead>
|
||||
@if ($loop->first)
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() }}">
|
||||
<strong>
|
||||
Unidade de coleta: {{ $coleta['coleta_nome_fantasia'] }}
|
||||
- Local de atendimento: {{ $coleta['coleta_infraestrutura_nome'] }}
|
||||
</strong>
|
||||
</th>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() }}">
|
||||
<strong>
|
||||
Paciente: {{ $agendamento['paciente_nome'] }}
|
||||
|
||||
@if (!empty($agendamento['paciente_nome_social']))
|
||||
({{ $agendamento['paciente_nome_social'] }})
|
||||
@endif
|
||||
|
||||
- Prontuário: {{ $agendamento['paciente_prontuario'] }}
|
||||
- Agendamento: {{ $agendamento['agendamento_numero'] }}
|
||||
</strong>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th class="{{ $coluna['class'] }}"><strong>{{ $coluna['label'] }}</strong></th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($agendamento['exames'] as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td class="{{ $coluna['class'] }} background-white">{{ $item[$coluna['key']] ?? '-' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() }}" style="text-align: right">
|
||||
<strong>Total de exames: {{ $agendamento['exames']->count() }}</strong>
|
||||
</th>
|
||||
</tr>
|
||||
@if ($loop->last)
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() }}">
|
||||
<strong>
|
||||
Total de exames da unidade de coleta: {{ $coleta['coleta_nome_fantasia'] }}
|
||||
- Local de atendimento: {{ $coleta['coleta_infraestrutura_nome'] }}: {{$coleta['total_exames']}}
|
||||
</strong>
|
||||
</th>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
@endforeach
|
||||
@endforeach
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th colspan="{{ $status->count() }}">
|
||||
<strong>Status dos exames</strong>
|
||||
</th>
|
||||
</tr>
|
||||
|
||||
@if (in_array(\App\Enums\ExameLaboratorial\StatusAgendamento::AGENDADO, $total_status))
|
||||
<tr>
|
||||
<td class="col-2 text-center">
|
||||
<strong>Agendado: {{ $agendado }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if (in_array(\App\Enums\ExameLaboratorial\StatusAgendamento::NAO_REALIZADO, $total_status))
|
||||
<tr>
|
||||
<td class="col-2 text-center">
|
||||
<strong>Não coletado: {{ $nao_coletado }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if (in_array(\App\Enums\ExameLaboratorial\StatusAgendamento::REALIZADO, $total_status))
|
||||
<tr>
|
||||
<td class="col-2 text-center">
|
||||
<strong>Coleta realizada: {{ $coleta_realizada }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if (in_array(\App\Enums\ExameLaboratorial\StatusAgendamento::PENDENTE_ASSINATURA, $total_status))
|
||||
<tr>
|
||||
<td class="col-2 text-center">
|
||||
<strong>Pendente de assinatura: {{ $pendente_assinatura }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if (in_array(\App\Enums\ExameLaboratorial\StatusAgendamento::ASSINADO, $total_status))
|
||||
<tr>
|
||||
<td class="col-2 text-center">
|
||||
<strong>Pendente de impressão: {{ $pendente_impressao }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if (in_array(\App\Enums\ExameLaboratorial\StatusAgendamento::PENDENTE_ENTREGA, $total_status))
|
||||
<tr>
|
||||
<td class="col-2 text-center">
|
||||
<strong>Pendente de entrega: {{ $pendente_entrega }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if (in_array(\App\Enums\ExameLaboratorial\StatusAgendamento::ENTREGUE, $total_status))
|
||||
<tr>
|
||||
<td class="col-2 text-center">
|
||||
<strong>Entregue: {{ $entregue }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,89 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Período:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Exame:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
De {{ $periodo['start'] }} até {{ $periodo['end'] }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $exame_nome }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Unidade solicitante:</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_fantasia }}
|
||||
</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>
|
||||
@foreach ($agendamentos as $agendamento)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td class="{{ $coluna['class'] }} background-white">{{ $agendamento[$coluna['key']] ?? '-' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,129 @@
|
||||
<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>
|
||||
@@ -0,0 +1,242 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Período:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Exame:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
De {{ $periodo['start'] }} até {{ $periodo['end'] }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $exame_grupo }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Status:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Prontuário:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
@if ($status->count() == 4)
|
||||
|
||||
TODOS
|
||||
@else
|
||||
|
||||
@foreach ($status as $statusNome)
|
||||
@if ($loop->last)
|
||||
{{ $statusNome['nome'] }}.
|
||||
@else
|
||||
{{ $statusNome['nome'] }},
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $prontuario }}
|
||||
</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>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Paciente:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Prontuário:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $paciente_nome }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $prontuario }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>
|
||||
<strong>{{ is_array($coluna) ? ($coluna['label'] ?? $coluna) : $coluna }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
@foreach ($agendamentos as $agendamento)
|
||||
|
||||
<table>
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() }}">
|
||||
<strong>
|
||||
Paciente: {{ $agendamento['paciente_nome'] }}
|
||||
|
||||
@if (!empty($agendamento['paciente_nome_social']))
|
||||
({{ $agendamento['paciente_nome_social'] }})
|
||||
@endif
|
||||
|
||||
- Prontuário: {{ $agendamento['paciente_prontuario'] }}
|
||||
- Data de nascimento: {{ $agendamento['paciente_nascimento'] }}
|
||||
- CNS: {{$agendamento['paciente_cns']}}
|
||||
- CPF: {{$agendamento['paciente_cpf']}}
|
||||
</strong>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th><strong>{{ is_array($coluna) ? ($coluna['label'] ?? $coluna) : $coluna }}</strong></th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($agendamento['exames'] as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
@php
|
||||
$key = is_array($coluna) ? ($coluna['key'] ?? $coluna) : $coluna;
|
||||
@endphp
|
||||
<td class="background-white">{{ $item[$key] ?? '-' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
<tr>
|
||||
<th class="table-td"></th>
|
||||
<th colspan="{{ $colunas->count() - 3 }}">
|
||||
<strong>Total de exames: {{ $agendamento['total']['quantidade'] }}</strong>
|
||||
</th>
|
||||
<th>
|
||||
<strong>Total médio: {{ $agendamento['total']['valor_medio'] }}</strong>
|
||||
</th>
|
||||
<th>
|
||||
<strong>Total: {{ $agendamento['total']['valor_total'] }}</strong>
|
||||
</th>
|
||||
</tr>
|
||||
<tr><td colspan="{{ $colunas->count() }}"></td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@endforeach
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th colspan="{{ $status->count() }}">
|
||||
<strong>Total</strong>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Exames: {{ $total['quantidade'] }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Valor médio: {{ $total['valor_medio'] }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Valor total: {{ $total['valor_total'] }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,126 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Período:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Exame:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
De {{ $periodo['start'] }} até {{ $periodo['end'] }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $exame_grupo }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Status:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Paciente:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
@if ($status->count() == 4)
|
||||
|
||||
TODOS
|
||||
@else
|
||||
|
||||
@foreach ($status as $statusNome)
|
||||
@if ($loop->last)
|
||||
{{ $statusNome['nome'] }}.
|
||||
@else
|
||||
{{ $statusNome['nome'] }},
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $paciente_nome }}
|
||||
</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>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<table>
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th><strong>{{ $coluna['label'] }}</strong></th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($agendamentos as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td class="{{ $coluna['class'] }} background-white">
|
||||
|
||||
{{ $item[$coluna['key']] ?? '-' }}
|
||||
|
||||
@if ($coluna['key'] == 'paciente_nome')
|
||||
|
||||
@if (!empty($item['paciente_nome_social']))
|
||||
({{ $item['paciente_nome_social'] }})
|
||||
@endif
|
||||
@endif
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
<tr>
|
||||
<td colspan="{{ $colunas->count() - 2 }}"></td>
|
||||
<td><strong>Total</strong></td>
|
||||
<td><strong>{{ $total }}</strong></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,78 @@
|
||||
<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>Médico:</strong>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $local }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $medico }}
|
||||
</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>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() }}" style="text-align: right">
|
||||
<strong>Total: {{ $totalizadores['total'] }}</strong>
|
||||
</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
@@ -0,0 +1,115 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Período:</strong></td>
|
||||
<td><strong>Exame:</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>De {{ $periodo['start'] }} até {{ $periodo['end'] }}</td>
|
||||
<td>{{ $exame_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_fantasia }}</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>
|
||||
@foreach ($unidade_coleta as $coleta)
|
||||
<table>
|
||||
@foreach ($coleta['exames'] as $agendamento)
|
||||
<thead>
|
||||
@if ($loop->first)
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count()}}">
|
||||
<strong>
|
||||
Unidade de coleta: {{ $coleta['coleta_nome_fantasia'] }}
|
||||
- Local de atendimento: {{ $coleta['coleta_infraestrutura_nome'] }}
|
||||
</strong>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count()}}">
|
||||
<strong>
|
||||
Laboratório: {{ $coleta['laboratorio_nome_fantasia'] }}
|
||||
- Local de atendimento: {{ $coleta['laboratorio_infraestrutura_nome'] }}
|
||||
</strong>
|
||||
</th>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if ($loop->first)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th class="{{ $coluna['class'] }}">
|
||||
<strong>
|
||||
{{ $coluna['label'] }}
|
||||
</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endif
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td class="{{ $coluna['class'] }} background-white">
|
||||
{{ $agendamento[$coluna['key']] ?? '-' }}
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
|
||||
@if ($loop->last)
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() }}" style="text-align: right">
|
||||
<strong>
|
||||
Total de exames: {{$coleta['total_exames']}}
|
||||
</strong>
|
||||
</th>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
</tbody>
|
||||
@endforeach
|
||||
</table>
|
||||
@endforeach
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,142 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Período:</strong></td>
|
||||
<td><strong>Exame:</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>De {{ $periodo['start'] }} até {{ $periodo['end'] }}</td>
|
||||
<td>{{ $exame_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_fantasia }}</td>
|
||||
<td>{{ $laboratorio_infraestrutura_nome }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Ocupação:</strong></td>
|
||||
<td><strong>Profissional:</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $ocupacao }}</td>
|
||||
<td>{{ $profissional }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Procedimento:</strong></td>
|
||||
<td><strong>Status:</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $procedimento }}</td>
|
||||
<td>{{ $status }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Idade de:</strong></td>
|
||||
<td><strong>Idade até:</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $idade_de }}</td>
|
||||
<td>{{ $idade_ate }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
@foreach ($unidade_coleta as $coleta)
|
||||
<table>
|
||||
@foreach ($coleta['exames'] as $agendamento)
|
||||
<thead>
|
||||
@if ($loop->first)
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count()}}">
|
||||
<strong>
|
||||
Unidade de coleta: {{ $coleta['coleta_nome_fantasia'] }}
|
||||
- Local de atendimento: {{ $coleta['coleta_infraestrutura_nome'] }}
|
||||
</strong>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count()}}">
|
||||
<strong>
|
||||
Laboratório: {{ $coleta['laboratorio_nome_fantasia'] }}
|
||||
- Local de atendimento: {{ $coleta['laboratorio_infraestrutura_nome'] }}
|
||||
</strong>
|
||||
</th>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if ($loop->first)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th class="{{ $coluna['class'] }}">
|
||||
<strong>
|
||||
{{ $coluna['label'] }}
|
||||
</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endif
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td class="{{ $coluna['class'] }} background-white">
|
||||
{{ $agendamento[$coluna['key']] ?? '-' }}
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
|
||||
@if ($loop->last)
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() }}" style="text-align: right">
|
||||
<strong>
|
||||
Total de exames: {{$coleta['total']}}
|
||||
</strong>
|
||||
</th>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
</tbody>
|
||||
@endforeach
|
||||
</table>
|
||||
@endforeach
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,129 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Período de envio DRS:</strong>
|
||||
</td>
|
||||
|
||||
<td colspan="2">
|
||||
<strong>Unidade:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
De {{ $inicio }} até {{ $fim }}
|
||||
</td>
|
||||
|
||||
<td colspan="2">
|
||||
{{ $unidade }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Local de atendimento:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Setor:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Tipo:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $infraestrutura }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $setor }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $tipo }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Subtipo:</strong>
|
||||
</td>
|
||||
|
||||
<td colspan="2">
|
||||
<strong>Paciente:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $subtipo }}
|
||||
</td>
|
||||
|
||||
<td colspan="2">
|
||||
{{ $paciente }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($itens as $item)
|
||||
@if ($item->materiais->count() > 1)
|
||||
@foreach ($item->materiais as $i => $material)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
@if (in_array($coluna['key'], ['material_descricao', 'quantidade_solicitada']))
|
||||
<td>{{ $material->{$coluna['key']} }}</td>
|
||||
@elseif ($i === 0)
|
||||
<td rowspan="{{ $item->materiais->count() }}">{{ $item->{$coluna['key']} ?? '-' }}</td>
|
||||
@endif
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
@else
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
@if (in_array($coluna['key'], ['material_descricao', 'quantidade_solicitada']))
|
||||
<td>
|
||||
@foreach ($item->materiais as $material)
|
||||
{{ $material->{$coluna['key']} }}
|
||||
@endforeach
|
||||
</td>
|
||||
@else
|
||||
<td>{{ $item->{$coluna['key']} ?? '-' }}</td>
|
||||
@endif
|
||||
@endforeach
|
||||
</tr>
|
||||
@endif
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th><strong>Total de pacientes: {{ $totalizadores->pacientes }}</strong></th>
|
||||
<th></th>
|
||||
<th><strong>Total de processos: {{ $totalizadores->processos }}</strong></th>
|
||||
<th></th>
|
||||
<th><strong>Total de medicamentos: {{ $totalizadores->medicamentos }}</strong></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
@@ -0,0 +1,97 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Data</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Período de solicitação:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Unidade:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $periodoTipo }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
De {{ $inicio }} até {{ $fim }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $unidade }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Local de atendimento:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Setor:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $infraestrutura }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $setor }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Paciente:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Medicamento:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $paciente }}
|
||||
</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>
|
||||
@@ -0,0 +1,57 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="2">
|
||||
<strong>{{$title}}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Período</strong></td>
|
||||
<td><strong>Unidade</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>De {{$periodo['inicio']}} até {{$periodo['fim']}}</td>
|
||||
<td>{{$unidade}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Local de atendimento</strong></td>
|
||||
<td><strong>Medicamento</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$infraestrutura}}</td>
|
||||
<td>{{$material}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Paciente</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$paciente}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>
|
||||
<strong>{{$coluna['label']}}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($data['itens'] as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>{{$item->{$coluna['key']} ?? '-'}}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,72 @@
|
||||
<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>
|
||||
@@ -0,0 +1,72 @@
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Data inicial</th>
|
||||
<th>Data final</th>
|
||||
<th>Sala de vacinação</th>
|
||||
<th>Vacina</th>
|
||||
<th>Incluir dados de campanha</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ $data_inicial }}</td>
|
||||
<td>{{ $data_final }}</td>
|
||||
<td>{{ $sala_vacinacao }}</td>
|
||||
<td>{{ $vacina }}</td>
|
||||
<td>{{ $dados_campanha }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Sala de vacinação</th>
|
||||
<th>Vacina</th>
|
||||
<th>Doses aplicadas</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($rows as $row)
|
||||
<tr>
|
||||
<td>{{ $row['sala_vacinacao'] }}</td>
|
||||
<td>{{ $row['vacina'] }}</td>
|
||||
<td>{{ $row['doses'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Sala de vacinação</th>
|
||||
<th>Total</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($totais as $row)
|
||||
<tr>
|
||||
<td>{{ $row['sala_vacinacao'] }}</td>
|
||||
<td>{{ $row['doses'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Total</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ $total }}</td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
@@ -0,0 +1,152 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
RELATÓRIO DE APLICAÇÃO
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Período:</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $periodo }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Registro:</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $tipoRegistro }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Sala de vacinação:</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $salaVacinacao }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Dose:</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $dose }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Sexo:</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $sexo }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Unidade:</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $unidade }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Área - Unidade/Microárea:</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $areaMicroarea }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Classificação:</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $classificacao }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Faixa etária incial:</strong>
|
||||
</td>
|
||||
<td>
|
||||
Anos: {{$faixaInicialAnos}}| Meses: {{$faixaInicialMeses}}| Dias: {{$faixaInicialDias}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Faixa etária final:</strong>
|
||||
</td>
|
||||
<td>
|
||||
Anos: {{$faixaFinalAnos}}| Meses: {{$faixaFinalMeses}}| Dias: {{$faixaFinalDias}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Prontuário:</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $prontuario }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="6">
|
||||
TOTAIS
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>Aplicação(s)</strong></th>
|
||||
<th><strong>Atualização(s)</strong></th>
|
||||
<th><strong>Paciente(s)</strong></th>
|
||||
<th><strong>Unidade(s) do(s) paciente(s)</strong></th>
|
||||
<th><strong>Sala(s) de vacinação</strong></th>
|
||||
<th><strong>Vacina(s)</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ $totalizadores['aplicacao'] }}</td>
|
||||
<td>{{ $totalizadores['atualizacao'] }}</td>
|
||||
<td>{{ $totalizadores['paciente'] }}</td>
|
||||
<td>{{ $totalizadores['unidade'] }}</td>
|
||||
<td>{{ $totalizadores['sala'] }}</td>
|
||||
<td>{{ $totalizadores['vacina'] }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($items as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>{{ $item->{$coluna['key']} ?? '-' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,89 @@
|
||||
<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>Idade de</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Idade até</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $infraestrutura }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $idadeDe }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $idadeAte }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Vacina</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $vacina }}
|
||||
</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>
|
||||
@@ -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>
|
||||
@@ -0,0 +1,144 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ count($params['columns']) }}">
|
||||
RELATÓRIO DE SOLICITAÇÕES
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Período de:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Até:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Usuário:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Unidade:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['periodo']['start'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['periodo']['end'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['usuario_solicitante'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['unidade_label'] }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Local de atendimento:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Grupo:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Subgrupo:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['infraestrutura_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['grupo_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['subgrupo_label'] }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Serviço:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Status:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Prioridade:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['servico_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['status_label'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['prioridade_label'] }}
|
||||
</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 ($solicitacoes['solicitacoes'] as $solicitacao)
|
||||
<tr>
|
||||
@foreach($params['columns'] as $coluna)
|
||||
@if ($coluna['key'] !== 'todas')
|
||||
<td>{{ $solicitacao[$coluna['key']] ?? '' }}</td>
|
||||
@endif
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Total de solicitações:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>{{ $solicitacoes['total_geral'] }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Total em aberto</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>{{ $solicitacoes['solicitacoes_status']['aberto'] }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Total cancelado:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>{{ $solicitacoes['solicitacoes_status']['cancelado'] }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Total finalizado:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>{{ $solicitacoes['solicitacoes_status']['finalizado'] }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Totao reaberto:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>{{ $solicitacoes['solicitacoes_status']['reaberto'] }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,43 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="4">
|
||||
<strong>{{$title}}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Tipo</strong></td>
|
||||
<td><strong>Grupo</strong></td>
|
||||
<td><strong>Valor Sitap</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$tipo}}</td>
|
||||
<td>{{$grupo}}</td>
|
||||
<td>{{$valor}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($selectedCols as $col)
|
||||
<th style="border: 1px solid #000; padding: 4px;" class="{{ $col['class'] ?? '' }}">
|
||||
<strong>{{ $col['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($dados['itens'] as $item)
|
||||
<tr>
|
||||
@foreach ($selectedCols as $col)
|
||||
<td style="border: 1px solid #000; padding: 4px;" class="{{ $col['class'] ?? '' }}">
|
||||
{{ $item->{$col['key']} }}
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,97 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Unidade:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Local de atendimento:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $unidade_nome_fantasia }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $infraestrutura_nome }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Setor:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Grupo:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $setor_nome }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $grupo_nome }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Subgrupo:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Material:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $subgrupo_nome }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $material_descricao }}
|
||||
</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)
|
||||
@if (in_array($coluna['key'], ['lote', 'validade_lote', 'quantidade']))
|
||||
<td>
|
||||
@foreach ($item->lotes as $lote)
|
||||
{{ $lote->{$coluna['key']} }}<br/>
|
||||
@endforeach
|
||||
</td>
|
||||
@else
|
||||
<td>{{ $item->{$coluna['key']} ?? '-' }}</td>
|
||||
@endif
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,333 @@
|
||||
<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['dia_semana_descricao'] }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Unidade:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Local de atendimento:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Classificação de risco:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['unidade'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['local_atendimento'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['classificacao_risco'] }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Desfecho:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>CBO:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Profissional:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Status:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['desfecho'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['ocupacao'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['profissional'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['status_descricao'] }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Cid:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Idade de:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Até:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Paciente:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Prontuário:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['cid'] }}
|
||||
</td>
|
||||
<td>
|
||||
@empty($params['idade_de'])
|
||||
Todas
|
||||
@endempty
|
||||
{{ $params['idade_de'] }}
|
||||
</td>
|
||||
<td>
|
||||
@empty($params['idade_ate'])
|
||||
Todas
|
||||
@endempty
|
||||
{{ $params['idade_ate'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['paciente'] }}
|
||||
</td>
|
||||
<td>
|
||||
@empty($params['prontuario'])
|
||||
Todos
|
||||
@endempty
|
||||
{{ $params['prontuario'] }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Sexo:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Classificação do paciente:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Unidade de referência:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>FAA:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Câncer:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['sexo'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['classificacao_paciente'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['unidade_referencia'] }}
|
||||
</td>
|
||||
<td>
|
||||
@empty($params['faa'])
|
||||
Todas
|
||||
@endempty
|
||||
{{ $params['faa'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['fator_risco_cancer_text'] }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Diabetes:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Etilismo:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Gestante:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Hipertensão:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Obesidade:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Radioterapia:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Tabagismo:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Outro:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['fator_risco_diabetes_text'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['fator_risco_etilismo_text'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['fator_risco_gestante_text'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['fator_risco_hipertensao_text'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['fator_risco_obesidade_text'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['fator_risco_radioterapia_text'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['fator_risco_tabagismo_text'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['fator_risco_outro_text'] }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Perfil sanguíneo alterado:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Uso de medicamentos antineoplásicos ou imunossupressores:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['fator_risco_perfil_sanguineo_alterado_text'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['fator_risco_uso_medicamentos_antineoplasicos_imunossupressores_text'] }}
|
||||
</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'] === 'procedimentos')
|
||||
<td>
|
||||
@foreach($atendimento[$coluna['key']] as $procedimento)
|
||||
<div>{{ $procedimento }}</div>
|
||||
@endforeach
|
||||
</td>
|
||||
@elseif ($coluna['key'] === 'cids')
|
||||
<td>
|
||||
@foreach($atendimento[$coluna['key']] as $cid)
|
||||
<div>{{ $cid }}</div>
|
||||
@endforeach
|
||||
</td>
|
||||
@elseif ($coluna['key'] === 'cids_codigo')
|
||||
<td>
|
||||
@foreach($atendimento[$coluna['key']] as $cids_codigo)
|
||||
{{ $cids_codigo }}
|
||||
@endforeach
|
||||
</td>
|
||||
@elseif($coluna['key'] === 'atendido_em')
|
||||
<td>{{ date('d/m/Y H:i', strtotime($atendimento[$coluna['key']])) }}</td>
|
||||
@else
|
||||
<td>{{ $atendimento[$coluna['key']] }}</td>
|
||||
@endif
|
||||
|
||||
@endif
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
<tr>
|
||||
<td colspan="{{ count($params['columns']) - 1 }}" style="text-align:right">
|
||||
Total de atendimentos realizados:
|
||||
</td>
|
||||
<td>
|
||||
{{ $atendimentos['total_atendimentos'] }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="{{ count($params['columns']) - 1 }}" style="text-align:right">
|
||||
Total de pacientes:
|
||||
</td>
|
||||
<td>
|
||||
{{ $atendimentos['total_pacientes'] }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="{{ count($params['columns']) - 1 }}" style="text-align:right">
|
||||
Total de evasões:
|
||||
</td>
|
||||
<td>
|
||||
{{ $atendimentos['total_evasao'] }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="{{ count($params['columns']) - 1 }}" style="text-align:right">
|
||||
Total de registros de atendimentos (FAA):
|
||||
</td>
|
||||
<td>
|
||||
{{ $atendimentos['total_faa'] }}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,75 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ count($params['columns']) }}">
|
||||
RELATÓRIO DE CLASSIFICAÇÃO DE RISCO
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Período de:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Até: </strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Classificação de risco:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['periodo']['date']['start'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['periodo']['date']['end'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['classificacao_risco'] }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Unidade:</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<strong>Local de atendimento:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['unidade'] }}
|
||||
</td>
|
||||
<td colspan="2">
|
||||
{{ $params['local_atendimento'] }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach($params['columns'] as $coluna)
|
||||
<th><strong>{{ $coluna['label'] }}</strong></th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($classificacoes_risco['classificacoes_risco'] as $classificacaoRisco)
|
||||
<tr>
|
||||
@foreach($params['columns'] as $coluna)
|
||||
<td>{{ $classificacaoRisco[$coluna['key']] }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
<tr>
|
||||
<td colspan="{{ count($params['columns']) - 1 }}" style="text-align: right">
|
||||
<strong>Total Geral</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $classificacoes_risco['total_geral'] }}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,77 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
RELATÓRIO DE DOCUMENTOS NÃO ASSINADOS
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Período:</strong>
|
||||
</td>
|
||||
|
||||
<td colspan="2">
|
||||
<strong>Unidade:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
De {{ $inicio }} até {{ $fim }}
|
||||
</td>
|
||||
|
||||
<td colspan="2">
|
||||
{{ $unidade }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Local de atendimento:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Profissional:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Tipo:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $infraestrutura }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $profissional }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $tipo }}
|
||||
</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>
|
||||
@@ -0,0 +1,144 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ count($colunas) }}">
|
||||
RELATÓRIO DE EXAME DE IMAGEM
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Data inicial:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Data final:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Horário Inicial:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Horário final:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['data_inicial'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['data_final'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['horario_inicial'] ? $params['horario_inicial'] : 'Não informado' }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['horario_final'] ? $params['horario_final'] : 'Não informado' }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Unidade:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Local de atendimento:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['unidade'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['infraestrutura'] }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>CBO do profissional solicitante:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Profissional solicitante:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>CBO do profissional executante:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Profissional executante:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['ocupacao_solicitante'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['usuario_solicitante'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['ocupacao_executante'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['usuario_executante'] }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Exame:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Status:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Encaminhado:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['exame'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['status_nome'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['encaminhado_text'] }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Paciente:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Prontuário:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['paciente'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['prontuario'] ? $params['prontuario'] : 'Não informado' }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach($colunas as $coluna)
|
||||
<th><strong>{{ $coluna['label'] }}</strong></th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($itens['atendimentos'] as $item)
|
||||
<tr>
|
||||
@foreach($colunas as $coluna)
|
||||
<td>{{ $item->{$coluna['key']} ?? '-' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() }}">Quantidade total de procedimentos:</th>
|
||||
<th>{{ $itens['totalizadores']['total'] }}</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
@@ -0,0 +1,98 @@
|
||||
@php
|
||||
use App\Enums\ProntoAtendimento\Atendimento\MetodoProducao;
|
||||
@endphp
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ count($params['columns']) }}">
|
||||
RELATÓRIO DE PRODUÇÃO DO MÉDICO
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Período de:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Até: </strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Unidade:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Local de atendimento:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['periodo']['start'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['periodo']['end'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['unidade'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['local_atendimento'] }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Método:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Médico:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Origem de entrada:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Status:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ MetodoProducao::getConstantName($params['metodo_producao']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['nome_medico'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['nome_origem_entrada'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['nome_status'] }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach($params['columns'] as $coluna)
|
||||
<th>{{ $coluna['label'] }}</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($atendimentos['atendimentos'] as $atendimento)
|
||||
<tr>
|
||||
@foreach($params['columns'] as $coluna)
|
||||
<td>{{ get_object_vars($atendimento)[$coluna['key']] }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
<tr>
|
||||
<td colspan="{{ count($params['columns']) - 1 }}" style="text-align:right">
|
||||
Total
|
||||
</td>
|
||||
<td>
|
||||
{{ $atendimentos['quantidade_total'] }}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -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>
|
||||
@@ -0,0 +1,85 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ count($params['columns']) }}">
|
||||
RELATÓRIO DE PLANTÃO
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Período de:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Até: </strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['periodo']['date']['start'] }}
|
||||
|
||||
@if (!empty($params['periodo']['time']['start']))
|
||||
as {{ $params['periodo']['time']['start'] }}
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['periodo']['date']['end'] }}
|
||||
|
||||
@if (!empty($params['periodo']['time']['end']))
|
||||
as {{ $params['periodo']['time']['end'] }}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Unidade:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Local de atendimento:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['unidade'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['local_atendimento'] }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Especialidade:</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Profissional:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $params['especialidade'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $params['profissional'] }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach($params['columns'] as $coluna)
|
||||
<th>{{ $coluna['label'] }}</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($plantoes as $plantao)
|
||||
<tr>
|
||||
@foreach($params['columns'] as $coluna)
|
||||
<td>{{ $plantao[$coluna['key']] }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,64 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="@if($tipo_inconsistencia === 'Procedimento') 9 @else 7 @endif">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Competência</strong></td>
|
||||
<td><strong>Tipo de inconsistência</strong></td>
|
||||
<td><strong>Unidade</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$competencia}}</td>
|
||||
<td>{{$tipo_inconsistencia}}</td>
|
||||
<td>{{$unidade}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Data de admissão</th>
|
||||
<th>Data de conclusão</th>
|
||||
<th>Unidade</th>
|
||||
<th>Nome do paciente</th>
|
||||
<th>CNS do paciente</th>
|
||||
|
||||
@if($tipo_inconsistencia === 'Procedimento')
|
||||
<th>Tipo de RAAS</th>
|
||||
<th>Procedimento</th>
|
||||
@endif
|
||||
|
||||
<th>CID</th>
|
||||
<th>Inconsistências</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach($data['itens'] as $item)
|
||||
<tr>
|
||||
<td>{{$item['data_admissao']}}</td>
|
||||
<td>{{$item['data_conclusao']}}</td>
|
||||
<td>{{$item['unidade_nome_fantasia']}}</td>
|
||||
<td>{{$item['paciente_nome']}}</td>
|
||||
<td>{{$item['paciente_cns']}}</td>
|
||||
|
||||
@if($tipo_inconsistencia === 'Procedimento')
|
||||
<td>{{$item['registro_nome']}}</td>
|
||||
<td>{{$item['procedimento']}}</td>
|
||||
@endif
|
||||
|
||||
<td>{{$item['cid']}}</td>
|
||||
|
||||
<td>
|
||||
@foreach($item['inconsistencias'] as $inconsistencia)
|
||||
<div>{{$inconsistencia->inconsistencia_descricao}}</div>
|
||||
@endforeach
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
259
api/resources/views/exportacoes/regulacao/fila.blade.php
Normal file
259
api/resources/views/exportacoes/regulacao/fila.blade.php
Normal file
@@ -0,0 +1,259 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>FILA</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Período</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Período movimentação</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Paciente</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
@if($inicio)De {{ $inicio }}@endif @if($fim)até {{ $fim }}@endif
|
||||
</td>
|
||||
|
||||
<td>
|
||||
@if($movimentacaoInicio)De {{ $movimentacaoInicio }}@endif @if($movimentacaoFim)até {{ $movimentacaoFim }}@endif
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $paciente }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Idade de</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Idade até</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Unidade reguladora</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Local de atendimento regulador</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Unidade solicitante</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $idadeDe }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $idadeAte }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $unidadesReguladorasLabel }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $reguladoresLabel }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $unidadesSolicitantesLabel }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Local de atendimento solicitante</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Unidade referência</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Profissional solicitante</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $infraestruturasSolicitantesLabel }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $unidadesReferenciasLabel }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $usuariosSolicitantesLabel }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Prestador</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Status</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Retirada de protocolo</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Grupo</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $prestadoresLabel }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $statusLabel }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $opcoesRetiradasProtocoloAgendamentoLabel }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $gruposLabel }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Exame solicitado</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Procedimento cirúrgico solicitado</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Especialidade solicitada</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $examesLabel }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $procedimentosCirurgicosLabel }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $especialidadesLabel }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Prioridade</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>CID</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>CIAP</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $prioridadesLabel }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $cid }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $ciap }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Sexo</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Protocolo / OCI</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Etapa do protocolo / OCI</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $sexosLabel }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $ocisLabel }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $etapasClinicasLabel }}
|
||||
</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>
|
||||
@if($coluna['key'] === 'itens')
|
||||
@foreach ($item->{$coluna['key']} as $procedimento)
|
||||
{{ $procedimento }}
|
||||
@endforeach
|
||||
@elseif($coluna['key'] === 'paciente')
|
||||
{{ $item->paciente_nome }}
|
||||
@else
|
||||
{{ $item->{$coluna['key']} }}
|
||||
@endif
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,272 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>RELATÓRIO DE SOLICITAÇÕES</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Período</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Período movimentação</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Paciente</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
@if($inicio)De {{ $inicio }}@endif @if($fim)até {{ $fim }}@endif
|
||||
</td>
|
||||
|
||||
<td>
|
||||
@if($movimentacaoInicio)De {{ $movimentacaoInicio }}@endif @if($movimentacaoFim)até {{ $movimentacaoFim }}@endif
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $paciente }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Idade de</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Idade até</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Unidade(s) reguladora(s)</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Local(is) de atendimento regulador(es)</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Unidade(s) solicitante(s)</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $idadeDe }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $idadeAte }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $unidadesReguladorasLabel }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $reguladoresLabel }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $unidadesSolicitantesLabel }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Local(is) de atendimento solicitante(s)</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Unidade(s) referência(s)</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Profissional(is) solicitante(s)</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $infraestruturasSolicitantesLabel }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $unidadesReferenciasLabel }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $usuariosSolicitantesLabel }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Prestador(es)</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Status</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Retirada(s) de protocolo(s)</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Grupo(s)</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $prestadoresLabel }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $statusLabel }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $opcoesRetiradasProtocoloAgendamentoLabel }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $gruposLabel }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Exame(s) solicitado(s)</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Procedimento(s) cirúrgico(s) solicitado(s)</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Especialidade(s) solicitada(s)</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $examesLabel }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $procedimentosCirurgicosLabel }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $especialidadesLabel }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Prioridade(s)</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>CID</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>CIAP</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $prioridadesLabel }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $cid }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $ciap }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Sexo(s)</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Protocolo(s) / OCI</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Etapa(s) do(s) protocolo(s) / OCI</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $sexosLabel }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $ocisLabel }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $etapasClinicasLabel }}
|
||||
</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>
|
||||
@if($coluna['key'] === 'itens')
|
||||
@foreach ($item->{$coluna['key']} as $procedimento)
|
||||
{{ $procedimento }}
|
||||
@endforeach
|
||||
@else
|
||||
{{ $item->{$coluna['key']} }}
|
||||
@endif
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
<tr>
|
||||
<td><strong>Total de solicitações: {{ $totalizadores->solicitacoes }}</strong></td>
|
||||
<td><strong>Total de pacientes: {{ $totalizadores->pacientes }}</strong></td>
|
||||
<td><strong>Total de locais de atendimento solicitantes: {{ $totalizadores->infraestruturas_solicitantes }}</strong></td>
|
||||
<td><strong>Total de prestadores: {{ $totalizadores->prestadores }}</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Total por status:</strong></td>
|
||||
|
||||
@foreach ($totalizadores->por_status as $i => $status)
|
||||
<td><strong>{{ $status->nome }}: {{ $status->quantidade }}</strong></td>
|
||||
@endforeach
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,88 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Período:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Município:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ \Illuminate\Support\Carbon::parse($periodo['start'])->format('d/m/Y') }} à {{ \Illuminate\Support\Carbon::parse($periodo['end'])->format('d/m/Y') }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $municipio }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Destino:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Horário:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Paciente:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $destino }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $horario }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $paciente }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($items as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>{{ $item->{$coluna['key']} ?? '-' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() - 1 }}">
|
||||
<b>Total</b>
|
||||
</th>
|
||||
<th>
|
||||
<strong>{{ $total }}</strong>
|
||||
</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
@@ -0,0 +1,199 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Data inicial:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Data final:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Motorista</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Município:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Destino:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Status</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Veículo:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Motivo:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Prontuário</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $data_inicial }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $data_final }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $motorista }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $municipio }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $destino }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $status }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $veiculo }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $motivo }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $prontuario }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($items as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>{{ $item->{$coluna['key']} ?? '-' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<strong>Motorista</strong>
|
||||
</th>
|
||||
|
||||
<th>
|
||||
<strong>Total de viagens</strong>
|
||||
</th>
|
||||
|
||||
<th>
|
||||
<strong>Total de passageiros</strong>
|
||||
</th>
|
||||
|
||||
<th>
|
||||
<strong>Total de diárias</strong>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($motoristas as $total_motorista)
|
||||
<tr>
|
||||
<td>{{ $total_motorista['motorista'] }}</td>
|
||||
|
||||
<td>{{ $total_motorista['viagens'] }}</td>
|
||||
|
||||
<td>{{ $total_motorista['passageiros'] }}</td>
|
||||
|
||||
<td>{{ $total_motorista['diarias'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<strong>Total de viagens</strong>
|
||||
</th>
|
||||
|
||||
<td>
|
||||
<strong>Total de diarias</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Total de pacientes</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Total de acompanhantes</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Total de passageiros</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>% total de acompanhantes</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
{{ $total['viagens'] }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $total['diarias'] }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $total['pacientes'] }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $total['acompanhantes'] }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $total['passageiros'] }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $total['porcentagem'] }}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,93 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Status</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Data</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Veículo</strong>
|
||||
</td>
|
||||
|
||||
@if ($jornada)
|
||||
<td colspan="3">
|
||||
<strong>Jornada</strong>
|
||||
</td>
|
||||
@else
|
||||
<td>
|
||||
<strong>Município</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Bairro</strong>
|
||||
</td>
|
||||
@endif
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $status }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $data }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $veiculo }}
|
||||
</td>
|
||||
|
||||
@if ($jornada)
|
||||
<td colspan="3">
|
||||
{{ $jornada }}
|
||||
</td>
|
||||
@else
|
||||
<td>
|
||||
{{ $municipio }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $bairro }}
|
||||
</td>
|
||||
@endif
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($items as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>{{ $item->{$coluna['key']} ?? '-' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Total de passageiros: {{ $total}} </strong>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -0,0 +1,114 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Data inicial</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Data final</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Veículo</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Motorista</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Destino</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $data_inicial }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $data_final }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $veiculo }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $motorista }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $destino }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="table table-relatorio">
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($items as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td class="{{ $coluna['class'] }}">
|
||||
@if ($coluna['isCurrency'] == 'true')
|
||||
{{ 'R$ ' . number_format(floatval($item->{$coluna['key']}), 2, ',', '.') }}
|
||||
@else
|
||||
{{ $item->{$coluna['key']} ?? '-' }}
|
||||
@endif
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
<tfoot>
|
||||
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() / 3 }}">
|
||||
<b>Total diária(s):</b>
|
||||
<strong>{{ 'R$ ' . number_format(floatval($total_diaria), 2, ',', '.') }}</strong>
|
||||
</th>
|
||||
<th colspan="{{ $colunas->count() / 3 }}">
|
||||
<b>Total refeição(s):</b>
|
||||
<strong>{{ 'R$ ' . number_format(floatval($total_refeicao), 2, ',', '.') }}</strong>
|
||||
</th>
|
||||
<th colspan="{{ $colunas->count() % 3 == 0 ? $colunas->count() / 3 : $colunas->count() + 1 }}">
|
||||
<b>Total pernoite(s):</b>
|
||||
<strong>{{ 'R$ ' . number_format(floatval($total_pernoite), 2, ',', '.') }}</strong>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() / 3 }}">
|
||||
<b>Total pedágio(s):</b>
|
||||
<strong>{{ 'R$ ' . number_format(floatval($total_pedagio), 2, ',', '.') }}</strong>
|
||||
</th>
|
||||
<th colspan="{{ $colunas->count() / 3 }}">
|
||||
<b>Total combustível(s):</b>
|
||||
<strong>{{ 'R$ ' . number_format(floatval($total_combustivel), 2, ',', '.') }}</strong>
|
||||
</th>
|
||||
<th colspan="{{ $colunas->count() % 3 == 0 ? $colunas->count() / 3 : $colunas->count() + 1 }}">
|
||||
<b>Total outra(s) despesa(s):</b>
|
||||
<strong>{{ 'R$ ' . number_format(floatval($total_outras_despesas), 2, ',', '.') }}</strong>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() }}">
|
||||
<b>Total KM percorrido:</b>
|
||||
<strong>{{ $total_km_percorrido }}</strong>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() }}">
|
||||
<b>Total despesa(s):</b>
|
||||
<strong>{{ 'R$ ' . number_format(floatval($total_despesa), 2, ',', '.') }}</strong>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
@@ -0,0 +1,87 @@
|
||||
<table class="table table-relatorio">
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count()}}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td style="height:20px;"></td></tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Período:</strong></td>
|
||||
<td><strong>Veículo:</strong></td>
|
||||
<td><strong>Cidade de Destino:</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>De {{ $inicio }} até {{ $fim }}</td>
|
||||
<td>{{ $veiculo }}</td>
|
||||
<td>{{ $municipio }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Local de Destino:</strong></td>
|
||||
<td><strong>Motivo:</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $destino }}</td>
|
||||
<td>{{ $motivo }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="table table-relatorio">
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($items as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>{{ $item->{$coluna['key']} ?? '-' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
<tfoot>
|
||||
<tr><td colspan="2"></td></tr>
|
||||
<tr>
|
||||
<td style="text-align:left">
|
||||
<strong>
|
||||
Total de paciente(s): {{ $total_paciente }}
|
||||
</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:left">
|
||||
<strong>
|
||||
Total de acompanhante(s): {{ $total_acompanhantes }}
|
||||
</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:left">
|
||||
<strong>
|
||||
Total de paciente(s) e acompanhante(s): {{ $total_paciente_acompanhante }}
|
||||
</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
<style>
|
||||
body {font-family: Helvetica, arial, sans-serif;}
|
||||
table {margin-bottom: 15px; clear: both;}
|
||||
p {margin:0; padding: 0;}
|
||||
.background-white { background: #fff!important}
|
||||
table.report-container {page-break-after: always;}
|
||||
.table-relatorio > thead > tr > th,
|
||||
.table-relatorio > tfoot > tr > th { text-align: center; }
|
||||
.col-min { width: 1%; }
|
||||
.text-center { text-align: center!important; }
|
||||
</style>
|
||||
@@ -0,0 +1,124 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() + 1 }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Data inicial:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Data final:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Motorista:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Status:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $data_inicial }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $data_final }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $filtro_motorista }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $filtro_status }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
@foreach ($motorista as $motorista)
|
||||
<table class="table table-relatorio">
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() }}" style="white-space: nowrap; text-align: center">
|
||||
Motorista: {{ $motorista['nome'] }}
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
|
||||
@foreach ($consulta as $val)
|
||||
@if ($val['motorista_id'] == $motorista['id'])
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td class="{{ $coluna['class'] }}">{{ $val[$coluna['key']] ?? '0' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Totais:</strong>
|
||||
</td>
|
||||
@php $total_geral = 0; @endphp
|
||||
@foreach ($meses as $mes)
|
||||
@php $total_mes = 0; @endphp
|
||||
@foreach ($consulta as $val)
|
||||
@if ($val['motorista_id'] == $motorista['id'])
|
||||
@foreach ($colunas as $coluna)
|
||||
@if($coluna['label'] == $mes['mes_abreviado'] && $val[$coluna['key']])
|
||||
@php $total_mes = $total_mes + $val[$coluna['key']] @endphp
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
@endforeach
|
||||
<td>{{ $total_mes }}</td>
|
||||
@php $total_geral = $total_geral + $total_mes @endphp
|
||||
@endforeach
|
||||
<td>{{ $total_geral }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@endforeach
|
||||
|
||||
@if ($filtro_motorista == 'Todos')
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<strong>Totais</strong>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($meses as $mes)
|
||||
<th>
|
||||
<strong>{{ $mes['mes'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
<th>
|
||||
<strong>Total</strong>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
@foreach ($meses as $mes)
|
||||
<td>{{ $mes['total'] }}</td>
|
||||
@endforeach
|
||||
<td>{{ $total }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
@@ -0,0 +1,93 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="6">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Período</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Município</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Motorista</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Destino</strong>
|
||||
</td>
|
||||
<td>
|
||||
<strong>Status</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $data_inicial }} à {{ $data_final }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $municipio }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $motorista }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $destino }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $status }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($items['consulta'] as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>{{ $item->{$coluna['key']} ?? '-' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th><strong>Agendado(s)</strong></th>
|
||||
<td>{{ $totalizadores['agendado'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>Cancelado(s)</strong></th>
|
||||
<td>{{ $totalizadores['cancelado'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>Falta(s)</strong></th>
|
||||
<td>{{ $totalizadores['faltou'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>Transportado(s)</strong></th>
|
||||
<td>{{ $totalizadores['transportado'] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>Todos</strong></th>
|
||||
<td>{{ $totalizadores['geral'] }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -0,0 +1,118 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Data inicial:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Data final:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Motivo da viagem:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Cidade de destino:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Local de destino:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Veículo:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Status:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $data_inicial }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $data_final }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $motivo_viagem }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $municipio }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $destino }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $veiculo }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $status }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($items as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>{{ $item->{$coluna['key']} ?? '-' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Total Pacientes</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $total_paciente }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Total Acompanhantes</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $total_acompanhante }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Total Pacientes + Acompanhantes</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ $total_paciente_acompanhante }}
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
@@ -0,0 +1,106 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Data inicial:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Data final:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Veículo:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Status:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $data_inicial }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $data_final }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $filtro_veiculo }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $filtro_status }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($items as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>{{ $item[$coluna['key']] ?? '0' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($veiculos as $veiculo)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>{{ $veiculo[$coluna['key']] ?? '0' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="table table-relatorio ">
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas->splice(2) as $coluna)
|
||||
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
@foreach ($colunasTotal as $coluna)
|
||||
<td>{{ $totais[$coluna['key']] ?? '0' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,80 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Data inicial:</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Data final:</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $data_inicial }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $data_final }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($items as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>{{ $item->{$coluna['key']} ?? '-' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() }}">
|
||||
<strong>Quantidade = paciente + acompanhantes</strong>
|
||||
</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<strong>Total</strong>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
<strong>Quantidade</strong>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>
|
||||
<strong>{{ $total_pacientes_acompanhantes }}</strong>
|
||||
</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user