<?php $__env->startSection('title', 'Manage Sub Category'); ?>

<?php $__env->startSection('body'); ?>
    <div class="page-header">
        <div>
            <h1 class="page-title">Sub Category</h1>
        </div>
        <div class="ms-auto pageheader-btn">
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="javascript:void(0);">Add Sub Category</a></li>
                <li class="breadcrumb-item active" aria-current="page">Manage Sub Category</li>
            </ol>
        </div>
    </div>

    <!-- Row -->
    <div class="row row-sm">
        <div class="col-lg-12">
            <div class="card">
                <div class="card-header border-bottom">
                    <h3 class="card-title">Sub Category Manage</h3>
                </div>
                <div class="card-body">
                    <div class="table-responsive">
                        <table class="table table-bordered text-nowrap border-bottom" id="basic-datatable">
                            <thead>
                            <tr>
                                <th class="wd-15p border-bottom-0">SL No</th>
                                <th class="wd-15p border-bottom-0">Test ID</th>
                                <th class="wd-15p border-bottom-0">Test Type</th>
                                <th class="wd-20p border-bottom-0">Name</th>
                                <th class="wd-20p border-bottom-0">Price</th>
                                <th class="wd-20p border-bottom-0">Discount</th>
                                <th class="wd-10p border-bottom-0">Status</th>
                                <th class="wd-25p border-bottom-0">Action</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php $__currentLoopData = $tests; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $test): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td><?php echo e($loop->iteration); ?></td>
                                    <td><?php echo e($test->test_id); ?></td>
                                    <td><?php echo e($test->category->name); ?></td>
                                    <td><?php echo e($test->name); ?></td>
                                    <td><?php echo e($test->price); ?></td>
                                    <td><?php echo e($test->discount); ?></td>
                                    <?php if($test->status == 1): ?>
                                        <td>Published</td>
                                    <?php else: ?>
                                        <td>UnPublished</td>
                                    <?php endif; ?>
                                    <td>
                                        <a href="<?php echo e(route('test.edit', ['id'=>$test->id])); ?>" class="btn btn-success btn-sm rounded-0">
                                            <i class="fa fa-edit"></i>
                                        </a>
                                        <a href="<?php echo e(route('test.delete', ['id'=>$test->id])); ?>" onclick="return confirm('Are you sure to delete this');" class="btn btn-danger btn-sm rounded-0">
                                            <i class="fa fa-trash"></i>
                                        </a>
                                    </td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- End Row -->

<?php $__env->stopSection(); ?>

<?php echo $__env->make($master, \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\primary\resources\views/admin/test/index.blade.php ENDPATH**/ ?>