


<?php $__env->startSection('content'); ?>
<div class="container py-4">
    <!-- Main Header with Right-Aligned Button -->
    <div class="main-header mb-4 d-flex justify-content-between align-items-center">
        <h1 class="h2">Eating Attitudes Test (EAT-26)</h1>
        <button type="button" class="btn btn-sm btn-outline-secondary show-view" data-view="dashboard">
            <i class="bi bi-arrow-left"></i> Back to Dashboard
        </button>
    </div>

    <!-- Instructions Section -->
    <h2 class="h5">Instructions</h2>
    <p>
    This questionnaire consists of 26 statements about eating habits, body image, and self-perception.
    </p>
</div>
<form id="questionForm" onsubmit="submitForm(event)" class="ajax-form forms-sample" method="post" action="<?php echo e(route('mentalHealth.eat26QuestionnaireStore')); ?>" data-redirect="<?php echo e(route('mentalHealth.dashboard')); ?>">     
<!-- Centered Content with Card and Progress Bar --> 
<div class="d-flex justify-content-center min-vh-75 align-items-center">  
    <div class="col-sm-12 col-xl-6">

        <!-- Progress Bar -->
        <div class="progress mb-4">
  <div class="progress-bar bg-primary" id="progress-bar" role="progressbar" style="width: 0%;" 
       aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">0%</div>
</div>
    
<!-- Question 1 -->
<div class="bg-secondary border border-white rounded h-100 p-4 question" data-question="1">
    <h2>Questionnaire</h2>
    <h6 class="mb-4 text-white">I am terrified about being overweight.</h6>
    <input type="hidden" name="question" value="I am terrified about being overweight.">
    
    <?php
       // Define the scores for Question 1 as per your table:
       $scores = [3, 2, 1, 0, 0, 0];
       $labels = ['Always', 'Very Often', 'Often', 'Sometimes', 'Rarely', 'Never'];
    ?>

    <?php $__currentLoopData = $scores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $score): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="question1" id="question1_<?php echo e($index); ?>" value="<?php echo e($score); ?>">
            <label class="form-check-label text-white" for="question1_<?php echo e($index); ?>">
                <?php echo e($labels[$index]); ?>

            </label>
        </div>
        <hr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  

    <!-- Buttons -->
    <div class="d-flex justify-content-between mt-4">
        <button class="btn btn-outline-light" onclick="navigateQuestion(-1, event)" id="prevBtn">Previous</button>
        <button class="btn btn-primary" id="nextBtn" onclick="navigateQuestion(1, event)">Next</button>
    </div>
</div>
 

<!-- Question 2 -->
<div class="bg-secondary border border-white rounded h-100 p-4 question d-none" data-question="2">
    <h2>Questionnaire</h2>
    <h6 class="mb-4 text-white">I avoid eating when I am hungry.</h6>
    <input type="hidden" name="question" value="I avoid eating when I am hungry.">
    <?php
       $scores = [3, 2, 1, 0, 0, 0];
       $labels = ['Always','Very Often','Often','Sometimes','Rarely','Never'];
    ?>
    <?php $__currentLoopData = $scores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $score): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="question2" id="question2_<?php echo e($index); ?>" value="<?php echo e($score); ?>">
            <label class="form-check-label text-white" for="question2_<?php echo e($index); ?>">
                <?php echo e($labels[$index]); ?>

            </label>
        </div>
        <hr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
    <div class="d-flex justify-content-between mt-4">
         <button class="btn btn-outline-light" onclick="navigateQuestion(-1, event)">Previous</button>
         <button class="btn btn-primary" onclick="navigateQuestion(1, event)">Next</button>
    </div>
</div>

<!-- Question 3 -->
<div class="bg-secondary border border-white rounded h-100 p-4 question d-none" data-question="3">
    <h2>Questionnaire</h2>
    <h6 class="mb-4 text-white">I find myself preoccupied with food.</h6>
    <input type="hidden" name="question" value="I find myself preoccupied with food.">
    <?php
       $scores = [3, 2, 1, 0, 0, 0];
       $labels = ['Always','Very Often','Often','Sometimes','Rarely','Never'];
    ?>
    <?php $__currentLoopData = $scores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $score): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="question3" id="question3_<?php echo e($index); ?>" value="<?php echo e($score); ?>">
            <label class="form-check-label text-white" for="question3_<?php echo e($index); ?>">
                <?php echo e($labels[$index]); ?>

            </label>
        </div>
        <hr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
    <div class="d-flex justify-content-between mt-4">
         <button class="btn btn-outline-light" onclick="navigateQuestion(-1, event)">Previous</button>
         <button class="btn btn-primary" onclick="navigateQuestion(1, event)">Next</button>
    </div>
