
<?php $__env->startSection('section'); ?>
    <!-- Page sidebar end-->

    <div class="page-body">
        <div class="container-fluid">
            <div class="row page-title">
                <div class="col-sm-6">
                    <h3>Category List</h3>
                </div>
                <div class="col-sm-6">
                    <nav>
                        <ol class="breadcrumb justify-content-sm-end align-items-center">
                            <li class="breadcrumb-item"> <a href="index.html">
                                    <svg class="svg-color">
                                        <use href="<?php echo e(asset('assets/svg/iconly-sprite.svg#Home')); ?>"></use>
                                    </svg></a></li>
                            <li class="breadcrumb-item">Category</li>
                            <li class="breadcrumb-item active">Category List</li>
                        </ol>
                    </nav>
                </div>
            </div>
        </div>

        <!-- Container-fluid starts-->
        <div class="container-fluid list-products">
            <div class="row">
                <div class="col-md-12 project-list">
                    <div class="card">
                        <div class="row">
                            <div class="col-md-6">
                                <ul class="nav nav-tabs border-tab" id="top-tab" role="tablist">
                                    <li class="nav-item"><a class="nav-link active" id="top-home-tab" data-bs-toggle="tab"
                                            href="#top-home" role="tab" aria-controls="top-home" aria-selected="true">
                                            <svg class="feather">
                                                <use
                                                    href="<?php echo e(asset('assets/svg/feather-icons/dist/feather-sprite.svg#target')); ?>">
                                                </use>
                                            </svg>All</a></li>
                                    <li class="nav-item"><a class="nav-link" id="profile-top-tab" data-bs-toggle="tab"
                                            href="#top-profile" role="tab" aria-controls="top-profile"
                                            aria-selected="false">
                                            <svg class="feather">
                                                <use
                                                    href="<?php echo e(asset('assets/svg/feather-icons/dist/feather-sprite.svg#info')); ?>">
                                                </use>
                                            </svg>Doing</a></li>
                                    <li class="nav-item"><a class="nav-link" id="contact-top-tab" data-bs-toggle="tab"
                                            href="#top-contact" role="tab" aria-controls="top-contact"
                                            aria-selected="false">
                                            <svg class="feather">
                                                <use
                                                    href="<?php echo e(asset('assets/svg/feather-icons/dist/feather-sprite.svg#check-circle')); ?>">
                                                </use>
                                            </svg>Done</a></li>
                                </ul>
                            </div>
                            <div class="col-md-6 d-md-block d-none">
                                <div class="form-group mb-0 me-0"> </div><a
                                    class="btn btn-primary d-flex align-items-center" href="<?php echo e(route('category.add')); ?>">
                                    <svg class="feather">
                                        <use
                                            href="<?php echo e(asset('assets/svg/feather-icons/dist/feather-sprite.svg#plus-square')); ?>">
                                        </use>
                                    </svg>Add New Category </a>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sm-12">
                    <!-- Invoice menu-->
                    <div class="card">

                        <div class="card-body">
                            <div class="table-responsive theme-scrollbar product-table">
                                <table class="display" id="basic-3">
                                    <thead>
                                        <tr>
                                            <th>S.no</th>
                                            <th>Name</th>
                                            <th>Details</th>
                                            <th>Status</th>
                                            <th>Created By</th>
                                            <th>Start date</th>
                                            <th>Action</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <tr>
                                                <td><?php echo e($loop->iteration); ?></td>
                                                <td><?php echo e($category->name); ?></td>
                                                <td><?php echo e($category->description); ?></td>

                                                <td>
                                                    <a href="<?php echo e(route('category.status', $category->id)); ?>">
                                                        <?php echo $category->status == 1
                                                            ? '<span class="badge rounded-pill badge-success">Show</span>'
                                                            : '<span class="badge rounded-pill badge-danger">Hide</span>'; ?>

                                                    </a>
                                                </td>
                                                <td><?php echo e($category->createdBy->name ?? 'N/A'); ?></td>
                                                <td>
                                                    <?php echo e($category->created_at ? $category->created_at->format('Y/m/d') : 'N/A'); ?>

                                                </td>
                                                <td>
                                                    <a href="<?php echo e(route('delete.category', $category->id)); ?>"
                                                        class="btn btn-danger btn-xs" title="Delete">Delete</a>
                                                    <a href="<?php echo e(route('edit.category', $category->id)); ?>"
                                                        class="btn btn-primary btn-xs" title="Edit">Edit</a>
                                                </td>
                                            </tr>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- Container-fluid ends-->
    <script src="<?php echo e(asset('assets/js/vendors/simple-datatables/dist/umd/simple-datatables.js')); ?>"></script>

    <script src="<?php echo e(asset('assets/js/product/product-list-custom.js')); ?>"></script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.main', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/ewx7upyjsani/public_html/androidwale.com/resources/views/admin/Category/list.blade.php ENDPATH**/ ?>