

<?php $__env->startSection('title', isset($mainNews) && $mainNews->meta_title ? $mainNews->meta_title : 'Digital Newspaper'); ?>
<?php $__env->startSection('meta_description', isset($mainNews) && $mainNews->meta_description ? $mainNews->meta_description : ''); ?>

<?php $__env->startSection('content'); ?>

<!-- ================= Headlines Section ================= -->
<section class="headline-panel-section">
    <div class="headline-panel">

        <!-- Top Bar -->
        <div class="headline-panel-top">
            <div class="headline-panel-label">HEADLINES</div>
        </div>

        <!-- Scrolling Area -->
        <div class="headline-panel-wrapper">
            <div class="headline-panel-track">

                
                <?php $__empty_1 = true; $__currentLoopData = $headlineNews; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $news): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <div class="headline-panel-item">
                    <!-- <img src="<?php echo e(asset('images/' . ($news->photo ?? 'img1.webp'))); ?>" alt=""> -->
                    <img src="<?php echo e(asset('images/img6.webp')); ?>" class="social-icon">

                    <div class="headline-panel-text">
                        <div class="headline-panel-date">
                            <?php echo e($news->news_date ? date('F j, Y', strtotime($news->news_date)) : ''); ?>

                        </div>

                        <div class="headline-panel-title">
                            <a href="<?php echo e(url('news/'.$news->news_id)); ?>">
                                <?php echo e($news->news_title); ?>

                            </a>
                        </div>
                    </div>
                </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <div class="headline-panel-item">
                    <div class="headline-panel-text">
                        <div class="headline-panel-title">
                            No headlines available
                        </div>
                    </div>
                </div>
                <?php endif; ?>


                
                <?php $__currentLoopData = $headlineNews; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $news): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="headline-panel-item">
                    <img src="<?php echo e(asset('images/' . ($news->photo ?? 'img1.webp'))); ?>" alt="">

                    <div class="headline-panel-text">
                        <div class="headline-panel-date">
                            <?php echo e($news->news_date ? date('F j, Y', strtotime($news->news_date)) : ''); ?>

                        </div>

                        <div class="headline-panel-title">
                            <a href="<?php echo e(url('news/'.$news->news_id)); ?>">
                                <?php echo e($news->news_title); ?>

                            </a>
                        </div>
                    </div>
                </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

            </div>
        </div>
    


        <!-- 2nd section -->
        <section class="news-combo-section">
            <div class="news-combo-container">
                <!-- LEFT : Latest News -->
                <div class="combo-left">
                    <h3 class="combo-title">Latest News</h3>
                    <?php if(isset($latestNews) && $latestNews->count() > 0): ?>
                        <?php $__currentLoopData = $latestNews->take(3); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $news): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="latest-card">
                            <a href="#">
                                <img src="<?php echo e(asset('images/img1.webp')); ?>" class="social-icon">
                            </a>
                            <div class="latest-overlay">
                                <?php echo e($news->news_title ?? 'NASA Sets Coverage for Two Spacewalks Outside Space…'); ?>

                            </div>
                        </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php else: ?>
                        <div class="latest-card">
                            <img src="<?php echo e(asset('images/img1.webp')); ?>" alt="">
                            <div class="latest-overlay">NASA Sets Coverage for Two Spacewalks Outside Space…</div>
                        </div>
                        <div class="latest-card">
                            <img src="<?php echo e(asset('images/img7.webp')); ?>" alt="">
                            <div class="latest-overlay">Google’s Self-Designed Tensor Chips will Power Its…</div>
                        </div>
                        <div class="latest-card">
                            <img src="<?php echo e(asset('images/img8.webp')); ?>" alt="">
                            <div class="latest-overlay">Fashion Exhibitions Around The World To See In 2023</div>
                        </div>
                    <?php endif; ?>
                </div>


                <!-- CENTER : Main Featured -->
                <div class="combo-center">
                    <?php if(isset($mainNews) && !is_null($mainNews)): ?>
                    <img src="<?php echo e(asset('images/img7.webp')); ?>" class="social-icon">
                    <div class="center-overlay">
                        <div class="center-meta">
                            <span class="center-category"><?php echo e($mainNews->type ?? 'Fashion'); ?></span>
                            <span class="center-date"><?php echo e(isset($mainNews->news_date) ? date('F j, Y', strtotime($mainNews->news_date)) : 'December 7, 2023'); ?></span>
                        </div>
                        <h2 class="center-title"><?php echo e($mainNews->news_title ?? '18 Top Fall Fashion Trends from New York Fashion'); ?></h2>
                        <p class="center-text"><?php echo e($mainNews->news_content_short ?? (isset($mainNews->news_content) ? Str::limit($mainNews->news_content, 100) : 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.')); ?></p>
                        <ul class="center-links">
                            <?php if(isset($latestNews) && $latestNews->count() > 0): ?>
                                <?php $__currentLoopData = $latestNews->take(3); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $news): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <li><?php echo e($news->news_title ?? 'Fashion Exhibitions Around The World To See In 2023'); ?></li><br>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php else: ?>
                                <li>Fashion Exhibitions Around The World To See In 2023</li><br>
                                <li>New Milan Hot Spots for the Fashion Crowd – WWD</li><br>
                                <li>Angelina Jolie’s Cape Is Quite the Fashion Flashback</li>
                            <?php endif; ?>
                        </ul>
                    </div>
                    <?php else: ?>
                    <img src="<?php echo e(asset('images/img5.webp')); ?>" alt="" class="center-image">
                    <div class="center-overlay">
                        <div class="center-meta">
                            <span class="center-category">Fashion</span>
                            <span class="center-date">December 7, 2023</span>
                        </div>
                        <h2 class="center-title">18 Top Fall Fashion Trends from New York Fashion</h2>
                        <p class="center-text">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
                        <ul class="center-links">
                            <li>Fashion Exhibitions Around The World To See In 2023</li><br>
                            <li>New Milan Hot Spots for the Fashion Crowd – WWD</li><br>
                            <li>Angelina Jolie’s Cape Is Quite the Fashion Flashback</li>
                        </ul>
                    </div>
                    <?php endif; ?>
                </div>


                <!-- RIGHT : Popular News -->
                <div class="combo-right">
                    <h3 class="combo-title">Popular News</h3>
                    <?php if(isset($popularNews) && $popularNews->count() > 0): ?>
                        <?php $__currentLoopData = $popularNews->take(2); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $news): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="latest-card">
                                <img src="<?php echo e(asset('images/img8.webp')); ?>" class="social-icon">
                            <div class="latest-overlay"><?php echo e($news->news_title ?? 'Fashion Exhibitions Around The World To See In 2023'); ?></div>
                        </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php $__currentLoopData = $popularNews->skip(2)->take(3); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $news): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="popular-item">
                            <h4><?php echo e($news->news_title ?? 'Exported electricity worth nearly Rs 2 billion to Europe'); ?></h4>
                            <div class="featured-meta">
                                <span class="featured-author"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""> <?php echo e($news->stitle ?? 'Blaze'); ?></span>
                                <span class="featured-date"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""> <?php echo e(isset($news->news_date) ? date('F j, Y', strtotime($news->news_date)) : 'December 7, 2023'); ?></span>
                            </div>
                        </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php else: ?>
                        <div class="latest-card">
                            <img src="<?php echo e(asset('images/img8.webp')); ?>" alt="">
                            <div class="latest-overlay">Fashion Exhibitions Around The World To See In 2023</div>
                        </div>
                        <div class="popular-item">
                            <h4>Exported electricity worth nearly Rs 2 billion to Europe</h4>
                            <div class="featured-meta">
                                <span class="featured-author"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""> Blaze</span>
                                <span class="featured-date"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""> December 7, 2023</span>
                            </div>
                        </div>
                        <div class="popular-item">
                            <h4>How Science Failed to Unlock The Mysteries of the Human Brain</h4>
                            <div class="featured-meta">
                                <span class="featured-author"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""> Blaze</span>
                                <span class="featured-date"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""> December 7, 2023</span>
                            </div>
                        </div>
                        <div class="popular-item">
                            <h4>NASA Sets Coverage for Two Spacewalks Outside Space Station</h4>
                            <div class="featured-meta">
                                <span class="featured-author"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""> Blaze</span>
                                <span class="featured-date"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""> December 7, 2023</span>
                            </div>
                        </div>
                    <?php endif; ?>
                </div>
            </div>
        </section>


        <!-- 3rd section -->
        <section class="featured-section">
            <div class="featured-container">
                <div class="featured-header">
                    <h2>Featured Posts</h2>
                </div>
                <div class="featured-grid">
                    <?php if(isset($featuredNews) && $featuredNews->count() > 0): ?>
                        <?php $__currentLoopData = $featuredNews->take(4); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $news): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="featured-card">
                            <div class="featured-image">
                                <!-- <img src="<?php echo e(asset('images/' . ($news->photo ?? 'img6.webp'))); ?>" alt=""> -->
                                <img src="<?php echo e(asset('images/img8.webp')); ?>" class="social-icon">
                            </div>
                            <div class="featured-content">
                                <div class="featured-category"><?php echo e($news->type ?? 'Fashion • Politics'); ?></div>
                                <h3 class="featured-title"><?php echo e($news->news_title ?? 'Fashion Exhibitions Around The World To See In 2023'); ?></h3>
                                <div class="featured-meta">
                                    <span class="featured-author"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""> <?php echo e($news->stitle ?? 'Blaze'); ?></span>
                                    <span class="featured-date"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""> <?php echo e(isset($news->news_date) ? date('F j, Y', strtotime($news->news_date)) : 'December 7, 2023'); ?></span>
                                </div>
                                <p class="featured-text"><?php echo e($news->news_content_short ?? (isset($news->news_content) ? Str::limit($news->news_content, 100) : 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.')); ?></p>
                            </div>
                        </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php else: ?>
                        <div class="featured-card">
                            <div class="featured-image"><img src="<?php echo e(asset('images/img6.webp')); ?>" alt=""></div>
                            <div class="featured-content">
                                <div class="featured-category">Fashion • Politics</div>
                                <h3 class="featured-title">Fashion Exhibitions Around The World To See In 2023</h3>
                                <div class="featured-meta">
                                    <span class="featured-author"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""> Blaze</span>
                                    <span class="featured-date"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""> December 7, 2023</span>
                                </div>
                                <p class="featured-text">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
                            </div>
                        </div>
                        <div class="featured-card">
                            <div class="featured-image"><img src="<?php echo e(asset('images/img5.webp')); ?>" alt=""></div>
                            <div class="featured-content">
                                <div class="featured-category">Fashion • Politics</div>
                                <h3 class="featured-title">Fashion Exhibitions Around The World To See In 2023</h3>
                                <div class="featured-meta">
                                    <span class="featured-author"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""> Blaze</span>
                                    <span class="featured-date"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""> December 7, 2023</span>
                                </div>
                                <p class="featured-text">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
                            </div>
                        </div>
                        <div class="featured-card">
                            <div class="featured-image"><img src="<?php echo e(asset('images/img7.webp')); ?>" alt=""></div>
                            <div class="featured-content">
                                <div class="featured-category">Fashion • Politics</div>
                                <h3 class="featured-title">Fashion Exhibitions Around The World To See In 2023</h3>
                                <div class="featured-meta">
                                    <span class="featured-author"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""> Blaze</span>
                                    <span class="featured-date"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""> December 7, 2023</span>
                                </div>
                                <p class="featured-text">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
                            </div>
                        </div>
                        <div class="featured-card">
                            <div class="featured-image"><img src="<?php echo e(asset('images/img8.webp')); ?>" alt=""></div>
                            <div class="featured-content">
                                <div class="featured-category">Fashion • Politics</div>
                                <h3 class="featured-title">Fashion Exhibitions Around The World To See In 2023</h3>
                                <div class="featured-meta">
                                    <span class="featured-author"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""> Blaze</span>
                                    <span class="featured-date"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""> December 7, 2023</span>
                                </div>
                                <p class="featured-text">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
                            </div>
                        </div>
                    <?php endif; ?>
                </div>
            </div>
        </section>

        <!-- 4th section -->
        <section class="ad-banner-section">
            <div class="ad-banner-wrap">
                <!-- <img src="<?php echo e(asset('images/ad.webp')); ?>" alt="Advertisement"> -->
                <img src="<?php echo e(asset('images/img3.webp')); ?>" class="social-icon">
            </div>
        </section>


        <!-- 5th section -->
        <section class="post-news-section">
            <div class="post-news-container">
                <!-- LEFT SIDE -->
                <div class="post-area">
                    <div class="post-header">
                        <h2>Latest Posts</h2>
                        <div class="post-filter">
                            <span class="active">All</span>
                            <span>Technology</span>
                            <span>Science</span>
                        </div>
                    </div>
                    <div class="post-layout">
                        <!-- Big Post -->
                        <div class="post-main">
                            <?php if(isset($mainNews) && !is_null($mainNews)): ?>
                            <!-- <img src="<?php echo e(asset('images/' . ($mainNews->banner ?? $mainNews->photo ?? 'img5.webp'))); ?>" alt=""> -->
                            <img src="<?php echo e(asset('images/img2.webp')); ?>" class="social-icon">
                            <h3><?php echo e($mainNews->news_title ?? 'Fashion Exhibitions Around The World To See In 2023'); ?></h3>
                            <div class="post-meta"> 🕓 <?php echo e(isset($mainNews->news_date) ? date('F j, Y', strtotime($mainNews->news_date)) : 'December 7, 2023'); ?> • 0</div>
                            <p><?php echo e($mainNews->news_content_short ?? (isset($mainNews->news_content) ? Str::limit($mainNews->news_content, 100) : 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.')); ?></p>
                            <?php else: ?>
                            <img src="<?php echo e(asset('images/img5.webp')); ?>" alt="">
                            <h3>Fashion Exhibitions Around The World To See In 2023</h3>
                            <div class="post-meta"> 🕓 December 7, 2023 • 0</div>
                            <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
                            <?php endif; ?>
                        </div>
                        <!-- Post List -->
                        <div class="post-list">
                            <?php if(isset($latestNews) && $latestNews->count() > 0): ?>
                                <?php $__currentLoopData = $latestNews->take(4); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $news): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="post-item">
                                    <!-- <img src="<?php echo e(asset('images/' . ($news->photo ?? 'img6.webp'))); ?>" alt=""> -->
                                    <img src="<?php echo e(asset('images/img5.webp')); ?>" class="social-icon">
                                    <div>
                                        <h4><?php echo e($news->news_title ?? 'Tech Weapons We Need To Combat Global Warming'); ?></h4>
                                        <div class="post-meta"> 🕓 <?php echo e(isset($news->news_date) ? date('F j, Y', strtotime($news->news_date)) : 'December 7, 2023'); ?> • 0</div>
                                    </div>
                                </div>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php else: ?>
                                <div class="post-item">
                                    <img src="<?php echo e(asset('images/img6.webp')); ?>" alt="">
                                    <div><h4>Tech Weapons We Need To Combat Global Warming</h4><div class="post-meta"> 🕓 December 7, 2023 • 0</div></div>
                                </div>
                                <div class="post-item">
                                    <img src="<?php echo e(asset('images/img7.webp')); ?>" alt="">
                                    <div><h4>New Milan Hot Spots for the Fashion Crowd – WWD</h4><div class="post-meta">🕓 December 7, 2023 • 0</div></div>
                                </div>
                                <div class="post-item">
                                    <img src="<?php echo e(asset('images/img8.webp')); ?>" alt="">
                                    <div><h4>Angelina Jolie’s Cape Is Quite the Fashion Flashback</h4><div class="post-meta">🕓 December 7, 2023 • 0</div></div>
                                </div>
                                <div class="post-item">
                                    <img src="<?php echo e(asset('images/img1.webp')); ?>" alt="">
                                    <div><h4>Apple Unveils Smartwatch With a Focus on Fitness</h4><div class="post-meta">🕓 December 7, 2023 • 0</div></div>
                                </div>
                            <?php endif; ?>
                        </div>
                    </div>
                </div>
                <!-- RIGHT SIDE -->
                <div class="news-area">
                    <h2 class="news-title">Latest News</h2>
                    <div class="news-grid">
                        <?php if(isset($latestNews) && $latestNews->count() > 0): ?>
                            <?php $__currentLoopData = $latestNews->take(4); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $news): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="news-card">
                                <div class="news-thumb">
                                    <!-- <img src="<?php echo e(asset('images/' . ($news->photo ?? 'img5.webp'))); ?>" alt=""> -->
                                    <img src="<?php echo e(asset('images/img1.webp')); ?>" class="social-icon">
                                    <span><?php echo e($news->type ?? 'Fashion'); ?></span>
                                </div>
                                <h4><?php echo e($news->news_title ?? 'Fashion Exhibitions Around The World To See In 2023'); ?></h4>
                            </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php else: ?>
                            <div class="news-card">
                                <div class="news-thumb"><img src="<?php echo e(asset('images/img5.webp')); ?>" alt=""><span>Fashion</span></div>
                                <h4>Fashion Exhibitions Around The World To See In 2023</h4>
                            </div>
                            <div class="news-card">
                                <div class="news-thumb"><img src="<?php echo e(asset('images/img6.webp')); ?>" alt=""><span>Science</span></div>
                                <h4>Tech Weapons We Need To Combat Global Warming</h4>
                            </div>
                            <div class="news-card">
                                <div class="news-thumb"><img src="<?php echo e(asset('images/img7.webp')); ?>" alt=""><span>Fashion</span></div>
                                <h4>New Milan Hot Spots for the Fashion Crowd – WWD</h4>
                            </div>
                            <div class="news-card">
                                <div class="news-thumb"><img src="<?php echo e(asset('images/img8.webp')); ?>" alt=""><span>Fashion</span></div>
                                <h4>Angelina Jolie’s Cape Is Quite the Fashion Flashback</h4>
                            </div>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
        </section>


<!-- 6th section -->
<section class="triple-news-section">
    <div class="triple-news-container">
        <!-- LEFT COLUMN -->
        <div class="triple-left">
            <?php if(isset($techNews) && $techNews->count() > 0): ?>
                <?php $__currentLoopData = $techNews->take(6); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $news): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="triple-post">
                    <div class="triple-thumb">
                        <!-- <img src="<?php echo e(asset('images/' . ($news->photo ?? 'img5.webp'))); ?>" alt=""> -->
                        <img src="<?php echo e(asset('images/img1.webp')); ?>" class="social-icon">
                        <span class="triple-tag"><?php echo e($news->type ?? 'Technology'); ?></span>
                    </div>
                    <div class="triple-content">
                        <h3><?php echo e($news->news_title ?? 'Tech Weapons We Need To Combat Global Warming'); ?></h3>
                        <div class="triple-meta"><?php echo e($news->stitle ?? 'Blaze'); ?> • <?php echo e(isset($news->news_date) ? date('F j, Y', strtotime($news->news_date)) : 'December 7, 2023'); ?> • 1 min</div>
                        <p><?php echo e($news->news_content_short ?? (isset($news->news_content) ? Str::limit($news->news_content, 100) : 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.')); ?></p>
                        <a href="#">Read More</a>
                    </div>
                </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <?php else: ?>
                <div class="triple-post">
                    <div class="triple-thumb"><img src="<?php echo e(asset('images/img5.webp')); ?>" alt=""><span class="triple-tag">Fashion</span></div>
                    <div class="triple-content">
                        <h3>Fashion Exhibitions Around The World To See In 2023</h3>
                        <div class="triple-meta">Blaze • December 7, 2023 • 1 min</div>
                        <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
                        <a href="#">Read More</a>
                    </div>
                </div>
                <div class="triple-post">
                    <div class="triple-thumb"><img src="<?php echo e(asset('images/img6.webp')); ?>" alt=""><span class="triple-tag">Science</span></div>
                    <div class="triple-content">
                        <h3>Tech Weapons We Need To Combat Global Warming</h3>
                        <div class="triple-meta">Blaze • December 7, 2023 • 1 min</div>
                        <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
                        <a href="#">Read More</a>
                    </div>
                </div>
            <?php endif; ?>
        </div>
        <!-- MIDDLE COLUMN -->
        <!-- <div class="triple-middle">
            <h2 class="news-title">Latest News</h2><br>
            <?php if(isset($scienceNews) && $scienceNews->count() > 0): ?>
                <?php $__currentLoopData = $scienceNews->take(5); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $news): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="featured-card">
                    <div class="featured-image"><img src="<?php echo e(asset('images/' . ($news->photo ?? 'img6.webp'))); ?>" alt=""></div>
                    <div class="featured-content">
                        <div class="featured-category"><?php echo e($news->type ?? 'Science'); ?></div>
                        <h3 class="featured-title"><?php echo e($news->news_title ?? 'Science News'); ?></h3>
                    </div>
                </div>
                <br>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <?php else: ?>
                <div class="featured-card">
                    <div class="featured-image"><img src="<?php echo e(asset('images/img6.webp')); ?>" alt=""></div>
                    <div class="featured-content"><div class="featured-category">Fashion • Politics</div><h3 class="featured-title">Fashion Exhibitions Around The World To See In 2023</h3></div>
                </div><br>
                <div class="featured-card">
                    <div class="featured-image"><img src="<?php echo e(asset('images/img5.webp')); ?>" alt=""></div>
                    <div class="featured-content"><div class="featured-category">Fashion • Politics</div><h3 class="featured-title">Fashion Exhibitions Around The World To See In 2023</h3></div>
                </div>
            <?php endif; ?>
        </div> -->
        <!-- RIGHT SIDEBAR -->
        <div class="triple-sidebar">
            <h2 class="news-title">Find Me On</h2><br>
            <div class="sidebar-box">
                <div class="sidebar-social">
                    <a href="#"><img src="<?php echo e(asset('images/footer-instagram.webp')); ?>"></a>
                    <a href="#">
                        <img src="<?php echo e(asset('images/footer-twitter.webp')); ?>" class="social-icon">
                    <a href="#">
                        <img src="<?php echo e(asset('images/footer-youtube.webp')); ?>" class="social-icon">
                    <a href="#">
                        <img src="<?php echo e(asset('images/footer-substrack.webp')); ?>" class="social-icon">
                    </a>                
                </div>
            </div>
            <div class="sidebar-box">
                <?php if(isset($mainNews) && !is_null($mainNews)): ?>
                <img src="<?php echo e(asset('images/' . ($mainNews->banner ?? 'img5.webp'))); ?>" class="sidebar-ad" alt="Ad">
                <?php else: ?>
                <img src="<?php echo e(asset('images/img5.webp')); ?>" class="sidebar-ad" alt="Ad">
                <?php endif; ?>
            </div>
            <h2 class="news-title">Hot News</h2><br>
            <div class="sidebar-box">
                <?php if(isset($popularNews) && $popularNews->count() > 0): ?>
                    <?php $__currentLoopData = $popularNews->take(1); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $news): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="sidebar-card">
                        <div class="sidebar-card-img">
                            <!-- <img src="<?php echo e(asset('images/' . ($news->photo ?? 'img7.webp'))); ?>" alt=""> -->
                            <img src="<?php echo e(asset('images/img1.webp')); ?>" class="social-icon">
                            <span class="sidebar-tag"><?php echo e($news->type ?? 'Fashion'); ?></span>
                        </div>
                        <h4 class="sidebar-card-title"><?php echo e($news->news_title ?? 'New Milan Hot Spots for the Fashion Crowd – WWD'); ?></h4>
                        <div class="sidebar-card-date"><?php echo e(isset($news->news_date) ? date('F j, Y', strtotime($news->news_date)) : 'December 7, 2023'); ?></div>
                    </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php else: ?>
                    <div class="sidebar-card">
                        <div class="sidebar-card-img"><img src="<?php echo e(asset('images/img7.webp')); ?>" alt=""><span class="sidebar-tag">Fashion</span></div>
                        <h4 class="sidebar-card-title">New Milan Hot Spots for the Fashion Crowd – WWD</h4>
                        <div class="sidebar-card-date">December 7, 2023</div>
                    </div>
                <?php endif; ?>
            </div>
        </div>
    </div>
</section>


<!-- 7th section -->
<!-- <section class="stories-panel">
    <div class="stories-inner">
        <div class="stories-heading">
            <h2>Top Stories</h2>
        </div>
        <div class="stories-grid">
            <?php if(isset($topStories) && $topStories->count() > 0): ?>
                <?php $__currentLoopData = $topStories->take(4); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $news): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="story-box">
                    <img src="<?php echo e(asset('images/' . ($news->photo ?? 'img1.webp'))); ?>" alt="">
                    <div class="story-overlay">
                        <span class="story-label"><?php echo e($news->type ?? 'Technology'); ?></span>
                        <h3 class="story-title"><?php echo e($news->news_title ?? 'Google’s Self-Designed Tensor Chips will Power Its Next Pixel'); ?></h3>
                        <div class="story-meta">
                            <div class="meta-left"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""><span><?php echo e($news->stitle ?? 'Blaze'); ?></span></div>
                            <div class="meta-right"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""><span><?php echo e(isset($news->news_date) ? date('F j, Y', strtotime($news->news_date)) : 'Dec 7, 2023'); ?></span></div>
                        </div>
                    </div>
                </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <?php else: ?>
                <div class="story-box">
                    <img src="<?php echo e(asset('images/img1.webp')); ?>" alt="">
                    <div class="story-overlay">
                        <span class="story-label">Technology</span>
                        <h3 class="story-title">Google’s Self-Designed Tensor Chips will Power Its Next Pixel</h3>
                        <div class="story-meta">
                            <div class="meta-left"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""><span>Blaze</span></div>
                            <div class="meta-right"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""><span>Dec 7, 2023</span></div>
                        </div>
                    </div>
                </div>
                <div class="story-box">
                    <img src="<?php echo e(asset('images/img2.webp')); ?>" alt="">
                    <div class="story-overlay">
                        <span class="story-label">Technology</span>
                        <h3 class="story-title">Sony WF-10XM4: Headphones Are Our Absolute Favorite</h3>
                        <div class="story-meta">
                            <div class="meta-left"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""><span>Blaze</span></div>
                            <div class="meta-right"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""><span>Dec 7, 2023</span></div>
                        </div>
                    </div>
                </div>
                <div class="story-box">
                    <img src="<?php echo e(asset('images/img3.webp')); ?>" alt="">
                    <div class="story-overlay">
                        <span class="story-label">Politics</span>
                        <h3 class="story-title">What Is Women’s Equality Day and Why Is It Celebrated?</h3>
                        <div class="story-meta">
                            <div class="meta-left"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""><span>Blaze</span></div>
                            <div class="meta-right"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""><span>Dec 7, 2023</span></div>
                        </div>
                    </div>
                </div>
                <div class="story-box">
                    <img src="<?php echo e(asset('images/img4.webp')); ?>" alt="">
                    <div class="story-overlay">
                        <span class="story-label">Science</span>
                        <h3 class="story-title">How Science Failed to Unlock the Mysteries of the Human</h3>
                        <div class="story-meta">
                            <div class="meta-left"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""><span>Blaze</span></div>
                            <div class="meta-right"><img src="<?php echo e(asset('images/clock.webp')); ?>" alt=""><span>Dec 7, 2023</span></div>
                        </div>
                    </div>
                </div>
            <?php endif; ?>
        </div>
    </div>
</section> -->

    </div>
</section>



<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\news-sitee\resources\views/index.blade.php ENDPATH**/ ?>