

<?php $__env->startSection('content'); ?>
    <div class="row clearfix">
        <div class="col-lg-12">
            <div class="card">
                <div class="header">
                    <h2><strong>All</strong> Categories </h2>
                    <ul class="header-dropdown">
                        <li class="dropdown">
                            <a href="<?php echo e(route('subcategories.create')); ?>" class="btn btn-primary btn-sm float-right">Add
                                Sub Category</a>
                        </li>
                    </ul>
                </div>
                <div class="mt-2">
                    <?php echo $__env->make('admin.layouts.partials.messages', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                </div>
                <div class="body">
                    <div class="table-responsive">
                        <table class="table table-bordered table-striped table-hover js-basic-example dataTable">
                            <thead>
                                <tr>
                                    <th>Logo</th>
                                    <th>Image</th>
                                    <th>Category</th>
                                    <th>Name</th>
                                    <th>Actions</th>
                                </tr>
                            </thead>
                            <tfoot>
                                <tr>
                                    <th>Logo</th>
                                    <th>Image</th>
                                    <th>Category</th>
                                    <th>Name</th>
                                    <th>Actions</th>
                                </tr>
                            </tfoot>
                            <tbody>
                                <?php $__currentLoopData = $subcategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $subcategory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <td><img src="<?php echo e(asset('admin-assets/images/categories')); ?>/<?php echo e($subcategory->logo_image); ?>" alt="" width="40"></td>
                                        <td><img src="<?php echo e(asset('admin-assets/images/categories')); ?>/<?php echo e($subcategory->feature_image); ?>" alt="" width="40"></td>
                                        <td><?php echo e($subcategory->category->name ?? ''); ?></td>
                                        <td><?php echo e($subcategory->name); ?></td>
                                        <td>
                                            <a class="btn btn-primary btn-sm" href="<?php echo e(route('subcategories.edit', $subcategory->id)); ?>">Edit</a>
                                        
                                            <?php echo Form::open(['method' => 'DELETE','route' => ['subcategories.destroy', $subcategory->id],'style'=>'display:inline']); ?>

                                            <?php echo Form::submit('Delete', ['class' => 'btn btn-danger btn-sm']); ?>

                                            <?php echo Form::close(); ?>

                                        </td>
                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                        <div class="d-flex">
                            <?php echo $subcategories->links('pagination::bootstrap-4'); ?>

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

<?php $__env->startSection('custom-scripts'); ?>
   
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/dealqmki/blogzcenter.com/resources/views/admin/pages/subcategories/index.blade.php ENDPATH**/ ?>