HEX
Server: LiteSpeed
System: Linux srv1.dhviews.com 5.14.0-570.23.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jun 24 11:27:16 EDT 2025 x86_64
User: bdedition (1723)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/bdedition/www/core/storage/framework/views/e727d7ebb913c0cee96dbc13611b3105.php
<?php $__env->startSection('content'); ?>
    <section class="all-sections pt-20 pb-60">
        <div class="container">
            <div class="row justify-content-center mb-30-none">
                <div class="col-xl-9 col-lg-12 mb-30">
                    <div class="main-content news-category-content-area">
                        <div class="news-banner-area">
                            <div class="news-banner-wrapper">
                                <div class="row justify-content-center mb-30-none">
                                    <div class="col-xl-8 col-lg-8 mb-30">
                                        <div class="news-banner-thumb">
                                            <a href="<?php echo e(route('news.details', ['category' =>$firstCategoryNews->category->slug, 'news' => $firstCategoryNews->id])); ?>">
                                                <img src="<?php echo e(getImage(getFilePath('news') . '/' . $firstCategoryNews->image, getFileSize('news'))); ?>"
                                                    alt="news-banner">
                                            </a>
                                        </div>
                                        <div class="news-banner-content">
                                            <h2 class="title">
                                                <a href="<?php echo e(route('news.details', ['category' =>$firstCategoryNews->category->slug, 'news' => $firstCategoryNews->id])); ?>">
                                                    <?php echo e(strLimit(@$firstCategoryNews->title, 200)); ?>

                                                </a>
                                            </h2>
                                            <div class="news-time py-1 fs-9">
                                                <i class="fa-regular fa-clock me-1"></i> <?php echo e(bn_number(diffForHumans($firstCategoryNews->created_at))); ?>

                                            </div>
                                            <?php echo strLimit(@$firstCategoryNews->short_description, 500) ?>
                                        </div>
                                        <div class="mt-4">
                                            <?php echo advertisements('728x90'); ?>
                                        </div>
                                    </div>
                                    <div class="col-xl-4 col-lg-4 mb-30">
                                        <div class="news-banner-top-content">
                                            <h4 class="title"><?php echo app('translator')->get('Latest News'); ?></h4>
                                            <div class="widget">
                                                <ul class="small-news-list">
                                                    <?php $__empty_1 = true; $__currentLoopData = $latestNews; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                                        <li class="small-single-news">
                                                            <div class="thumb">
                                                                <a href="<?php echo e(route('news.details', ['category' =>$item->category->slug, 'news' => $item->id])); ?>">
                                                                    <img src="<?php echo e(getImage(getFilePath('news') . '/' . $item->image, getFileSize('news'))); ?>"
                                                                        alt="news image">
                                                                </a>
                                                            </div>
                                                            <div class="content">
                                                                <h5 class="title">
                                                                    <a href="<?php echo e(route('news.details', ['category' =>$item->category->slug, 'news' => $item->id])); ?>">
                                                                        <?php echo e(__(@$item->title)); ?>

                                                                    </a>
                                                                    <div class="news-time py-1 fs-9">
                                                                        <i class="fa-regular fa-clock me-1"></i> <?php echo e(bn_number(diffForHumans($item->created_at))); ?>

                                                                    </div>
                                                                </h5>
                                                            </div>
                                                        </li>
                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                                    <?php endif; ?>
                                                </ul>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xl-3 col-lg-4 col-md-6 col-sm-6 col-xs-6 mb-30">
                    <aside class="aside-bar">
                        <div class="aside-inner">
                            <div class="add-item mb-30">
                                <?php echo advertisements('300x250'); ?>
                            </div>
                            <div class="add-item mb-30">
                                <?php echo advertisements('300x250'); ?>
                            </div>
                        </div>
                    </aside>
                </div>
            </div>
            <div class="news-blog-area pt-4">
                <div class="section-header section-header--style">
                    <h3 class="section-title"><?php echo app('translator')->get('More News'); ?></h3>
                </div>
                <div class="row justify-content-center mb-30-none post_data">
                    <?php echo e(csrf_field()); ?>

                </div>
            </div>
        </div>
    </section>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('script'); ?>
    <script>
        $(document).ready(function() {
            var _token = $('input[name="_token"]').val();
            var catId = <?php echo e($category->id); ?>

            load_data('', _token, catId);

            function load_data(id = "", _token, catId) {
                $.ajax({
                    url: "<?php echo e(route('load.more')); ?>",
                    method: "POST",
                    data: {
                        id: id,
                        _token: _token,
                        catId: catId,
                        remove: <?php echo e($removeDuplicate); ?>

                    },
                    success: function(data) {
                        $('.load_more_button').remove();
                        $('.post_data').append(data);
                    }
                })
            }

            $(document).on('click', '.load_more_button', function() {
                var id = $(this).data('id');
                let loaderHtml = `<span class="spinner-grow spinner-grow-sm" role="status" aria-hidden="true"></span>
                               Loading...`
                $('.load_more_button').html(loaderHtml);
                load_data(id, _token, catId);
            });

            function convertToSlug(Text) {
                return Text.toLowerCase().replace(/ /g, '-').replace(/[^\w-]+/g, '');
            }
        });
    </script>
<?php $__env->stopPush(); ?>

<?php $__env->startPush('style'); ?>
    <style>
        .news-blog-area {
            border-top: none;
        }
    </style>
<?php $__env->stopPush(); ?>

<?php echo $__env->make($activeTemplate . 'layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/bdedition/public_html/core/resources/views/templates/basic/category/details.blade.php ENDPATH**/ ?>