@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
|
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
@endif
@endforeach
|
|
@endforeach