</div>

<!-- Question 4 -->
<div class="bg-secondary border border-white rounded h-100 p-4 question d-none" data-question="4">
    <h2>Questionnaire</h2>
    <h6 class="mb-4 text-white">I have gone on eating binges where I feel that I may not be able to stop.</h6>
    <input type="hidden" name="question" value="I have gone on eating binges where I feel that I may not be able to stop.">
    <?php
       $scores = [3, 2, 1, 0, 0, 0];
       $labels = ['Always','Very Often','Often','Sometimes','Rarely','Never'];
    ?>
    <?php $__currentLoopData = $scores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $score): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="question4" id="question4_<?php echo e($index); ?>" value="<?php echo e($score); ?>">
            <label class="form-check-label text-white" for="question4_<?php echo e($index); ?>">
                <?php echo e($labels[$index]); ?>

            </label>
        </div>
        <hr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
    <div class="d-flex justify-content-between mt-4">
         <button class="btn btn-outline-light" onclick="navigateQuestion(-1, event)">Previous</button>
         <button class="btn btn-primary" onclick="navigateQuestion(1, event)">Next</button>
    </div>
</div>

<!-- Question 5 -->
<div class="bg-secondary border border-white rounded h-100 p-4 question d-none" data-question="5">
    <h2>Questionnaire</h2>
    <h6 class="mb-4 text-white">I cut my food into small pieces.</h6>
    <input type="hidden" name="question" value="I cut my food into small pieces.">
    <?php
       $scores = [3, 2, 1, 0, 0, 0];
       $labels = ['Always','Very Often','Often','Sometimes','Rarely','Never'];
    ?>
    <?php $__currentLoopData = $scores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $score): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="question5" id="question5_<?php echo e($index); ?>" value="<?php echo e($score); ?>">
            <label class="form-check-label text-white" for="question5_<?php echo e($index); ?>">
                <?php echo e($labels[$index]); ?>

            </label>
        </div>
        <hr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
    <div class="d-flex justify-content-between mt-4">
         <button class="btn btn-outline-light" onclick="navigateQuestion(-1, event)">Previous</button>
         <button class="btn btn-primary" onclick="navigateQuestion(1, event)">Next</button>
    </div>
</div>

<!-- Question 6 -->
<div class="bg-secondary border border-white rounded h-100 p-4 question d-none" data-question="6">
    <h2>Questionnaire</h2>
    <h6 class="mb-4 text-white">I am aware of the calorie content of foods that I eat.</h6>
    <input type="hidden" name="question" value="I am aware of the calorie content of foods that I eat.">
    <?php
       $scores = [3, 2, 1, 0, 0, 0];
       $labels = ['Always','Very Often','Often','Sometimes','Rarely','Never'];
    ?>
    <?php $__currentLoopData = $scores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $score): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="question6" id="question6_<?php echo e($index); ?>" value="<?php echo e($score); ?>">
            <label class="form-check-label text-white" for="question6_<?php echo e($index); ?>">
                <?php echo e($labels[$index]); ?>

            </label>
        </div>
        <hr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
    <div class="d-flex justify-content-between mt-4">
         <button class="btn btn-outline-light" onclick="navigateQuestion(-1, event)">Previous</button>
         <button class="btn btn-primary" onclick="navigateQuestion(1, event)">Next</button>
    </div>
</div>

<!-- Question 7 -->
<div class="bg-secondary border border-white rounded h-100 p-4 question d-none" data-question="7">
    <h2>Questionnaire</h2>
    <h6 class="mb-4 text-white">I particularly avoid foods with high carbohydrate content.</h6>
    <input type="hidden" name="question" value="I particularly avoid foods with high carbohydrate content.">
    <?php
       $scores = [3, 2, 1, 0, 0, 0];
       $labels = ['Always','Very Often','Often','Sometimes','Rarely','Never'];
    ?>
    <?php $__currentLoopData = $scores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $score): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="question7" id="question7_<?php echo e($index); ?>" value="<?php echo e($score); ?>">
            <label class="form-check-label text-white" for="question7_<?php echo e($index); ?>">
                <?php echo e($labels[$index]); ?>

            </label>
        </div>
        <hr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
    <div class="d-flex justify-content-between mt-4">
         <button class="btn btn-outline-light" onclick="navigateQuestion(-1, event)">Previous</button>
         <button class="btn btn-primary" onclick="navigateQuestion(1, event)">Next</button>
    </div>
