Files
rkm-conectasus-ci-sandbox/api/resources/views/impressoes/template/exame-laboratorial/mapa-dia.blade.php
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

193 lines
7.1 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">
@php
$exame_grupo_id = "";
@endphp
@foreach ($atendimentos['form']['agendamentos'] as $agendamento)
@if ($exame_grupo_id <> $agendamento['exame_grupo_id'])
@php
$exame_grupo_id = $agendamento['exame_grupo_id'];
@endphp
<tr>
<td class="report-content-cell">
<fieldset>
<legend>IDENTIFICAÇÃO</legend>
<div class="row">
<div class="col-6">
<strong>Exame / Grupo:</strong>
</div>
<div class="col-6">
<strong>Unidade Solicitante:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $agendamento['exame_grupo_nome'] }}
</div>
<div class="col-6">
{{ $atendimentos['form']['unidade_nome'] }}
@if (!empty( $atendimentos['form']['infraestrutura_nome']))
- {{ $atendimentos['form']['infraestrutura_nome'] }}
@endif
</div>
</div>
</fieldset>
</td>
</tr>
@endif
<tr>
<td>
<table>
<tr>
<th style="text-align: left; border-bottom:1px solid #000; padding:10px; font-weight: 700">
Cód. Agendamento: {{ $agendamento['agendamento_numero'] }} -
Paciente: {{ $agendamento['paciente_nome'] }}
@if (!empty($agendamento['paciente_nome_social']))
({{ $agendamento['paciente_nome_social'] }})
@endif -
Idade: {{ $agendamento['paciente_idade'] }}
</th>
</tr>
<tr>
<td style="padding-top:10px; padding-right: 7px">
@foreach ($agendamento['exames'] as $exame)
@if ($exame['composicao']->count() > 0)
@php
$index = 0;
$width = $exame['composicao']->count() > 6 ? 100 / 6 : 100 / $exame['composicao']->count();
$widthFieldset = $exame['composicao']->count() > 1
|| $exame['composicao'][0]['tipo_resultado_id'] == \App\Enums\Parametrizacao\Exame\ComposicaoTipo::CAIXA_TEXTO
|| $exame['composicao'][0]['resultado']
? 100 : (mb_strlen($exame['nome']) > 16 ? 40 : 20);
@endphp
<div style="float:left; width: {{ $widthFieldset }}%;">
<fieldset style="margin-left:10px">
<legend>{{ $exame['nome'] }}</legend>
<div style="clear: both; margin:0">
@foreach ($exame['composicao'] as $composicao)
@if ($composicao['resultado'])
<div style="clear:both; padding: 5px;">
<div class="row">
<div class="col-6" style="padding:0 5px 0 5px; height: 60px; border:3px dotted #000;"></div>
<div class="col-6" style="padding:0 5px 0 5px; height: 60px; border:3px dotted #000;">
<strong>Resultado:</strong>
</div>
</div>
</div>
@elseif ($composicao['tipo_resultado_id'] == \App\Enums\Parametrizacao\Exame\ComposicaoTipo::CAIXA_TEXTO)
<div style="clear:both; padding: 0 5px;">
<fieldset style="margin:6px 0 0 0; height: 60px">
<legend>{{ $composicao['descricao'] }}</legend>
</fieldset>
</div>
@else
<div style="margin:0; float:left; width: {{ $width }}%">
<div style="padding: 0 5px; margin:0;">
@if ($exame['composicao']->count() == 1)
<div style="height: 40px">{{ $composicao['descricao'] }}</div>
@else
<fieldset style="margin:5px 0 0 0; height: 60px">
<legend>{{ $composicao['descricao'] }}</legend>
</fieldset>
@endif
</div>
</div>
@endif
@endforeach
</div>
</fieldset>
</div>
@endif
@endforeach
</td>
</tr>
</table>
</td>
</tr>
@endforeach
</tbody>
</table>
<style>
body {
font-family: Helvetica, arial, sans-serif;
}
table {
margin-bottom: 15px;
}
legend {
font-size: 14px
}
p {
margin: 0;
padding: 0;
}
.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>