{{ $survey->Survey_Name }}
{{ $survey->Survey_Description }}
@foreach($questions as $index => $question)
{{ $index + 1 }}
{{ $question['text'] }} @if($question['required'])
*
@endif
@if($question['type'] === 'rating') @php $optionCount = count($question['options'] ?? []); @endphp
@for($score = $optionCount; $score >= 1; $score--) @php $option = $question['options'][$score - 1] ?? null; @endphp @if(!is_null($option))
{{ $option }}
@endif @endfor
กรุณาให้เหตุผล:
เนื่องจากคุณให้คะแนนต่ำกว่าเกณฑ์ที่กำหนด กรุณาแจ้งเหตุผลเพื่อให้เราสามารถปรับปรุงบริการได้ดีขึ้น
*
เหตุผลที่ให้คะแนนต่ำ:
@elseif($question['type'] === 'multiple_choice') @php $optionCount = count($question['options'] ?? []); @endphp
@for($index = $optionCount; $index >= 1; $index--) @php $option = $question['options'][$index - 1] ?? null; @endphp @if(!is_null($option))
{{ $option }}
@endif @endfor
@elseif($question['type'] === 'yes_no' || $question['type'] === 'boolean')
ใช่
ไม่ใช่
@else
@endif @if($question['help_text'])
{{ $question['help_text'] }}
@endif
@endforeach @if($hasSuggestions)
ข้อเสนอแนะเพิ่มเติม
@endif
ส่งคำตอบ