@extends('impressoes.layout1.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 @endif @endforeach
IDENTIFICAÇÃO
Exame / Grupo:
Unidade Solicitante:
{{ $agendamento['exame_grupo_nome'] }}
{{ $atendimentos['form']['unidade_nome'] }} @if (!empty( $atendimentos['form']['infraestrutura_nome'])) - {{ $atendimentos['form']['infraestrutura_nome'] }} @endif
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'] }}
@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
{{ $exame['nome'] }}
@foreach ($exame['composicao'] as $composicao) @if ($composicao['resultado'])
Resultado:
@elseif ($composicao['tipo_resultado_id'] == \App\Enums\Parametrizacao\Exame\ComposicaoTipo::CAIXA_TEXTO)
{{ $composicao['descricao'] }}
@else
@if ($exame['composicao']->count() == 1)
{{ $composicao['descricao'] }}
@else
{{ $composicao['descricao'] }}
@endif
@endif @endforeach
@endif @endforeach