@component('components.impressos.cabecalho')@endcomponent
Santos, {{ today()->format('d/m/Y') }}
ANAMNESE
Nome
{{ $agendavel->nome }}
Data de nasc.
{{ optional($agendavel->data_nascimento)->format('d/m/Y') }}
Pergunta
Sim/Não
Qual?
@foreach ($perguntas as $pergunta) @php $respostaPergunta = $respostas->where('pergunta_anamnese_id', $pergunta->id)->first(); @endphp
{{ $pergunta->descricao }}
@if ($respostaPergunta) X @endif
{{ optional($respostaPergunta)->qual}}
@endforeach
______________________________________
Assinatura do {{ $agendavel->tipoFormatado() }}