@php $before = false; $after = false; @endphp
Los Arcos Plaza 1 Piso 1 Oficina 103
Email: homebeautycare2021@gmail.com
Telefono: 0980764679
@include('pdfs.evaluation_survey.tables.table_client') @include('pdfs.evaluation_survey.tables.general_health')
{{$survey['name']}}
@foreach ($survey['questions'] as $k => $question) @if(!is_null($question['question_category_id']) && ($question['question_category_id'] ==1)) @php if(!$before) echo "
{$question['question_category']['name']}
"; $before = true; @endphp {{ $question['question']}} @elseif(!is_null($question['question_category_id']) && ($question['question_category_id'] ==2)) @php if(!$after) echo "
{$question['question_category']['name']}
"; $after = true; @endphp {{ $question['question']}} @else
{{$question['question']}}
@endif @if(!is_null($question['question_category_id']) && $question['question_category_id'] == 3 )
@include('pdfs.evaluation_survey.tables.table_tratamiento') @elseif(!is_null($question['question_category_id']) && ($question['question_category_id'] ==1 || $question['question_category_id'] ==2))
@include('pdfs.evaluation_survey.tables.table_after-before') @else
@foreach($question['question_options'] as $question_option) @foreach($answers as $answer) @if($answer['question_option_id'] == $question_option['id'])
@if($question_option['question_option'] != 'str') {{ $question_option['question_option'] }}{{ is_null($answer['answer']) ? '.' : ':'}} @endif @if(!is_null($answer['answer'])) @if($question_option['question_option'] == 'str') @endif {{ $answer['answer']}} @endif
@endif @endforeach @endforeach
@endif @endforeach