</div>

<!-- Question 8 -->
<div class="bg-secondary border border-white rounded h-100 p-4 question d-none" data-question="8">
    <h2>Questionnaire</h2>
    <h6 class="mb-4 text-white">I feel that others would prefer if I ate more.</h6>
    <input type="hidden" name="question" value="I feel that others would prefer if I ate more.">
    <?php
       $scores = [0, 0, 0, 1, 2, 3];
       $labels = ['Always','Very Often','Often','Sometimes','Rarely','Never'];
    ?>
    <?php $__currentLoopData = $scores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $score): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="question8" id="question8_<?php echo e($index); ?>" value="<?php echo e($score); ?>">
            <label class="form-check-label text-white" for="question8_<?php echo e($index); ?>">
                <?php echo e($labels[$index]); ?>

            </label>
        </div>
        <hr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
    <div class="d-flex justify-content-between mt-4">
         <button class="btn btn-outline-light" onclick="navigateQuestion(-1, event)">Previous</button>
         <button class="btn btn-primary" onclick="navigateQuestion(1, event)">Next</button>
    </div>
</div>

<!-- Question 9 -->
<div class="bg-secondary border border-white rounded h-100 p-4 question d-none" data-question="9">
    <h2>Questionnaire</h2>
    <h6 class="mb-4 text-white">I vomit after I have eaten.</h6>
    <input type="hidden" name="question" value="I vomit after I have eaten.">
    <?php
       $scores = [3, 2, 1, 0, 0, 0];
       $labels = ['Always','Very Often','Often','Sometimes','Rarely','Never'];
    ?>
    <?php $__currentLoopData = $scores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $score): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="question9" id="question9_<?php echo e($index); ?>" value="<?php echo e($score); ?>">
            <label class="form-check-label text-white" for="question9_<?php echo e($index); ?>">
                <?php echo e($labels[$index]); ?>

            </label>
        </div>
        <hr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
    <div class="d-flex justify-content-between mt-4">
         <button class="btn btn-outline-light" onclick="navigateQuestion(-1, event)">Previous</button>
         <button class="btn btn-primary" onclick="navigateQuestion(1, event)">Next</button>
    </div>
</div>

<!-- Question 10 -->
<div class="bg-secondary border border-white rounded h-100 p-4 question d-none" data-question="10">
    <h2>Questionnaire</h2>
    <h6 class="mb-4 text-white">I feel extremely guilty after eating.</h6>
    <input type="hidden" name="question" value="I feel extremely guilty after eating.">
    <?php
       $scores = [3, 2, 1, 0, 0, 0];
       $labels = ['Always','Very Often','Often','Sometimes','Rarely','Never'];
    ?>
    <?php $__currentLoopData = $scores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $score): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="question10" id="question10_<?php echo e($index); ?>" value="<?php echo e($score); ?>">
            <label class="form-check-label text-white" for="question10_<?php echo e($index); ?>">
                <?php echo e($labels[$index]); ?>

            </label>
        </div>
        <hr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
    <div class="d-flex justify-content-between mt-4">
         <button class="btn btn-outline-light" onclick="navigateQuestion(-1, event)">Previous</button>
         <button class="btn btn-primary" onclick="navigateQuestion(1, event)">Next</button>
    </div>
</div>

