<?php $__env->startSection('title', $category->seo_title ?: $category->name . ' - وبلاگ'); ?>

<?php $__env->startSection('seo'); ?>
<?php if($category->seo_description): ?>
    <meta name="description" content="<?php echo e($category->seo_description); ?>">
<?php endif; ?>
<?php if($category->seo_keywords): ?>
    <meta name="keywords" content="<?php echo e($category->seo_keywords); ?>">
<?php endif; ?>
<link rel="canonical" href="<?php echo e(url('blog/' . $category->slug)); ?>">
<?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"><a href="<?php echo e(route('blog.index')); ?>" class="font-14 text-muted">وبلاگ</a></li>
                        <li class="breadcrumb-item active main-color-one-color font-14" aria-current="page"><?php echo e($category->name); ?></li>
                    </ol>
                </nav>
            </div>
        </div>
    </div>
</div>

<div class="content">
    <div class="container-fluid">
        <div class="row gy-3">
            <div class="col-lg-3">
                <?php echo $__env->make('site.blog.partials._sidebar', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
            </div>

            <div class="col-lg-9">
                <div class="content-box mb-3">
                    <div class="container-fluid py-3">
                        <h1 class="font-20 mb-2"><?php echo e($category->name); ?></h1>
                        <?php if($category->description): ?>
                            <p class="text-muted mb-0"><?php echo e($category->description); ?></p>
                        <?php endif; ?>
                    </div>
                </div>

                <div class="gird-post-blog">
                    <div class="row gy-3">
                        <?php $__empty_1 = true; $__currentLoopData = $posts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                            <div class="col-lg-4 col-md-6">
                                <?php echo $__env->make('site.blog.partials._post-card', ['post' => $post], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                            <div class="col-12">
                                <div class="content-box text-center py-5 text-muted">
                                    <i class="bi bi-journal-x fs-1 d-block mb-3"></i>
                                    در این دسته‌بندی هنوز مقاله‌ای منتشر نشده است.
                                </div>
                            </div>
                        <?php endif; ?>
                    </div>

                    <?php if($posts->hasPages()): ?>
                        <div class="mt-4 d-flex justify-content-center">
                            <?php echo e($posts->onEachSide(1)->links()); ?>

                        </div>
                    <?php endif; ?>
                </div>
            </div>
        </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/blog/category.blade.php ENDPATH**/ ?>