<?php $__env->startSection('title', 'دسته‌بندی محصولات'); ?>

<?php $__env->startSection('seo'); ?>
<meta name="description" content="فهرست تمام دسته‌بندی‌های فروشگاه">
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>

<div class="bread-crumb pt-3">
    <div class="container-fluid">
        <div class="content-box">
            <div class="container-fluid">
                <nav aria-label="breadcrumb" class="my-lg-0 my-2">
                    <ol class="breadcrumb mb-0">
                        <li class="breadcrumb-item"><a href="<?php echo e(route('home')); ?>" class="font-14 text-muted">خانه</a></li>
                        <li class="breadcrumb-item active main-color-one-color font-14" aria-current="page">دسته‌بندی محصولات</li>
                    </ol>
                </nav>
            </div>
        </div>
    </div>
</div>

<div class="content">
    <div class="cat-section mb-2">
        <div class="container-fluid">
            <div class="hp-head">
                <h5 class="hp-head-title">دسته‌بندی <span class="ms-1 hp-accent">محصولات</span></h5>
            </div>

            <?php if($categories->isEmpty()): ?>
                <div class="content-box text-center py-5 text-muted">
                    <i class="bi bi-grid fs-1 d-block mb-3"></i>
                    دسته‌بندی فعالی موجود نیست.
                </div>
            <?php else: ?>
                <div class="row gy-3 row-cols-2 row-cols-sm-3 row-cols-md-4 row-cols-lg-5 row-cols-xl-6">
                    <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php
                            $imgFile = $cat->image ?: $cat->mega_menu_image;
                        ?>
                        <div class="col">
                            <a href="<?php echo e(route('shop.category', $cat->slug)); ?>" class="cat-card">
                                <div class="cat-icon-wrap">
                                    <?php if($imgFile): ?>
                                        <img src="<?php echo e(asset('uploads/categories/' . $imgFile)); ?>" alt="<?php echo e($cat->name); ?>">
                                    <?php else: ?>
                                        <i class="ti ti-<?php echo e($cat->icon ?: 'folder'); ?>"></i>
                                    <?php endif; ?>
                                </div>
                                <p class="cat-name"><?php echo e($cat->name); ?></p>
                            </a>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>
            <?php endif; ?>
        </div>
    </div>
</div>

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

<?php echo $__env->make('site.layouts.site-layout', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/louishop/public_html/engine/resources/views/site/categories.blade.php ENDPATH**/ ?>