<!-- Question 11 -->
<div class="bg-secondary border border-white rounded h-100 p-4 question d-none" data-question="11">
    <h2>Questionnaire</h2>
    <h6 class="mb-4 text-white">I am preoccupied with a desire to be thinner.</h6>
    <input type="hidden" name="question" value="I am preoccupied with a desire to be thinner.">
    <?php
       $scores = [3, 2, 1, 0, 0, 0];
       $labels = ['Always','Very Often','Often','Sometimes','Rarely','Never'];
    ?>
    <?php $__currentLoopData = $scores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $score): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="question11" id="question11_<?php echo e($index); ?>" value="<?php echo e($score); ?>">
            <label class="form-check-label text-white" for="question11_<?php echo e($index); ?>">
                <?php echo e($labels[$index]); ?>

            </label>
        </div>
        <hr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
    <div class="d-flex justify-content-between mt-4">
         <button class="btn btn-outline-light" onclick="navigateQuestion(-1, event)">Previous</button>
         <button class="btn btn-primary" onclick="navigateQuestion(1, event)">Next</button>
    </div>
</div>

<!-- Question 12 -->
<div class="bg-secondary border border-white rounded h-100 p-4 question d-none" data-question="12">
    <h2>Questionnaire</h2>
    <h6 class="mb-4 text-white">I think about burning up calories when I exercise.</h6>
    <input type="hidden" name="question" value="I think about burning up calories when I exercise.">
    <?php
       $scores = [3, 2, 1, 0, 0, 0];
       $labels = ['Always','Very Often','Often','Sometimes','Rarely','Never'];
    ?>
    <?php $__currentLoopData = $scores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $score): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="question12" id="question12_<?php echo e($index); ?>" value="<?php echo e($score); ?>">
            <label class="form-check-label text-white" for="question12_<?php echo e($index); ?>">
                <?php echo e($labels[$index]); ?>

            </label>
        </div>
        <hr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
    <div class="d-flex justify-content-between mt-4">
         <button class="btn btn-outline-light" onclick="navigateQuestion(-1, event)">Previous</button>
         <button class="btn btn-primary" onclick="navigateQuestion(1, event)">Next</button>
    </div>
</div>

<!-- Question 13 -->
<div class="bg-secondary border border-white rounded h-100 p-4 question d-none" data-question="13">
    <h2>Questionnaire</h2>
    <h6 class="mb-4 text-white">Other people think I am too thin.</h6>
    <input type="hidden" name="question" value="Other people think I am too thin.">
    <?php
       $scores = [0, 0, 0, 1, 2, 3];
       $labels = ['Always','Very Often','Often','Sometimes','Rarely','Never'];
    ?>
    <?php $__currentLoopData = $scores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $score): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="question13" id="question13_<?php echo e($index); ?>" value="<?php echo e($score); ?>">
            <label class="form-check-label text-white" for="question13_<?php echo e($index); ?>">
                <?php echo e($labels[$index]); ?>

            </label>
        </div>
        <hr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
    <div class="d-flex justify-content-between mt-4">
         <button class="btn btn-outline-light" onclick="navigateQuestion(-1, event)">Previous</button>
         <button class="btn btn-primary" onclick="navigateQuestion(1, event)">Next</button>
    </div>
</div>

<!-- Question 14 -->
<div class="bg-secondary border border-white rounded h-100 p-4 question d-none" data-question="14">
    <h2>Questionnaire</h2>
    <h6 class="mb-4 text-white">I am preoccupied with the thought of having fat on my body.</h6>
    <input type="hidden" name="question" value="I am preoccupied with the thought of having fat on my body.">
    <?php
       $scores = [3, 2, 1, 0, 0, 0];
       $labels = ['Always','Very Often','Often','Sometimes','Rarely','Never'];
    ?>
    <?php $__currentLoopData = $scores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $score): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="question14" id="question14_<?php echo e($index); ?>" value="<?php echo e($score); ?>">
            <label class="form-check-label text-white" for="question14_<?php echo e($index); ?>">
                <?php echo e($labels[$index]); ?>

            </label>
        </div>
        <hr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
    <div class="d-flex justify-content-between mt-4">
         <button class="btn btn-outline-light" onclick="navigateQuestion(-1, event)">Previous</button>
         <button class="btn btn-primary" onclick="navigateQuestion(1, event)">Next</button>
    </div>
</div>

