
<?php $__env->startPush('style'); ?>
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<?php $__env->stopPush(); ?>
<?php $__env->startSection('content'); ?>
<div class="container">
    <div class="row ">
        <div class="col-md-12">

          <?php if(session()->has('message')): ?>
            <p class="btn btn-success btn-block btn-sm custom_message text-left"><?php echo e(session()->get('message')); ?></p>
          <?php endif; ?>

          <div class="card ">
            <div class="card-header">
                <div class="row">
                    <div class="col-8">
                        <h4 class="card-title">Questions List</h4>
                    </div>
                    <div class="col-4 text-right">
                        <a href="<?php echo e(route('addquestion')); ?>" class="btn btn-sm btn-primary">Add Questions</a>
                    </div>
                </div>
            </div>
            <div class="card-body">
                
                <div class="">
                    <table class="table tablesorter " id="">
                        <thead class=" text-primary">
                            <tr>
                            <th scope="col">No</th>
                            <th scope="col">Question</th>
                            <th scope="col">category Name</th>
                            <th scope="col">Weightage Title</th>
                            <th scope="col">Question Category</th>
                            
                            <th scope="col">ACTION</th>
                        </tr></thead>
                        <tbody>
                         <?php $__empty_1 = true; $__currentLoopData = $questions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ques): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <tr>
                          <td><?php echo e($loop->index + 1); ?></td>
                          <td><?php echo e($ques->question); ?></td>
                          <td><?php echo e($ques->category_name); ?></td>
                          <td><?php echo e($ques->weightage_title); ?></td>
                           <td><?php echo e($ques->question_category); ?></td>
                          <td>
                          <a href="<?php echo e(route('editquestion',$ques->id)); ?>" class="btn btn-sm btn-outline-primary py-0">Edit</a>
                          <!-- <a  href="deletequestion/<?php echo e($ques->id); ?>" class="btn btn-sm btn-outline-danger py-0" onclick="return confirm('Are you sure, you want to delete it?')">Delete</a> -->
                          <a style="margin-left: 10px;" href="deletequestion/<?php echo e($ques->id); ?>" class="btn btn-sm btn-outline-danger py-0 quesdel<?php echo e($ques->id); ?>"  onclick="confirmpage('quesdel<?php echo $ques->id;?>');return false;">Delete</a>
                          </td>
                        </tr>
                         <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <tr><td colspan="4" class="text-center"> No Questions found!</td></tr>
                        <?php endif; ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', ['pageSlug' => 'questions'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/sibzsolu/public_html/training/stimclex/resources/views/questions/questionslist.blade.php ENDPATH**/ ?>