
<?php $__env->startPush('title'); ?>
    <?php echo e(__('Welcome')); ?>

<?php $__env->stopPush(); ?>
<?php $__env->startSection('content'); ?>
    <!-- hero area start -->
    <section class="breadcrumb-section bg-main-color py-30 py-sm-150">
        <div class="breadcrumb-content">
            <h4 class="title"><?php echo e(__("Knowledge")); ?></h4>
            <ol class="breadcrumb sf-inner-breadcrumb justify-content-center">
                <li class="breadcrumb-item"><a href="<?php echo e(route('frontend')); ?>"><?php echo e(__("Home")); ?></a></li>
                <li class="breadcrumb-item active"><a href=""><?php echo e(__("Knowledge")); ?></a></li>
            </ol>
        </div>
    </section>
    <!-- hero area end -->


    <?php if($section['knowledge_area'] != null && $section['knowledge_area']->status==STATUS_ACTIVE): ?>
        <section class="py-sm-150 py-30 position-relative z-1">
            <div class="container">
                <div class="row justify-content-center">
                    <div class="col-lg-7">
                        <div class="text-center pb-55">
                            <h4 class="lh-sm-57 lh-44 landing-section-title"><?php echo e($section['knowledge_area']->title); ?></h4>
                            <p class="fs-18 fw-400 lh-28 text-para-text pt-16"><?php echo e($section['knowledge_area']->description); ?></p>
                        </div>
                    </div>
                </div>
                <div class="pb-55">
                    <form action="<?php echo e(route('tenant.searchKnowledge')); ?>" type="get" class="search-form bread ">
                        <div class="search-box home-searchBox shadow-sm">
                            <input type="search" name="query" value="<?php echo e(request()->get('query')); ?>" placeholder="<?php echo e(__('Search for questions or topics...')); ?>">
                            <button class="secrch-btu"><?php echo e(__('Search Here')); ?></button>
                        </div>
                    </form>
                </div>
                <!--  -->
                <div class="row rg-20 pb-55">
                    <?php if(empty($searchKnowledgeCategory)): ?>
                        <?php $__currentLoopData = $knowledgeCategory; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $knowledgeCategorys): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="col-lg-6">
                                <div class="features-list-item">
                                    <div class="icon">
                                        <img src="<?php echo e(asset('frontend/assets/images/start-ic.png')); ?>" alt="">
                                    </div>
                                    <h4 class="title"><?php echo e($knowledgeCategorys->title); ?><span class="number ps-2">(<?php echo e($knowledgeCategorys->knowledge->count()); ?>)</span>
                                    </h4>
                                    <p class="info"><?php echo e(substr($knowledgeCategorys->description, 0,  150)); ?></p>
                                    <ul class="list-wrap">
                                        <?php $__currentLoopData = $knowledge; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $knowledges): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <?php if($knowledges->knowledge_category_id == $knowledgeCategorys->id): ?>
                                                <li class="item">
                                                    <div class="flex-shrink-0">
                                                        <img src="<?php echo e(asset('frontend/assets/images/pase-icon.png')); ?>" alt="">
                                                    </div>
                                                    <a class="title-link" href="<?php echo e(route('tenant.knowledge-category-single', $knowledges->id)); ?>"><?php echo e($knowledges->title); ?></a>
                                                </li>
                                            <?php endif; ?>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </ul>
                                    <a href="<?php echo e(route('tenant.knowledge-category', $knowledgeCategorys->id)); ?>" class="link"><?php echo e(__('Explore More')); ?><i class="fa-solid fa-arrow-right-long"></i></a>
                                </div>
                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php else: ?>
                        <?php $__empty_1 = true; $__currentLoopData = $searchKnowledgeCategory; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $knowledges): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>

                            <div class="col-lg-6">
                                <div class="features-list-item">
                                    <div class="icon">
                                        <img src="<?php echo e(asset('frontend/assets/images/start-ic.png')); ?>" alt="">
                                    </div>
                                    <h4 class="title"><?php echo e($knowledges->category_title); ?></h4>
                                    <p class="info"><?php echo e(substr($knowledges->category_desc, 0,  80)); ?></p>
                                    <ul class="list-wrap">
                                        <li class="item">
                                            <div class="flex-shrink-0">
                                                <img src="<?php echo e(asset('frontend/assets/images/pase-icon.png')); ?>" alt="">
                                            </div>
                                            <a class="title-link" href="<?php echo e(route('tenant.knowledge-category-single', $knowledges->id)); ?>"><?php echo e($knowledges->title); ?></a>
                                        </li>
                                    </ul>
                                    <a href="<?php echo e(route('tenant.knowledge-category', $knowledges->category_id)); ?>" class="link"><?php echo e(__('Explore More')); ?><i class="fa-solid fa-arrow-right-long"></i></a>
                                </div>
                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                            <div class="text-dark text-center mb-5"><h3><?php echo e(__('No data match')); ?></h3></div>
                        <?php endif; ?>
                    <?php endif; ?>
                </div>
                <!--  -->
                <div class="row justify-content-center">
                    <?php if($lookingSupport['looking_support_area'] != null && $lookingSupport['looking_support_area']->status==STATUS_ACTIVE): ?>
                        <div class="col-lg-6">
                            <div class="single-knowledge-support text-center">
                                <h4 class="lh-sm-57 lh-44 landing-section-title"><?php echo e($lookingSupport['looking_support_area']->title); ?></h4>
                                <p class="fs-18 fw-400 lh-28 text-para-text pt-16 pb-30"><?php echo e($lookingSupport['looking_support_area']->description); ?></p>
                                <a class="py-17 px-33 bd-ra-48 d-inline-flex bg-main-color fs-18 fw-600 lh-22 text-white" href="<?php echo e(route('tenant.contact.us.index')); ?>"><?php echo e(__('Contact Support')); ?></a>
                                
                                
                                
                            </div>
                        </div>
                    <?php endif; ?>
                </div>
            </div>
        </section>
    <?php endif; ?>

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

<?php echo $__env->make('tenant.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home6/metawebd/metagrievance.metawebdevelopment.cloud/resources/views/tenant/knowledge/knowledge.blade.php ENDPATH**/ ?>