<!-- Question 15 -->
<div class="bg-secondary border border-white rounded h-100 p-4 question d-none" data-question="15">
    <h2>Questionnaire</h2>
    <h6 class="mb-4 text-white">I take longer than others to eat my meals.</h6>
    <input type="hidden" name="question" value="I take longer than others to eat my meals.">
    <?php
       $scores = [3, 2, 1, 0, 0, 0];
       $labels = ['Always','Very Often','Often','Sometimes','Rarely','Never'];
    ?>
    <?php $__currentLoopData = $scores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $score): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="question15" id="question15_<?php echo e($index); ?>" value="<?php echo e($score); ?>">
            <label class="form-check-label text-white" for="question15_<?php echo e($index); ?>">
                <?php echo e($labels[$index]); ?>

            </label>
        </div>
        <hr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
    <div class="d-flex justify-content-between mt-4">
         <button class="btn btn-outline-light" onclick="navigateQuestion(-1, event)">Previous</button>
         <button class="btn btn-primary" onclick="navigateQuestion(1, event)">Next</button>
    </div>
</div>

<!-- Question 16 -->
<div class="bg-secondary border border-white rounded h-100 p-4 question d-none" data-question="16">
    <h2>Questionnaire</h2>
    <h6 class="mb-4 text-white">I avoid foods with sugar in them.</h6>
    <input type="hidden" name="question" value="I avoid foods with sugar in them.">
    <?php
       $scores = [3, 2, 1, 0, 0, 0];
       $labels = ['Always','Very Often','Often','Sometimes','Rarely','Never'];
    ?>
    <?php $__currentLoopData = $scores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $score): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="question16" id="question16_<?php echo e($index); ?>" value="<?php echo e($score); ?>">
            <label class="form-check-label text-white" for="question16_<?php echo e($index); ?>">
                <?php echo e($labels[$index]); ?>

            </label>
        </div>
        <hr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
    <div class="d-flex justify-content-between mt-4">
         <button class="btn btn-outline-light" onclick="navigateQuestion(-1, event)">Previous</button>
         <button class="btn btn-primary" onclick="navigateQuestion(1, event)">Next</button>
    </div>
</div>

<!-- Question 17 -->
<div class="bg-secondary border border-white rounded h-100 p-4 question d-none" data-question="17">
    <h2>Questionnaire</h2>
    <h6 class="mb-4 text-white">I eat diet foods.</h6>
    <input type="hidden" name="question" value="I eat diet foods.">
    <?php
       $scores = [3, 2, 1, 0, 0, 0];
       $labels = ['Always','Very Often','Often','Sometimes','Rarely','Never'];
    ?>
    <?php $__currentLoopData = $scores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $score): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="question17" id="question17_<?php echo e($index); ?>" value="<?php echo e($score); ?>">
            <label class="form-check-label text-white" for="question17_<?php echo e($index); ?>">
                <?php echo e($labels[$index]); ?>

            </label>
        </div>
        <hr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
    <div class="d-flex justify-content-between mt-4">
         <button class="btn btn-outline-light" onclick="navigateQuestion(-1, event)">Previous</button>
         <button class="btn btn-primary" onclick="navigateQuestion(1, event)">Next</button>
    </div>
</div>

<!-- Question 18 -->
<div class="bg-secondary border border-white rounded h-100 p-4 question d-none" data-question="18">
    <h2>Questionnaire</h2>
    <h6 class="mb-4 text-white">I feel that food controls my life.</h6>
    <input type="hidden" name="question" value="I feel that food controls my life.">
    <?php
       $scores = [3, 2, 1, 0, 0, 0];
       $labels = ['Always','Very Often','Often','Sometimes','Rarely','Never'];
    ?>
    <?php $__currentLoopData = $scores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $score): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="question18" id="question18_<?php echo e($index); ?>" value="<?php echo e($score); ?>">
            <label class="form-check-label text-white" for="question18_<?php echo e($index); ?>">
                <?php echo e($labels[$index]); ?>

            </label>
        </div>
        <hr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
    <div class="d-flex justify-content-between mt-4">
         <button class="btn btn-outline-light" onclick="navigateQuestion(-1, event)">Previous</button>
         <button class="btn btn-primary" onclick="navigateQuestion(1, event)">Next</button>
    </div>
</div>

