<div>
    <!--[if BLOCK]><![endif]--><?php if($data->isNotEmpty()): ?>
        <div class="mt-0 mb-4">
            <h4 class="mb-2 ls-1 text-uppercase fw-bold">Berita Terbaru</h4>
            <div class="line line-xs line-sports"></div>
            <div class="row col-mb-50 mb-0" id="scroll-dest">
                <!--[if BLOCK]><![endif]--><?php $__empty_1 = true; $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $res): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                    <div class="entry col-md-12 mb-0">
                        <div class="row">
                            <div class="col-md-5">
                                <div class="entry-image mb-0">
                                    <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.src='<?php echo e(asset('default.jpg')); ?>'"
                                             style="width:415px;height:250px;object-fit:cover;object-position: 100% 0%;"
                                             alt="Image">
                                    </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->nama); ?></a>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-7">
                                <div class="entry-title title-sm mt-3 mt-md-0">
                                    <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 mt-3">
                                    <?php echo strip_tags(Str::words($res->konten, 40, '...')); ?>

                                </div>
                            </div>
                        </div>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                    <span>Belum Ada Artikel</span>
                <?php endif; ?> <!--[if ENDBLOCK]><![endif]-->
                <!--[if BLOCK]><![endif]--><?php if($data->isNotEmpty()): ?>
                    <?php echo e($data->links()); ?>

                <?php endif; ?> <!--[if ENDBLOCK]><![endif]-->
            </div>
        </div>
        <?php $__env->startPush('script'); ?>
            <script>
                document.addEventListener('livewire:init', () => {
                    Livewire.on('scroll-top', (event) => {
                        document.querySelector('#scroll-dest').scrollIntoView({
                            behavior: 'smooth'
                        });
                    });
                });
            </script>
        <?php $__env->stopPush(); ?>
    <?php endif; ?> <!--[if ENDBLOCK]><![endif]-->
</div>
<?php /**PATH /Users/aptika/Workspace/webprofilev2/resources/views/livewire/guest/beranda.blade.php ENDPATH**/ ?>