<section class="bg-[#f8f9fa] dark:bg-slate-950 py-14 sm:py-20">
    <div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 space-y-8">
        <div class="rounded-3xl border border-lime-100 dark:border-slate-800 bg-white dark:bg-slate-900 p-8 sm:p-10">
            <nav class="text-sm text-slate-500 dark:text-slate-400 mb-4">
                <a href="<?php echo e(route('home')); ?>" class="hover:text-lime-700 dark:hover:text-lime-400">Blog home</a>
                <span class="mx-2">/</span>
                <span class="text-slate-800 dark:text-slate-200 font-medium"><?php echo e($pageTitle); ?></span>
            </nav>
            <p class="text-sm font-semibold uppercase tracking-wide text-lime-700 dark:text-lime-400">
                <!--[if BLOCK]><![endif]--><?php if($this->activeCategory): ?>
                    Category
                <?php elseif($this->activeTag): ?>
                    Tag
                <?php else: ?>
                    Archive
                <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
            </p>
            <h1 class="mt-2 text-3xl sm:text-4xl font-bold text-slate-900 dark:text-slate-100"><?php echo e($pageTitle); ?></h1>
            <!--[if BLOCK]><![endif]--><?php if($this->activeCategory?->description): ?>
                <p class="mt-3 max-w-3xl text-slate-600 dark:text-slate-300"><?php echo e($this->activeCategory->description); ?></p>
            <?php else: ?>
                <p class="mt-3 max-w-3xl text-slate-600 dark:text-slate-300">
                    <!--[if BLOCK]><![endif]--><?php if($this->activeTag): ?>
                        Posts tagged with “<?php echo e($this->activeTag->name); ?>”.
                    <?php else: ?>
                        Guides, updates, and stories — search below or open a category from the blog home.
                    <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
                </p>
            <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
            <div class="mt-6 max-w-xl">
                <?php if (isset($component)) { $__componentOriginal26c546557cdc09040c8dd00b2090afd0 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal26c546557cdc09040c8dd00b2090afd0 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'e60dd9d2c3a62d619c9acb38f20d5aa5::input.index','data' => ['wire:model.live.debounce.300ms' => 'search','icon' => 'magnifying-glass','placeholder' => 'Search blog posts...']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('flux::input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['wire:model.live.debounce.300ms' => 'search','icon' => 'magnifying-glass','placeholder' => 'Search blog posts...']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal26c546557cdc09040c8dd00b2090afd0)): ?>
<?php $attributes = $__attributesOriginal26c546557cdc09040c8dd00b2090afd0; ?>
<?php unset($__attributesOriginal26c546557cdc09040c8dd00b2090afd0); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal26c546557cdc09040c8dd00b2090afd0)): ?>
<?php $component = $__componentOriginal26c546557cdc09040c8dd00b2090afd0; ?>
<?php unset($__componentOriginal26c546557cdc09040c8dd00b2090afd0); ?>
<?php endif; ?>
            </div>
            <!--[if BLOCK]><![endif]--><?php if($this->activeCategory || $this->activeTag): ?>
                <div class="mt-4">
                    <a href="<?php echo e(route('blog')); ?>" class="text-sm font-semibold text-lime-700 dark:text-lime-400 hover:underline">Clear filters — view all posts</a>
                </div>
            <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
        </div>

        <!--[if BLOCK]><![endif]--><?php if($this->posts->isEmpty()): ?>
            <div class="rounded-2xl border border-dashed border-lime-200 dark:border-slate-700 bg-white dark:bg-slate-900 p-12 text-center">
                <h2 class="text-lg font-semibold text-slate-900 dark:text-slate-100">No posts found</h2>
                <p class="mt-2 text-sm text-slate-600 dark:text-slate-300">Try another search or category.</p>
            </div>
        <?php else: ?>
            <div class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6">
                <!--[if BLOCK]><![endif]--><?php $__currentLoopData = $this->posts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if (isset($component)) { $__componentOriginal3e35f9d180572e41b1b348581ca46400 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal3e35f9d180572e41b1b348581ca46400 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.blog.post-card','data' => ['post' => $post,'wire:key' => 'blog-index-'.e($post->id).'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('blog.post-card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['post' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($post),'wire:key' => 'blog-index-'.e($post->id).'']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal3e35f9d180572e41b1b348581ca46400)): ?>
<?php $attributes = $__attributesOriginal3e35f9d180572e41b1b348581ca46400; ?>
<?php unset($__attributesOriginal3e35f9d180572e41b1b348581ca46400); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal3e35f9d180572e41b1b348581ca46400)): ?>
<?php $component = $__componentOriginal3e35f9d180572e41b1b348581ca46400; ?>
<?php unset($__componentOriginal3e35f9d180572e41b1b348581ca46400); ?>
<?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]-->
            </div>

            <div>
                <?php echo e($this->posts->links()); ?>

            </div>
        <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
    </div>
</section><?php /**PATH /home/nezemgrh/blog.nezertechy.xyz/resources/views/livewire/blog/index-page.blade.php ENDPATH**/ ?>