<!-- Question 19 -->
<div class="bg-secondary border border-white rounded h-100 p-4 question d-none" data-question="19">
    <h2>Questionnaire</h2>
    <h6 class="mb-4 text-white">I display self-control around food.</h6>
    <input type="hidden" name="question" value="I display self-control around food.">
    <?php
       $scores = [0, 0, 0, 1, 2, 3];
       $labels = ['Always','Very Often','Often','Sometimes','Rarely','Never'];
    ?>
    <?php $__currentLoopData = $scores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $score): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="question19" id="question19_<?php echo e($index); ?>" value="<?php echo e($score); ?>">
            <label class="form-check-label text-white" for="question19_<?php echo e($index); ?>">
                <?php echo e($labels[$index]); ?>

            </label>
        </div>
        <hr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
    <div class="d-flex justify-content-between mt-4">
         <button class="btn btn-outline-light" onclick="navigateQuestion(-1, event)">Previous</button>
         <button class="btn btn-primary" onclick="navigateQuestion(1, event)">Next</button>
    </div>
</div>

<!-- Question 20 -->
<div class="bg-secondary border border-white rounded h-100 p-4 question d-none" data-question="20">
    <h2>Questionnaire</h2>
    <h6 class="mb-4 text-white">I feel that others pressure me to eat.</h6>
    <input type="hidden" name="question" value="I feel that others pressure me to eat.">
    <?php
       $scores = [0, 0, 0, 1, 2, 3];
       $labels = ['Always','Very Often','Often','Sometimes','Rarely','Never'];
    ?>
    <?php $__currentLoopData = $scores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $score): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="question20" id="question20_<?php echo e($index); ?>" value="<?php echo e($score); ?>">
            <label class="form-check-label text-white" for="question20_<?php echo e($index); ?>">
                <?php echo e($labels[$index]); ?>

            </label>
        </div>
        <hr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
    <div class="d-flex justify-content-between mt-4">
         <button class="btn btn-outline-light" onclick="navigateQuestion(-1, event)">Previous</button>
         <button class="btn btn-primary" onclick="navigateQuestion(1, event)">Next</button>
    </div>
</div>

<!-- Question 21 -->
<div class="bg-secondary border border-white rounded h-100 p-4 question d-none" data-question="21">
    <h2>Questionnaire</h2>
    <h6 class="mb-4 text-white">I give too much time and thought to food.</h6>
    <input type="hidden" name="question" value="I give too much time and thought to food.">
    <?php
       $scores = [3, 2, 1, 0, 0, 0];
       $labels = ['Always','Very Often','Often','Sometimes','Rarely','Never'];
    ?>
    <?php $__currentLoopData = $scores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $score): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="question21" id="question21_<?php echo e($index); ?>" value="<?php echo e($score); ?>">
            <label class="form-check-label text-white" for="question21_<?php echo e($index); ?>">
                <?php echo e($labels[$index]); ?>

            </label>
        </div>
        <hr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
    <div class="d-flex justify-content-between mt-4">
         <button class="btn btn-outline-light" onclick="navigateQuestion(-1, event)">Previous</button>
         <button class="btn btn-primary" onclick="navigateQuestion(1, event)">Next</button>
    </div>
</div>

<!-- Question 22 -->
<div class="bg-secondary border border-white rounded h-100 p-4 question d-none" data-question="22">
    <h2>Questionnaire</h2>
    <h6 class="mb-4 text-white">I feel uncomfortable after eating sweets.</h6>
    <input type="hidden" name="question" value="I feel uncomfortable after eating sweets.">
    <?php
       $scores = [3, 2, 1, 0, 0, 0];
       $labels = ['Always','Very Often','Often','Sometimes','Rarely','Never'];
    ?>
    <?php $__currentLoopData = $scores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $score): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="question22" id="question22_<?php echo e($index); ?>" value="<?php echo e($score); ?>">
            <label class="form-check-label text-white" for="question22_<?php echo e($index); ?>">
                <?php echo e($labels[$index]); ?>

            </label>
        </div>
        <hr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
    <div class="d-flex justify-content-between mt-4">
         <button class="btn btn-outline-light" onclick="navigateQuestion(-1, event)">Previous</button>
         <button class="btn btn-primary" onclick="navigateQuestion(1, event)">Next</button>
    </div>
</div>

