Files
Antonio Lopes dos Santos afec302c3e
All checks were successful
build-api-image / build (push) Successful in 51s
init commit
2026-08-04 16:52:02 -03:00

220 lines
8.3 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">
<tr>
<td colspan="4" class="report-content-cell">
<fieldset>
<legend>Dados do Agendamento</legend>
<div class="row">
<div class="col-3">
<strong>Nome:</strong>
</div>
<div class="col-3">
<strong>Data de nascimento:</strong>
</div>
<div class="col-3">
<strong>Idade:</strong>
</div>
<div class="col-3">
<strong>Sexo:</strong>
</div>
</div>
<div class="row">
<div class="col-3">
{{ $atendimentos['form']['paciente']['nome'] }}
@if($atendimentos['form']['paciente']['nomeSocial'])
@if ($atendimentos['form']['paciente']['prefereNomeSocial'])
<strong>({{ $atendimentos['form']['paciente']['nomeSocial'] }})</strong>
@endif
@endif
</div>
<div class="col-3">
{{ $atendimentos['form']['paciente']['data_nascimento'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['paciente']['idade']['anos'] }} ANOS,
{{ $atendimentos['form']['paciente']['idade']['meses'] }} MESES,
{{ $atendimentos['form']['paciente']['idade']['dias'] }} DIAS
</div>
<div class="col-3">
{{ $atendimentos['form']['paciente']['sexo'] }}
</div>
</div>
<div class="row">
<div class="col-3">
<strong>Unidade solicitante:</strong>
</div>
<div class="col-3">
<strong>Nr. Prontuario:</strong>
</div>
<div class="col-3">
<strong>Agendamento:</strong>
</div>
<div class="col-3">
<strong>Telefone:</strong>
</div>
</div>
<div class="row">
<div class="col-3">
{{ $atendimentos['form']['agendamento']['unidade'] }} - {{ $atendimentos['form']['agendamento']['infraestrutura'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['paciente']['prontuario'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['agendamento']['agendamento_numero'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['paciente']['telefone'] }}
</div>
</div>
<div class="row">
<div class="col-3">
<strong>Médico(a) solicitante:</strong>
</div>
<div class="col-3">
<strong>Data da solicitação:</strong>
</div>
<div class="col-3">
<strong>Data da coleta:</strong>
</div>
<div class="col-3">
<strong>Data do laudo:</strong>
</div>
</div>
<div class="row">
<div class="col-3">
{{ $atendimentos['form']['agendamento']['medico'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['agendamento']['data'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['agendamento']['data_coleta'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['agendamento']['data_laudo'] }}
</div>
</div>
</fieldset>
</td>
</tr>
@foreach ($atendimentos['form']['exame']['exames'] as $exame)
<tr>
<td colspan="4" style="text-align: center; font-size:26px; font-weight: 600; padding-top:15px">
{{ $exame['exame_nome'] }}
</td>
</tr>
@foreach ($exame['composicao'] as $agendamento)
<tr style="border-bottom: 1px dashed #999; height:20px; line-height: 20px!important;">
<td class="col-3">
<strong>{{ $agendamento['descricao'] }}</strong>
</td>
<td class="col-3" style="text-align: right; padding-right: 10px">
<strong>{{ $agendamento['resultado'] }}</strong>
</td>
<td class="col-3">
{{ $agendamento['unidade'] }}
@if ($agendamento['variavel']->count() !== 0)
@foreach ($agendamento['variavel'] as $variavel)
@if ($variavel['valor_absoluto']->count() !== 0)
@foreach ($variavel['valor_absoluto'] as $resultado)
{{ $resultado->resultado }}
@endforeach
@endif
@endforeach
@endif
</td>
<td class="col-3">
{{ $agendamento['referencia'] }}
</td>
</tr>
@if (!empty($agendamento['referencia_especial']))
<tr style="border-bottom: 1px dashed #999;">
<td colspan="4">
{!! $agendamento['referencia_especial'] !!}
</td>
</tr>
@endif
@endforeach
<tr style="border-bottom: 1px dashed #999; height:20px; line-height: 20px!important;">
<td colspan="4"></td>
</tr>
<tr style="border-bottom: 1px dashed #999;">
<td colspan="4">
<strong>Observações</strong> {{ $exame['observacao'] }}
</td>
</tr>
@if ($loop->last)
<tr>
<td colspan="3" style="line-height: 150px; text-align:right">
<strong>Revisão:</strong>
</td>
<td style="width:250px">
<img
alt="assinatura"
id="assinatura"
src="data:image/png;base64, {{ $exame['arquivo_assinatura'] }}"
/>
</td>
</tr>
@endif
@endforeach
</tbody>
</table>
<style>
body {font-family: Helvetica, arial, sans-serif; font-size: 12px;}
table {margin-bottom: 15px;}
p {margin:0; padding: 0;}
fieldset {margin-bottom: 0!important;}
.circulo {height:15px; width:15px; border:1px solid #000;}
.background-white { background: #fff!important}
.report-content-cell { background: #fff!important; border: none!important}
table.report-container {page-break-after: always;}
tr {border:0;}
</style>