File: /var/www/admin.fixgini.com/storage/framework/views/3a00de41c56639bc18eadfffedb3f86c.php
<div class="iq-card-body">
<div class="table-responsive">
<div class="row justify-content-between">
<div class="col-sm-12 col-md-6">
<div id="user_list_datatable_info" class="dataTables_filter">
<form class="mr-3 position-relative">
<div class="form-group mb-0">
<input type="search" class="form-control" wire:model.live="search" placeholder="Search"
aria-controls="user-list-table">
</div>
</form>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div class="user-list-files d-flex float-right">
<a class="btn btn-primary" href="<?php echo e(route('category.create')); ?>">
Add Category
</a>
<a class="btn btn-primary" href="<?php echo e(route('subcategories')); ?>">
Subcategories
</a>
</div>
</div>
</div>
<table id="user-list-table" class="table table-striped table-bordered mt-4" role="grid"
aria-describedby="user-list-page-info">
<thead>
<tr>
<th>S.No</th>
<th>Category</th>
<th>Icon</th>
<th>Thumbnail</th>
<th>Subcategories</th>
<th class="text-end">Actions</th>
</tr>
</thead>
<tbody>
<!--[if BLOCK]><![endif]--><?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($index + 1); ?></td>
<td><?php echo e($category->name); ?></td>
<td>
<img src="<?php echo e($category->icon_url); ?>" class="rounded" width="50" height="50">
</td>
<td>
<!--[if BLOCK]><![endif]--><?php if($category->thumbnail): ?>
<img src="<?php echo e($category->thumbnail); ?>" class="rounded" width="50" height="50">
<?php else: ?>
N/A
<?php endif; ?><!--[if ENDBLOCK]><![endif]-->
</td>
<td>
<!--[if BLOCK]><![endif]--><?php if($category->children->isNotEmpty()): ?>
<ul>
<!--[if BLOCK]><![endif]--><?php $__currentLoopData = $category->children; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $child): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<li><?php echo e($child->name); ?></li>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]-->
</ul>
<?php else: ?>
No subcategories
<?php endif; ?><!--[if ENDBLOCK]><![endif]-->
</td>
<td class="text-end">
<a href="<?php echo e(route('category.edit', $category->slug)); ?>" class="btn btn-sm btn-secondary me-2"> <i
class="ri-pencil-line"></i></a>
<a wire:confirm="Are you sure you want to delete this category <?php echo e($category->name); ?>?" wire:click.prevent="deleteCategory(<?php echo e($category->id); ?>)" href="#" class="btn btn-sm btn-danger"><i class="ri-delete-bin-line"></i></i></a>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]-->
</tbody>
</table>
</div>
<div class="mt-4"><?php echo e($categories->links()); ?></div>
</div><?php /**PATH /var/www/admin.fixgini.com/resources/views/livewire/category/index.blade.php ENDPATH**/ ?>