<?php $__env->startSection('content'); ?>
    <?php $__env->startSection('title'); ?>
        <?php echo e('Home'); ?>

    <?php $__env->stopSection(); ?>
    <section id="page" class="container-fliud">
        <div class="container default-container content-container lr-border">
            <div class="row m-b-1">
                <?php $__currentLoopData = $data['adds']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $a): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="col-xs-12 col-sm-6 col-md-3 col-lg-3 col-xl-3">
                        <div class="box-ad m-top-1 mt-2">
                            <a href="<?php echo e($a->adds_link); ?>" target="_blank">
                                <img class="img-responsive ads-img" src="<?php echo e(asset('/upload/' . $a->addsImg)); ?>">
                            </a>
                        </div>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
            <!-- ==========================./For-Advertisement-top====================== -->

            <div class="row m-b-1">
                <!-- ======================Lead-news==================================== -->
                <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xl-6">
                    <div class="home-lead">
                        <div id="main-home-lead" class="carousel slide" data-bs-ride="carousel">
                            <!-- Indicators -->
                            <ol class="carousel-indicators">
                                <li data-bs-target="#main-home-lead" data-bs-slide-to="0" class="active"></li>
                                <li data-bs-target="#main-home-lead" data-bs-slide-to="1"></li>
                                <li data-bs-target="#main-home-lead" data-bs-slide-to="2"></li>
                                <li data-bs-target="#main-home-lead" data-bs-slide-to="3"></li>
                                <li data-bs-target="#main-home-lead" data-bs-slide-to="4"></li>
                            </ol>

                            <!-- Wrapper for slides -->
                            <div class="carousel-inner">
                                <div class="carousel-item active">
                                    <div class="box-card">
                                        <div class="article-box lead-height">
                                            <div class="box-media">
                                                <?php if($data['newsLead']): ?>
                                                    <a href="<?php echo e(url('news_details/' . $data['newsLead']->id)); ?>">
                                                        <img class="img-responsive lead-img-slide"
                                                            src="<?php echo e(asset('/upload/' . $data['newsLead']->postImage)); ?>"
                                                            alt="<?php echo e($data['newsLead']->postTitle); ?>"
                                                            style="width: 100%; height: 320px;">
                                                    </a>
                                                <?php endif; ?>
                                            </div>
                                            <div class="p-1">
                                                <div class="title-body">
                                                    <?php if($data['newsLead']): ?>
                                                        <a href="<?php echo e(url('news_details/' . $data['newsLead']->id)); ?>">
                                                            <h4 class="article-title-lead">
                                                                <?php echo e($data['newsLead']->postTitle); ?>

                                                            </h4>
                                                        </a>
                                                    <?php endif; ?>
                                                </div>
                                                <div class="content-body">
                                                    <?php if($data['newsLead']): ?>
                                                        <a href="<?php echo e(url('news_details/' . $data['newsLead']->id)); ?>"
                                                            style="color: #000;">
                                                            <?php
                                                                echo $data['newsLead']->postBody;
                                                            ?>
                                                        </a>
                                                    <?php endif; ?>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <?php $__currentLoopData = $data['slide']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $slide): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <div class="carousel-item">
                                        <div class="item ">
                                            <div class="box-card">
                                                <div class="article-box lead-height">
                                                    <div class="box-media">
                                                        <a href="<?php echo e(url('news_details/' . $slide->id)); ?>">
                                                            <img class="img-responsive lead-img-slide"
                                                                src="<?php echo e(asset('/upload/' . $slide->postImage)); ?>"
                                                                alt="<?php echo e($slide->postTitle); ?>"
                                                                style="width: 100%; height: 320px;">
                                                        </a>
                                                    </div>
                                                    <div class="p-1">
                                                        <div class="title-body">
                                                            <a href="<?php echo e(url('news_details/' . $slide->id)); ?>">
                                                                <h4 class="article-title-lead"><?php echo e($slide->postTitle); ?></h4>
                                                            </a>
                                                        </div>
                                                        <div class="content-body">
                                                            <a href="<?php echo e(url('news_details/' . $slide->id)); ?>"
                                                                style="color: #000;">
                                                                <?php
                                                                    echo $slide->postBody;
                                                                ?>
                                                            </a>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>

                            <!-- Controls -->
                            <button class="carousel-control-prev" type="button" data-bs-target="#main-home-lead"
                                data-bs-slide="prev">
                                <span class="carousel-control-prev-icon" aria-hidden="true"></span>
                                <span class="visually-hidden">Previous</span>
                            </button>
                            <button class="carousel-control-next" type="button" data-bs-target="#main-home-lead"
                                data-bs-slide="next">
                                <span class="carousel-control-next-icon" aria-hidden="true"></span>
                                <span class="visually-hidden">Next</span>
                            </button>
                        </div>
                    </div>
                    <!-- =======================./Home-lead-Slider======================== -->
                </div>
                <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xl-6">
                    <div class="row m-b-1">
                        <div class="col-sm-12 col-md-6">
                            <div class="article-box">
                                <div class="list-header">
                                    <a href="" target="_blank">
                                        <h4 class="list-title" style="background-color:#BB1919; color: #fff;">
                                            সর্বাধিক পঠিত
                                        </h4>
                                    </a>
                                </div>
                                <div class="my-custom-scrollbar">
                                    <div class="list-group">
                                        <?php $__currentLoopData = $data['newsLatest']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $nL): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <a href="<?php echo e(url('news_details/' . $nL->id)); ?>" class="list-group-item news-item">
                                                <span class="news-icon">▶</span>
                                                <span class="news-text"><?php echo e($nL->postTitle); ?></span>
                                            </a>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="col-sm-12 col-md-6">
                            <div class="article-box">
                                <div class="list-header">
                                    <a href="" target="_blank">
                                        <h4 class="list-title" style="background-color:#BB1919; color: #fff;">
                                            সর্বশেষ খবর
                                        </h4>
                                    </a>
                                </div>
                                <div class="my-custom-scrollbar">
                                    <div class="list-group">
                                        <?php $__currentLoopData = $data['newsPopular']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $nP): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <a href="<?php echo e(url('news_details/' . $nP->id)); ?>" class="list-group-item news-item">
                                                <span class="news-icon">▶</span>
                                                <span class="news-text"><?php echo e($nP->postTitle); ?></span>
                                            </a>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>


                    
                    <!-- ======================== cinema ============================ -->

                </div>
            </div>
            <!-- ========================./Home-Lead-Section============================ -->

            <div class="row m-b-1">
                <?php $__currentLoopData = $data['addss']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ad): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="col-xs-12 col-sm-6 col-md-3 col-lg-3">
                        <div class="box-ad">
                            <a href="<?php echo e($ad->adds_link); ?>" target="_blank">
                                <img class="img-responsive ads-img-responsive ads-img"
                                    src="<?php echo e(asset('/upload/' . $ad->addsImg)); ?>">
                            </a>
                        </div>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
            <!-- ========================./Home-Lead-Section============================ -->

            <div class="row m-b-1">
                <?php $__currentLoopData = $data['featherPost1']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $featherPost1): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="col-xs-12 col-sm-6 col-md-4 col-lg-4">
                        <div class="box-card">
                            <div class="article-box">
                                <div class="media-left">
                                    <a href="<?php echo e(url('news_details/' . $featherPost1->id)); ?>">
                                        <img src="<?php echo e(asset('/upload/' . $featherPost1->postImage)); ?>"
                                            alt="<?php echo e($featherPost1->postTitle); ?>" style="width: 100px; height: 82px;">
                                    </a>
                                </div>
                                <div class="media-right">
                                    <a href="<?php echo e(url('news_details/' . $featherPost1->id)); ?>">
                                        <h4 class="article-title"> <?php echo e($featherPost1->postTitle); ?></h4>
                                    </a>
                                </div>
                            </div>
                        </div>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>

            <!-- ==========================./For-Advertisement========================== -->

            <div id="first-cat" class="row m-b-1">
                <!-- ============================= national ============================ -->
                <?php
                    $start = 1;
                    $end = 100;
                    $array = range($start, $end);
                ?>
                <?php $__currentLoopData = $array; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php
                        $key = 'cat' . $i;
                    ?>
                    <?php if(!empty($cat[$key])): ?>
                        <div class="col-12">
                            <div class="box-card">
                                <div class="">
                                    <div class="cat-header">
                                        <a href="<?php echo e(url('category/' . $cat[$key]->id)); ?>">
                                            <h4
                                                style="color: #BB1919; border-bottom: 3px solid #BB1919; padding: 15px 10px; font-weight: bold;">
                                                <?php echo e($cat[$key]->name); ?>

                                            </h4>
                                        </a>
                                    </div>
                                    <div class="row" style="background: #f2f2f2">
                                        <?php $__currentLoopData = $news[$key]; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <div class="col-xs-12 col-sm-6 col-md-4 col-lg-4">
                                                <div style="background: #fff">
                                                    <div class="article-box" >
                                                        <div class="media-left">
                                                            <a href="<?php echo e(url('news_details/' . $item->id)); ?>">
                                                                <img src="<?php echo e(asset('/upload/' . $item->postImage)); ?>"
                                                                    alt="<?php echo e($item->postTitle); ?>" style="width: 100px; height: 82px;">
                                                            </a>
                                                        </div>
                                                        <div class="media-right">
                                                            <a href="<?php echo e(url('news_details/' . $item->id)); ?>">
                                                                <h4 class="article-title"> <?php echo e($item->postTitle); ?></h4>
                                                            </a>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </div>
                                </div>
                                
                            </div>
                        </div>
                    <?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
            <!-- ==========================./For-Advertisement========================== -->

            

            <!-- ======================./Home-Category-Section-o1======================= -->

            

            


            <!-- ======================./Home-Category-Section-o1======================= -->
            
                <!-- ============================= national ============================ -->
                

                <!--========================== Politics =================================-->
                
                <!-- ============================= national ============================ -->
                
                <!--========================== Politics =================================-->
                
                <!-- ========================== econimics ============================== -->
                
                <!-- ======================== Bank-Insurance =========================== -->
                
                
            <!-- ==========================./For-Advertisement========================== -->

            
            <!-- ==========================./For-Advertisement========================== -->


            <!-- ======================./Home-Category-Section-o1======================= -->
            

                

                <!--========================== Politics =================================-->
                

                <!-- ========================== econimics ============================== -->
                

                <!-- ======================== Bank-Insurance =========================== -->
                
                
            <!-- ==========================./For-Advertisement========================== -->



            <!-- ======================./Home-Category-Section-o1======================= -->

            
                <!--======================= agriculture-environment and education =====================-->
                

                <!--============================ entertainment =================================-->
                
                
            <!-- ======================./Home-Category-Section-o5======================= -->

            
                <!--=========================== religion ================================-->
                
                <!--========================= career_job_news ===========================-->
                

                <!-- ========================== personality ============================ -->
                

                <!--====================== corporate-corporation ========================-->
                
                
            <!-- ======================./Home-Category-Section-o5======================= -->


            
                <!-- ========================== personality ============================ -->
                

                <!--====================== corporate-corporation ========================-->
                

                
                <!--========================= career_job_news ===========================-->
                
                

            <!-- ======================./Home-Category-Section-o8======================= -->
    </section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('fontend.inc.headder', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\All Project\SAWebSoft\Laravel Project\news-portal-laravel-web\resources\views/fontend/index.blade.php ENDPATH**/ ?>