<!-- Question 23 -->
<div class="bg-secondary border border-white rounded h-100 p-4 question d-none" data-question="23">
    <h2>Questionnaire</h2>
    <h6 class="mb-4 text-white">I engage in dieting behavior.</h6>
    <input type="hidden" name="question" value="I engage in dieting behavior.">
    <?php
       $scores = [3, 2, 1, 0, 0, 0];
       $labels = ['Always','Very Often','Often','Sometimes','Rarely','Never'];
    ?>
    <?php $__currentLoopData = $scores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $score): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="question23" id="question23_<?php echo e($index); ?>" value="<?php echo e($score); ?>">
            <label class="form-check-label text-white" for="question23_<?php echo e($index); ?>">
                <?php echo e($labels[$index]); ?>

            </label>
        </div>
        <hr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
    <div class="d-flex justify-content-between mt-4">
         <button class="btn btn-outline-light" onclick="navigateQuestion(-1, event)">Previous</button>
         <button class="btn btn-primary" onclick="navigateQuestion(1, event)">Next</button>
    </div>
</div>

<!-- Question 24 -->
<div class="bg-secondary border border-white rounded h-100 p-4 question d-none" data-question="24">
    <h2>Questionnaire</h2>
    <h6 class="mb-4 text-white">I like my stomach to be empty.</h6>
    <input type="hidden" name="question" value="I like my stomach to be empty.">
    <?php
       $scores = [3, 2, 1, 0, 0, 0];
       $labels = ['Always','Very Often','Often','Sometimes','Rarely','Never'];
    ?>
    <?php $__currentLoopData = $scores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $score): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="question24" id="question24_<?php echo e($index); ?>" value="<?php echo e($score); ?>">
            <label class="form-check-label text-white" for="question24_<?php echo e($index); ?>">
                <?php echo e($labels[$index]); ?>

            </label>
        </div>
        <hr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
    <div class="d-flex justify-content-between mt-4">
         <button class="btn btn-outline-light" onclick="navigateQuestion(-1, event)">Previous</button>
         <button class="btn btn-primary" onclick="navigateQuestion(1, event)">Next</button>
    </div>
</div>

<!-- Question 25 -->
<div class="bg-secondary border border-white rounded h-100 p-4 question d-none" data-question="25">
    <h2>Questionnaire</h2>
    <h6 class="mb-4 text-white">I have an urge to vomit after meals.</h6>
    <input type="hidden" name="question" value="I have an urge to vomit after meals.">
    <?php
       $scores = [3, 2, 1, 0, 0, 0];
       $labels = ['Always','Very Often','Often','Sometimes','Rarely','Never'];
    ?>
    <?php $__currentLoopData = $scores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $score): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="question25" id="question25_<?php echo e($index); ?>" value="<?php echo e($score); ?>">
            <label class="form-check-label text-white" for="question25_<?php echo e($index); ?>">
                <?php echo e($labels[$index]); ?>

            </label>
        </div>
        <hr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
    <div class="d-flex justify-content-between mt-4">
         <button class="btn btn-outline-light" onclick="navigateQuestion(-1, event)">Previous</button>
         <button class="btn btn-primary" onclick="navigateQuestion(1, event)">Next</button>
    </div>
</div>

<!-- Question 26 -->
<div class="bg-secondary border border-white rounded h-100 p-4 question d-none" data-question="26">
    <h2>Questionnaire</h2>
    <h6 class="mb-4 text-white">I enjoy trying new rich foods.</h6>
    <input type="hidden" name="question" value="I enjoy trying new rich foods.">
    <?php
       $scores = [0, 0, 0, 1, 2, 3];
       $labels = ['Always','Very Often','Often','Sometimes','Rarely','Never'];
    ?>
    <?php $__currentLoopData = $scores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $score): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="question26" id="question26_<?php echo e($index); ?>" value="<?php echo e($score); ?>">
            <label class="form-check-label text-white" for="question26_<?php echo e($index); ?>">
                <?php echo e($labels[$index]); ?>

            </label>
        </div>
        <hr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  
    <div class="d-flex justify-content-between mt-4">
                <button class="btn btn-outline-light" onclick="navigateQuestion(-1, event)">Previous</button>
                <button class="btn btn-primary" id="nextBtnfinel" onclick="navigateQuestion(1, event)">Next</button>

                <button type="submit" class="btn btn-success d-none" id="submitBtn">Submit</button>
            </div>
</div>




</div>
  
  </div>
  
  </div>
  </div>
  </form>
  <!-- JavaScript for Navigation -->
  
  <?php $__env->stopSection(); ?> 
<?php echo $__env->make('mental.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /var/www/html/resources/views/mental/eating_disorders/eat-26-questionnaire.blade.php ENDPATH**/ ?>