<?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($message = Session::get('success')): ?>
            <div class="alert alert-success alert-block">
                <button type="button" class="close" data-dismiss="alert">×</button>    
                <strong><?php echo e($message); ?></strong>
            </div>
          <?php endif; ?>
          <div class="card ">
            <div class="card-header">
                <div class="row">
                    <div class="col-8">
                        <h4 class="card-title">Category List</h4>
                    </div>
                    <div class="col-4 text-right">
                        <a href="<?php echo e(route('addquestioncategory')); ?>" class="btn btn-sm btn-primary">Add Category</a>
                    </div>
                </div>
            </div>
            <div class="card-body">
                <div class="">
                    <table class="table tablesorter datatable" id="">
                        <thead class=" text-primary">
                            <tr>
                                <th scope="col">No</th>
                                <th scope="col">Category</th>
                                <th scope="col">Type</th>
                                <th scope="col">Status</th>
                                <th scope="col">Action</th>
                            </tr>
                        </thead>
                        <tbody>
                        <?php $__empty_1 = true; $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <tr>
                            <td><?php echo e($loop->index + 1); ?></td>
                            <td><?php echo e($category->question_category); ?></td>
                            <td><?php echo e($category->input_option); ?></td>
                            <td><?php if($category->status==1){echo 'Active';}else{echo "Inactive";} ?></td>
                            <td><a href="<?php echo e(route('editquestioncategory',['id' => $category->id])); ?>" class="btn btn-sm btn-outline-primary py-0">Edit</a>
                            <!-- <a style="margin-left: 10px;" href="<?php echo e(route('deletequestioncategory',['id' => $category->id])); ?>" class="btn btn-sm btn-outline-danger py-0">Delete</a> -->
                             <a style="margin-left: 10px;" href="<?php echo e(route('deletequestioncategory',['id' => $category->id])); ?>" class="btn btn-sm btn-outline-danger py-0 qcatdel<?php echo e($category->id); ?>"  onclick="confirmpage('qcatdel<?php echo $category->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 categories found!</td></tr>
                        <?php endif; ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', ['pageSlug' => 'questionscategory'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/sibzsolu/public_html/training/stimclex/resources/views/questioncategory/list.blade.php ENDPATH**/ ?>