<?php if (isset($component)) { $__componentOriginalfd18b85732e6a336f727c097d7e6751f = $component; } ?>
<?php $component = App\View\Components\Ad::resolve(['alias' => 'home_page_center'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('ad'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Ad::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(\Illuminate\Support\Arr::toCssClasses('container container-custom my-4'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalfd18b85732e6a336f727c097d7e6751f)): ?>
<?php $component = $__componentOriginalfd18b85732e6a336f727c097d7e6751f; ?>
<?php unset($__componentOriginalfd18b85732e6a336f727c097d7e6751f); ?>
<?php endif; ?>
<?php if($latestItemsSection): ?>
    <div class="section">
        <div class="container container-custom">
            <div class="section-header">
                <div class="col-lg-7 mx-auto">
                    <div class="section-title mb-0">
                        <h2 class="section-title-text"><?php echo e($latestItemsSection->name); ?></h2>
                        <div class="section-title-divider"></div>
                    </div>
                    <?php if($latestItemsSection->description): ?>
                        <p class="section-text mt-3"><?php echo e($latestItemsSection->description); ?></p>
                    <?php endif; ?>
                </div>
            </div>
            <div class="section-body">
                <div class="custom-tabs mb-4" id="pills-tab" role="tablist">
                    <div class="row row-cols-auto justify-content-center g-2">
                        <div class="col" role="presentation">
                            <button class="custom-tabs-item active" id="pills-all-tab" data-bs-toggle="pill"
                                data-bs-target="#pills-all" type="button" role="tab" aria-controls="pills-all"
                                aria-selected="true"><?php echo e(translate('All Categories')); ?></button>
                        </div>
                        <?php $__currentLoopData = $latestItemsCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="col" role="presentation">
                                <button class="custom-tabs-item" id="pills-<?php echo e($category->slug); ?>-tab"
                                    data-bs-toggle="pill" data-bs-target="#pills-<?php echo e($category->slug); ?>" type="button"
                                    role="tab" aria-controls="pills-<?php echo e($category->slug); ?>"
                                    aria-selected="false"><?php echo e($category->name); ?></button>
                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                </div>
                <div class="tab-content" data-aos="fade-up" data-aos-duration="1000">
                    <div class="tab-pane fade show active" id="pills-all" role="tabpanel"
                        aria-labelledby="pills-all-tab">
                        <?php if($latestItems->count() > 0): ?>
                            <div class="row row-cols-1 row-cols-md-2 row-cols-lg-2 row-cols-xxl-4 g-3">
                                <?php $__currentLoopData = $latestItems; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <div class="col">
                                        <?php echo $__env->make('themes.basic.partials.item', ['item' => $item], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                    </div>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>
                            <div class="text-center mt-5">
                                <a href="<?php echo e(route('items.index')); ?>" class="btn btn-outline-primary btn-md">
                                    <?php echo e(translate('View More')); ?>

                                    <i class="fa fa-arrow-right fa-rtl ms-2"></i>
                                </a>
                            </div>
                        <?php else: ?>
                            <div class="card-v rounded-3 p-5">
                                <div class="text-center py-5">
                                    <p class="mb-0 text-muted">
                                        <?php echo e(translate('No Items Found')); ?>

                                    </p>
                                </div>
                            </div>
                        <?php endif; ?>
                    </div>
                    <?php $__currentLoopData = $latestItemsCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="tab-pane fade" id="pills-<?php echo e($category->slug); ?>" role="tabpanel"
                            aria-labelledby="pills-<?php echo e($category->slug); ?>-tab">
                            <?php if($category->items->count() > 0): ?>
                                <div
                                    class="row row-cols-1 row-cols-md-2 row-cols-lg-2 row-cols-xxl-4 justify-content-center g-3">
                                    <?php $__currentLoopData = $category->items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <div class="col">
                                            <?php echo $__env->make('themes.basic.partials.item', ['item' => $item], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                        </div>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </div>
                                <div class="text-center mt-5">
                                    <a href="<?php echo e($category->getLink()); ?>" class="btn btn-outline-primary btn-md">
                                        <?php echo e(translate('View More')); ?>

                                        <i class="fa fa-arrow-right fa-rtl ms-2"></i>
                                    </a>
                                </div>
                            <?php else: ?>
                                <div class="card-v rounded-3 p-5">
                                    <div class="text-center py-5">
                                        <p class="mb-0 text-muted">
                                            <?php echo e(translate('No Items Found')); ?>

                                        </p>
                                    </div>
                                </div>
                            <?php endif; ?>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>
            </div>
        </div>
    </div>
<?php endif; ?>
<?php /**PATH /home/novaspi1/public_html/resources/views/themes/basic/sections/latest-items.blade.php ENDPATH**/ ?>