<?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="brands-page mb-2">
        <div class="container-fluid">
            <div class="hp-head">
                <h5 class="hp-head-title">برندهای <span class="hp-accent">فروشگاه</span></h5>
            </div>

            <?php if($brands->isEmpty()): ?>
                <div class="content-box text-center py-5 text-muted">
                    <i class="bi bi-award 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 = $brands; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $brand): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="col">
                            <a href="<?php echo e(route('shop.brand', $brand->slug)); ?>" class="brand-page-card">
                                <div class="brand-page-logo">
                                    <?php if($brand->image): ?>
                                        <img src="<?php echo e(asset('uploads/brands/' . $brand->image)); ?>" alt="<?php echo e($brand->name); ?>">
                                    <?php else: ?>
                                        <span class="brand-page-fallback"><?php echo e(mb_substr($brand->name, 0, 1)); ?></span>
                                    <?php endif; ?>
                                </div>
                                <p class="brand-page-name"><?php echo e($brand->name); ?></p>
                                <span class="brand-page-count">
                                    <?php if($brand->products_count > 0): ?>
                                        <?php echo e(number_format($brand->products_count)); ?> محصول
                                    <?php else: ?>
                                        بدون محصول
                                    <?php endif; ?>
                                </span>
                            </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 C:\xampp\htdocs2\engine\resources\views/site/brands.blade.php ENDPATH**/ ?>