<?php $__env->startSection('content'); ?>
    <div class="row">
        <div class="col-lg-9">
            <div class="col-12">
                <div class="style-msg primarymsg">
                    <div class="sb-msg"><i class="bi-question-circle-sign"></i>Hasil Pencarian <strong>
                            <?php echo e($key); ?></strong></div>
                </div>
            </div>
            <div class="mt-0">
                <div class="row col-mb-50 mb-0">
                    <?php $__empty_1 = true; $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $res): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <div class="col-md-6">
                            <div class="posts-md">
                                <div class="entry">
                                    <div class="entry-image">
                                        <a href="<?php echo e(route('post', ['slug' => $res->slug])); ?>"><img
                                                 src="<?php echo e($res->thumbnail ? asset('storage/'.$res->thumbnail) : asset('default.jpg')); ?>"
                                                 onerror="this.onerror=null;this.src='<?php echo e(asset('default.jpg')); ?>'"
                                                 style="width:415px;height:250px;" alt="Image 3"></a>
                                        <div class="entry-categories"><a
                                               href="<?php echo e(route('kategori', ['slug' => $res->to_kategori->slug])); ?>"
                                               class="bg-tech"><?php echo e($res->to_kategori->slug); ?></a>
                                        </div>
                                    </div>
                                    <div class="entry-title title-sm text-transform-none">
                                        <h3 class="mb-2"><a
                                               href="<?php echo e(route('post', ['slug' => $res->slug])); ?>"><?php echo e($res->judul); ?></a>
                                        </h3>
                                    </div>
                                    <div class="entry-meta">
                                        <ul>
                                            <li><i class="bi-clock"></i><?php echo e(tanggal_indo($res->tanggal_publish)); ?></li>
                                            <li><i class="uil uil-user"></i><?php echo e($res->to_user->name); ?></li>
                                        </ul>
                                    </div>
                                    <div class="entry-content">
                                        <?php echo strip_tags(Str::words($res->konten, 40, '...')); ?>

                                    </div>
                                </div>
                            </div>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <span>Hasil Tidak Ditemukan</span>
                    <?php endif; ?>
                    <?php if($data->isNotEmpty()): ?>
                        <?php echo e($data->links()); ?>

                    <?php endif; ?>
                </div>
            </div>
        </div>
        <div class="col-lg-3 sticky-sidebar-wrap mt-0 mt-lg-0">
            <div class="sticky-sidebar">
                <?php if (isset($component)) { $__componentOriginal03f01d48908cbe7093d539bebeb1d480 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal03f01d48908cbe7093d539bebeb1d480 = $attributes; } ?>
<?php $component = App\View\Components\Guest\Skm::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('guest.skm'); ?>
<?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\Guest\Skm::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal03f01d48908cbe7093d539bebeb1d480)): ?>
<?php $attributes = $__attributesOriginal03f01d48908cbe7093d539bebeb1d480; ?>
<?php unset($__attributesOriginal03f01d48908cbe7093d539bebeb1d480); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal03f01d48908cbe7093d539bebeb1d480)): ?>
<?php $component = $__componentOriginal03f01d48908cbe7093d539bebeb1d480; ?>
<?php unset($__componentOriginal03f01d48908cbe7093d539bebeb1d480); ?>
<?php endif; ?>
                <?php if (isset($component)) { $__componentOriginalbb7efaa4a8036ac4bc7df1a70780b21b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalbb7efaa4a8036ac4bc7df1a70780b21b = $attributes; } ?>
<?php $component = App\View\Components\Guest\SosialMedia::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('guest.sosial-media'); ?>
<?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\Guest\SosialMedia::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalbb7efaa4a8036ac4bc7df1a70780b21b)): ?>
<?php $attributes = $__attributesOriginalbb7efaa4a8036ac4bc7df1a70780b21b; ?>
<?php unset($__attributesOriginalbb7efaa4a8036ac4bc7df1a70780b21b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalbb7efaa4a8036ac4bc7df1a70780b21b)): ?>
<?php $component = $__componentOriginalbb7efaa4a8036ac4bc7df1a70780b21b; ?>
<?php unset($__componentOriginalbb7efaa4a8036ac4bc7df1a70780b21b); ?>
<?php endif; ?>
                <?php if (isset($component)) { $__componentOriginal44b3285c099e19acdf6d050e782ea2ee = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal44b3285c099e19acdf6d050e782ea2ee = $attributes; } ?>
<?php $component = App\View\Components\Guest\Kategori::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('guest.kategori'); ?>
<?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\Guest\Kategori::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal44b3285c099e19acdf6d050e782ea2ee)): ?>
<?php $attributes = $__attributesOriginal44b3285c099e19acdf6d050e782ea2ee; ?>
<?php unset($__attributesOriginal44b3285c099e19acdf6d050e782ea2ee); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal44b3285c099e19acdf6d050e782ea2ee)): ?>
<?php $component = $__componentOriginal44b3285c099e19acdf6d050e782ea2ee; ?>
<?php unset($__componentOriginal44b3285c099e19acdf6d050e782ea2ee); ?>
<?php endif; ?>
                <?php if (isset($component)) { $__componentOriginal4263a1acfcb7368b04e97d8e96bfb440 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal4263a1acfcb7368b04e97d8e96bfb440 = $attributes; } ?>
<?php $component = App\View\Components\Guest\Link::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('guest.link'); ?>
<?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\Guest\Link::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal4263a1acfcb7368b04e97d8e96bfb440)): ?>
<?php $attributes = $__attributesOriginal4263a1acfcb7368b04e97d8e96bfb440; ?>
<?php unset($__attributesOriginal4263a1acfcb7368b04e97d8e96bfb440); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal4263a1acfcb7368b04e97d8e96bfb440)): ?>
<?php $component = $__componentOriginal4263a1acfcb7368b04e97d8e96bfb440; ?>
<?php unset($__componentOriginal4263a1acfcb7368b04e97d8e96bfb440); ?>
<?php endif; ?>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('guest.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/aptika/Workspace/webprofilev2/resources/views/guest/pencarian.blade.php ENDPATH**/ ?>