361 lines
17 KiB
PHP
361 lines
17 KiB
PHP
@extends('impressoes.layout1.content')
|
|
|
|
<meta charset="UTF-8">
|
|
<table class="report-container">
|
|
|
|
<thead class="report-header">
|
|
<tr>
|
|
<th class="report-header-cell">
|
|
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tfoot class="report-footer">
|
|
<tr>
|
|
<td class="report-footer-cell">
|
|
|
|
</td>
|
|
</tr>
|
|
</tfoot>
|
|
|
|
<tbody class="report-content">
|
|
|
|
<table class="table-master">
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
<fieldset>
|
|
<legend>IDENTIFICAÇÃO DO PROFISSIONAL</legend>
|
|
|
|
<table class="table">
|
|
|
|
<tr>
|
|
<td>
|
|
<strong>CNS DO PROFISSIONAL:</strong><br />
|
|
{{ $atividade['cadastro']['usuario']['cns'] }}
|
|
</td>
|
|
<td>
|
|
<strong>CBO:</strong><br />
|
|
{{ $atividade['cadastro']['usuario']['cbo'] }}
|
|
</td>
|
|
<td>
|
|
<strong>CNES:</strong><br />
|
|
{{ $atividade['cadastro']['usuario']['cnes'] }}
|
|
</td>
|
|
<td>
|
|
<strong>INE:</strong><br />
|
|
{{ $atividade['cadastro']['numero_ine'] }}
|
|
</td>
|
|
<td>
|
|
<strong>DATA:</strong><br />
|
|
{{ $atividade['cadastro']['data_usuario_responsavel'] }}
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
</fieldset>
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<table class="table-master">
|
|
<tr>
|
|
<td>
|
|
<fieldset>
|
|
|
|
<table class="table col-6 fl">
|
|
<tr>
|
|
<td><strong>TURNO</strong></td>
|
|
<td><strong>PROGRAMA SAÚDE NA ESCOLA</strong></td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
@foreach($atividade['turnos'] as $i => $turno)
|
|
<label>
|
|
<input type="radio" name="turnos" value="" @if($atividade['cadastro']['turno_id'] == $turno['id']) checked @endif>
|
|
{{ ucfirst(mb_strtolower($turno['descricao'])) }}
|
|
</label>
|
|
@endforeach
|
|
</td>
|
|
<td>
|
|
@foreach($atividade['pse'] as $i => $pse)
|
|
<label>
|
|
<input type="radio" name="pse" value="" @if($atividade['pse_id'] == $pse['id']) checked @endif>
|
|
{{ ucfirst(mb_strtolower($pse['descricao'])) }}
|
|
</label>
|
|
@endforeach
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th colspan="3" style="text-align:center"><strong>LOCAL DE ATIVIDADE</strong></th>
|
|
</tr>
|
|
<tr>
|
|
<th><strong>Nº INEP (ESCOLA/CRECHE)</strong></th>
|
|
<th><strong>CNES</strong></th>
|
|
</tr>
|
|
<tr>
|
|
<td>{{ $atividade['cadastro']['inep'] }}</td>
|
|
<td>{{ $atividade['cadastro']['cnes'] }}</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<th colspan="2"><strong>OUTRA LOCALIDADE</strong></th>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">{{ $atividade['cadastro']['local_atividade'] }}</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Nº DE PARTICIPANTES</td>
|
|
<td>Nº DE AVALIAÇÕES ALTERADAS</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{ $atividade['cadastro']['total_participantes'] }}</td>
|
|
<td>{{ $atividade['cadastro']['avaliacoes_alteradas'] }}</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table class="table col-6">
|
|
<tr>
|
|
<td>CNS do Profissional</td>
|
|
<td>CBO</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{ $atividade['profissional']['cns'] }}</td>
|
|
<td>{{ $atividade['profissional']['cbo'] }}</td>
|
|
</tr>
|
|
@foreach($atividade['profissionais'] as $profissional)
|
|
<tr>
|
|
<td>{{ $profissional['cns'] }}</td>
|
|
<td>{{ $profissional['cbo'] }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</table>
|
|
|
|
</fieldset>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table class="table-master">
|
|
<table class="table">
|
|
<tr class="col-6">
|
|
<td>
|
|
<strong>ATIVIDADE (opção única):</strong><br />
|
|
|
|
<ul>
|
|
@foreach($atividade['atividade_tipos'] as $i => $atividade_tipo)
|
|
<li>
|
|
<input type="radio" name="atividade_tipos" value="" @if($atividade['cadastro']['atividade_tipo_id'] == $atividade_tipo['id']) checked @endif>
|
|
{{ $atividade_tipo['id'] }} - {{ ucfirst(mb_strtolower($atividade_tipo['descricao'])) }}
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="col-6">
|
|
<td>
|
|
<strong>TEMAS PARA REUNIÃO (opção múltipla)</strong><br />
|
|
<ul>
|
|
@foreach($atividade['reuniao_temas'] as $reuniao_tema)
|
|
<li>
|
|
<input type="checkbox" name="reuniao_tema" value=""
|
|
@if($atividade['cadastro']['reuniao_temas']->contains($reuniao_tema['id']))
|
|
checked
|
|
@endif
|
|
>
|
|
{{ $reuniao_tema['id'] }} - {{ ucfirst(mb_strtolower($reuniao_tema['descricao'])) }}
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<td>
|
|
<strong>PÚBLICO-ALVO (opção múltipla, obrigatório para atividades 4, 5, 6 e 7)</strong><br />
|
|
<table>
|
|
@php $count = 0 @endphp
|
|
@foreach($atividade['publico_alvo'] as $i => $publico_alvo)
|
|
@if($count % 2 == 0)
|
|
<tr>
|
|
@endif
|
|
<td>
|
|
<input type="checkbox" name="publico_alvo" value=""
|
|
@if($atividade['cadastro']['publico_alvo']->contains($publico_alvo['id']))
|
|
checked
|
|
@endif
|
|
>
|
|
{{ ucfirst(mb_strtolower($publico_alvo['descricao'])) }}
|
|
</td>
|
|
@php $count++ @endphp
|
|
@if(($count % 2 == 0) || ($count == count($atividade['publico_alvo'])))
|
|
</tr>
|
|
@endif
|
|
@endforeach
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
<strong>TEMAS PARA SAÚDE (opção múltipla, obrigatório para atividades 4, 5 e 7)</strong><br />
|
|
<table>
|
|
@php $count = 0 @endphp
|
|
@foreach($atividade['saude_temas'] as $i => $saude_tema)
|
|
@if($count % 2 == 0)
|
|
<tr>
|
|
@endif
|
|
<td>
|
|
<input type="checkbox" name="saude_tema" value=""
|
|
@if($atividade['cadastro']['saude_temas']->contains($saude_tema['id']))
|
|
checked
|
|
@endif
|
|
>
|
|
{{ ucfirst(mb_strtolower($saude_tema['descricao'])) }}
|
|
</td>
|
|
@php $count++ @endphp
|
|
@if(($count % 2 == 0) || ($count == count($atividade['saude_temas'])))
|
|
</tr>
|
|
@endif
|
|
@endforeach
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
<strong>PRATICAS EM SAÚDE (opção única e obrigatório para atividade 6, e múltipla para 5)</strong><br />
|
|
<table>
|
|
@php $count = 0 @endphp
|
|
@foreach($atividade['saude_pratica'] as $i => $saude_pratica)
|
|
@if($count % 2 == 0)
|
|
<tr>
|
|
@endif
|
|
<td>
|
|
<input type="checkbox" name="saude_pratica" value=""
|
|
@if($atividade['cadastro']['saude_pratica']->contains($saude_pratica['id']))
|
|
checked
|
|
@endif
|
|
>
|
|
{{ ucfirst(mb_strtolower($saude_pratica['descricao'])) }}
|
|
@if($saude_pratica['id'] == 30)
|
|
<br />
|
|
Código do SIGTAP: {{ $atividade['cadastro']['codigo_sigtap'] }}
|
|
@endif
|
|
</td>
|
|
@php $count++ @endphp
|
|
@if(($count % 2 == 0) || ($count == count($atividade['saude_pratica'])))
|
|
</tr>
|
|
@endif
|
|
@endforeach
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</table>
|
|
|
|
<table class="table-master">
|
|
|
|
<tr>
|
|
<td>
|
|
<fieldset>
|
|
|
|
<table class="table participantes">
|
|
|
|
<tr>
|
|
<td colspan="6"></td>
|
|
<th colspan="2"><strong>Obrigatório somente para antropometria</strong></th>
|
|
<td colspan="2"></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th rowspan="2"><strong>Nº</strong></th>
|
|
<th rowspan="2"><strong>Nome (Nome social)</strong></th>
|
|
<th rowspan="2"><strong>CNS</strong></th>
|
|
<th rowspan="2"><strong>Data de nascimento</strong></th>
|
|
<th rowspan="2"><strong>Sexo</strong></th>
|
|
<th rowspan="2"><strong>Avaliação alterada</strong></th>
|
|
<th rowspan="2"><strong>Peso (kg)</strong></th>
|
|
<th rowspan="2"><strong>Altura (cm)</strong></th>
|
|
<th colspan="2"><strong>PNCT</strong></th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th><strong>Parou de fumar</strong></th>
|
|
<th><strong>Abandonou o grupo</strong></th>
|
|
</tr>
|
|
|
|
@foreach($atividade['participantes'] as $i => $participante )
|
|
<tr>
|
|
<td>{{ $i + 1 }}</td>
|
|
<td>{{ $participante['nome'] }} @if($participante['nome_social']) ({{ $participante['nome_social'] }}) @endif</td>
|
|
<td>{{ $participante['cns'] }}</td>
|
|
<td>{{ $participante['data_nascimento'] }}</td>
|
|
<td>
|
|
<label>
|
|
<input type="radio" name="sexo" value="" @if($participante['sexo'] == 1) checked @endif>
|
|
M
|
|
</label>
|
|
<label>
|
|
<input type="radio" name="sexo" value="" @if($participante['sexo'] == 2) checked @endif>
|
|
F
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<input type="checkbox" name="avaliacao_alterada" value=""
|
|
@if($participante['avaliacao_alterada'] == true)
|
|
checked
|
|
@endif
|
|
>
|
|
</td>
|
|
<td>{{ $participante['peso'] }}</td>
|
|
<td>{{ $participante['altura'] }}</td>
|
|
<td>
|
|
<input type="checkbox" name="parou_fumar" value=""
|
|
@if($participante['parou_fumar'] == true)
|
|
checked
|
|
@endif
|
|
>
|
|
</td>
|
|
<td>
|
|
<input type="checkbox" name="abandonou_grupo" value=""
|
|
@if($participante['abandonou_grupo'] == true)
|
|
checked
|
|
@endif
|
|
>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
|
|
</table>
|
|
</fieldset>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</tbody>
|
|
</table>
|
|
|
|
<style>
|
|
|
|
body {font-family: Helvetica, arial, sans-serif;}
|
|
h2 {text-align: center}
|
|
p {margin:0; padding: 0;}
|
|
.table-master {border-collapse: collapse!important; display: inline-table;}
|
|
tr {border:0;}
|
|
td { background: #fff!important; white-space: nowrap; vertical-align: top!important;}
|
|
li {list-style-type: none!important;}
|
|
.fl {float: left!important;}
|
|
.brl-0 {border-right: 0px!important; border-left: 0px!important; vertical-align: center!important;}
|
|
.ws-normal {white-space: normal!important; width: 50%!important;}
|
|
.declaracao {white-space: normal!important; border: 0px!important}
|
|
.outrasCondicoes {white-space: normal!important; min-height: 60px;}
|
|
</style> |