<?php switch($question->answer_type):
    case ('text'): ?>
        <input type="text" name="answers[<?php echo e($question->id); ?>]"
            id="question_<?php echo e($question->id); ?>" class="form-control"
            placeholder="Enter your answer" required>
    <?php break; ?>

    <?php case ('textarea'): ?>
        <textarea name="answers[<?php echo e($question->id); ?>]" id="question_<?php echo e($question->id); ?>" class="form-control" rows="3"
            placeholder="Enter your answer" required></textarea>
    <?php break; ?>

    <?php case ('custom_ui'): ?>
        <?php echo $__env->make('partials.custom_ui', ['question' => $question], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php break; ?>

    <?php case ('select'): ?>
        <?php $options = json_decode($question->options); ?>
        <select name="answers[<?php echo e($question->id); ?>]"
            id="question_<?php echo e($question->id); ?>" class="form-control" required>
            <option value="">Please Select</option>
            <?php $__currentLoopData = $options ?? []; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <option value="<?php echo e($option); ?>"><?php echo e($option); ?></option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
    <?php break; ?>

    <?php case ('number'): ?>
        <input type="number" name="answers[<?php echo e($question->id); ?>]"
            id="question_<?php echo e($question->id); ?>" class="form-control"
            placeholder="Enter a number" required>
    <?php break; ?>

    <?php case ('checkbox'): ?>
        <?php $options = json_decode($question->options, true); ?>
        <?php $__currentLoopData = $options ?? []; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="form-check">
                <input type="checkbox"
                    name="answers[<?php echo e($question->id); ?>][]"
                    value="<?php echo e($option); ?>"
                    id="option_<?php echo e($option); ?>"
                    class="form-check-input">
                <label class="form-check-label"
                    for="option_<?php echo e($option); ?>"><?php echo e($option); ?></label>
            </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <?php break; ?>

    <?php case ('radio'): ?>
        <?php $options = json_decode($question->options); ?>
        <?php $__currentLoopData = $options ?? []; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="form-check">
                <input type="radio"
                    name="answers[<?php echo e($question->id); ?>]"
                    value="<?php echo e($option); ?>"
                    id="option_<?php echo e($option); ?>"
                    class="form-check-input">
                <label class="form-check-label"
                    for="option_<?php echo e($option); ?>"><?php echo e($option); ?></label>
            </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <?php break; ?>

    <?php case ('dropdown'): ?>
        <?php $dropdownOptions = json_decode($question->options); ?>
        <select name="answers[<?php echo e($question->id); ?>]"
            id="dropdown_<?php echo e($question->id); ?>" class="form-control" required>
            <option value="">Please Select</option>
            <?php $__currentLoopData = $dropdownOptions ?? []; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <option value="<?php echo e($option); ?>"><?php echo e($option); ?></option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
    <?php break; ?>

    <?php case ('date'): ?>
        <input type="date" name="answers[<?php echo e($question->id); ?>]"
            id="question_<?php echo e($question->id); ?>" class="form-control" required>
    <?php break; ?>

    <?php case ('file'): ?>
        <div class="form-group">
            <label for="file_input_<?php echo e($question->id); ?>">File input</label>
            <div class="input-group">
                <div class="custom-file">
                    <input type="file" name="answers[<?php echo e($question->id); ?>]"
                        class="custom-file-input" id="file_input_<?php echo e($question->id); ?>" required
                        onchange="updateFileName(this)">
                    <label class="custom-file-label" for="file_input_<?php echo e($question->id); ?>">Choose file</label>
                </div>
                <div class="input-group-append">
                    <span class="input-group-text">Upload</span>
                </div>
            </div>
        </div>
    <?php break; ?>

    <?php default: ?>
        <p>Unknown question type</p>
<?php endswitch; ?>
<?php /**PATH C:\laragon\www\VPS_changes\resources\views/partials/question.blade.php ENDPATH**/ ?>