@php $before = false; $after = false; @endphp
HBC
gernetic

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