  <?php
    $authCheck = auth()->check();
    $permission= auth()->user();
?>
 <table class="table table-striped" id="poster_id">
                  <thead>
                    <tr>
                      <th>S.No.</th>
                      <th scope="col">Question</th>
                      <th scope="col">Action</th>
                    </tr>
                  </thead>
                  
                  <tbody>
                    <?php if(isset($questions) && !empty($questions)): ?>
                    <?php $__currentLoopData = $questions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $question): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                          
                            <tr>
                                
                                <!-- <td><?php echo e($key + 1); ?></td> -->
                                <td><?php echo e($questions->firstItem() + $key); ?></td>
                                <td><?php echo e($question->question); ?></td>
                               
                                  <td class="d-flex align-items-center">
                                    
                                    <!-- <button type="button" class="btn btn-sm  text-success me-2" onclick="editFunction(<?php echo e($question->id); ?>)" data-bs-toggle="tooltip" data-bs-placement="top" title="Edit"><i class="fa-solid fa-pen-to-square"></i></button> -->

                                  <button type="button"
                                          class="btn btn-sm text-success me-2"
                                          onclick="editFunction('<?php echo e($question->id); ?>')"
                                          data-bs-toggle="tooltip"
                                          data-bs-placement="top"
                                          title="Edit">
                                      <i class="fa-solid fa-pen-to-square"></i>
                                  </button>

                                    <a class="btn btn-sm text-danger me-2 delete-btn" data-id="<?php echo e($question->id); ?>" data-bs-toggle="tooltip" data-bs-placement="top" title="Delete"><i class="fa-solid fa-trash"></i></a>
                                    
                                  </td>
                            
                            </tr>
                       
                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php endif; ?>
                  </tbody>
                </table>
                <div class="pagination-wrapper mb-4">
                        <?php echo e($questions->links()); ?>

                    </div><?php /**PATH /var/www/html/quikwise-admin/resources/views/admin/sample_questions/ajax.blade.php ENDPATH**/ ?>