

<?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">Drug Abuse Screening Test (DAST-10)</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>
        The following questions concern information about your possible involvement with drugs not including alcoholic beverages during the past 12 months. "Drug abuse" refers to (1) the use of prescribed or over‐the‐counter drugs in excess of the directions, and (2) any non-medical use of drugs.
The various classes of drugs may include: cannabis (marijuana, hashish), solvents (e.g., paint thinner), tranquilizers (e.g., Valium), barbiturates, cocaine, stimulants (e.g., speed), hallucinogens (e.g., LSD) or narcotics (e.g., heroin). Remember that the questions do not include alcoholic beverages.
Please answer every question. If you have difficulty with a question, then choose the response that is mostly right. These questions refer to the past 12 months only.
        </p>
    </div>
    <form id="questionForm" onsubmit="submitForm(event)" class="ajax-form forms-sample" method="post"
        action="<?php echo e(route('mentalHealth.dastStore')); ?>" 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">
                    <h6 class="mb-4 text-white">Have you used drugs other than those required for medical reasons?</h6>
                    <input type="hidden" name="question" value="Have you used drugs other than those required for medical reasons?">
                
                    <?php for($i = 0; $i <= 1; $i++): ?>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="question1" id="question1_<?php echo e($i); ?>" value="<?php echo e($i); ?>">
                            <label class="form-check-label text-white" for="question1_<?php echo e($i); ?>">
                                <?php echo e(['No', 'Yes'][$i]); ?>

                            </label>
                        </div>
                        <hr>
                    <?php endfor; ?>
                
                    <div class="d-flex justify-content-between mt-4">
                        <button class="btn btn-outline-light d-none" id="prevBtn" onclick="navigateQuestion(-1, event)">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">
                    <h6 class="mb-4 text-white">Do you abuse more than one drug at a time?</h6>
                    <input type="hidden" name="question" value="Do you abuse more than one drug at a time?">
                
                    <?php for($i = 0; $i <= 1; $i++): ?>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="question2" id="question2_<?php echo e($i); ?>" value="<?php echo e($i); ?>">
                            <label class="form-check-label text-white" for="question2_<?php echo e($i); ?>">
                                <?php echo e(['No', 'Yes'][$i]); ?>

                            </label>
                        </div>
                        <hr>
                    <?php endfor; ?>
                
                    <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">
                    <h6 class="mb-4 text-white">Are you always able to stop using drugs when you want to?</h6>
                    <input type="hidden" name="question" value="Are you always able to stop using drugs when you want to?">
                
                    <?php for($i = 0; $i <= 1; $i++): ?>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="question3" id="question3_<?php echo e($i); ?>" value="<?php echo e(1 - $i); ?>">
                            <label class="form-check-label text-white" for="question3_<?php echo e($i); ?>">
                                <?php echo e(['No', 'Yes'][$i]); ?>

                            </label>
                        </div>
                        <hr>
                    <?php endfor; ?>
                
                    <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">
                    <h6 class="mb-4 text-white">Have you had "blackouts" or "flashbacks" as a result of drug use?</h6>
                    <input type="hidden" name="question" value="Have you had 'blackouts' or 'flashbacks' as a result of drug use?">
                
                    <?php for($i = 0; $i <= 1; $i++): ?>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="question4" id="question4_<?php echo e($i); ?>" value="<?php echo e($i); ?>">
                            <label class="form-check-label text-white" for="question4_<?php echo e($i); ?>">
                                <?php echo e(['No', 'Yes'][$i]); ?>

                            </label>
                        </div>
                        <hr>
                    <?php endfor; ?>
                
                    <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">
                    <h6 class="mb-4 text-white">Do you ever feel bad or guilty about your drug use?</h6>
                    <input type="hidden" name="question" value="Do you ever feel bad or guilty about your drug use?">
                
                    <?php for($i = 0; $i <= 1; $i++): ?>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="question5" id="question5_<?php echo e($i); ?>" value="<?php echo e($i); ?>">
                            <label class="form-check-label text-white" for="question5_<?php echo e($i); ?>">
                                <?php echo e(['No', 'Yes'][$i]); ?>

                            </label>
                        </div>
                        <hr>
                    <?php endfor; ?>
                
                    <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">
                    <h6 class="mb-4 text-white">Does your spouse (or parents) ever complain about your involvement with drugs?</h6>
                    <input type="hidden" name="question" value="Does your spouse (or parents) ever complain about your involvement with drugs?">
                
                    <?php for($i = 0; $i <= 1; $i++): ?>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="question6" id="question6_<?php echo e($i); ?>" value="<?php echo e($i); ?>">
                            <label class="form-check-label text-white" for="question6_<?php echo e($i); ?>">
                                <?php echo e(['No', 'Yes'][$i]); ?>

                            </label>
                        </div>
                        <hr>
                    <?php endfor; ?>
                
                    <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">
                    <h6 class="mb-4 text-white">Have you neglected your family because of your use of drugs?</h6>
                    <input type="hidden" name="question" value="Have you neglected your family because of your use of drugs?">
                
                    <?php for($i = 0; $i <= 1; $i++): ?>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="question7" id="question7_<?php echo e($i); ?>" value="<?php echo e($i); ?>">
                            <label class="form-check-label text-white" for="question7_<?php echo e($i); ?>">
                                <?php echo e(['No', 'Yes'][$i]); ?>

                            </label>
                        </div>
                        <hr>
                    <?php endfor; ?>
                
                    <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">
                    <h6 class="mb-4 text-white">Have you engaged in illegal activities in order to obtain drugs?</h6>
                    <input type="hidden" name="question" value="Have you engaged in illegal activities in order to obtain drugs?">
                
                    <?php for($i = 0; $i <= 1; $i++): ?>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="question8" id="question8_<?php echo e($i); ?>" value="<?php echo e($i); ?>">
                            <label class="form-check-label text-white" for="question8_<?php echo e($i); ?>">
                                <?php echo e(['No', 'Yes'][$i]); ?>

                            </label>
                        </div>
                        <hr>
                    <?php endfor; ?>
                
                    <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">
                    <h6 class="mb-4 text-white">Have you ever experienced withdrawal symptoms (felt sick) when you stopped taking drugs?</h6>
                    <input type="hidden" name="question" value="Have you ever experienced withdrawal symptoms (felt sick) when you stopped taking drugs?">
                
                    <?php for($i = 0; $i <= 1; $i++): ?>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="question9" id="question9_<?php echo e($i); ?>" value="<?php echo e($i); ?>">
                            <label class="form-check-label text-white" for="question9_<?php echo e($i); ?>">
                                <?php echo e(['No', 'Yes'][$i]); ?>

                            </label>
                        </div>
                        <hr>
                    <?php endfor; ?>
                
                    <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">
                    <h6 class="mb-4 text-white">Have you had medical problems as a result of your drug use (e.g., memory loss, hepatitis, convulsions, bleeding)?</h6>
                    <input type="hidden" name="question" value="Have you had medical problems as a result of your drug use (e.g., memory loss, hepatitis, convulsions, bleeding)?">
                
                    <?php for($i = 0; $i <= 1; $i++): ?>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="question10" id="question10_<?php echo e($i); ?>" value="<?php echo e($i); ?>">
                            <label class="form-check-label text-white" for="question10_<?php echo e($i); ?>">
                                <?php echo e(['No', 'Yes'][$i]); ?>

                            </label>
                        </div>
                        <hr>
                    <?php endfor; ?>
                
                    <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>
    </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/substance_abuse/dast.blade.php ENDPATH**/ ?>