
<div class="bgWHite hidden-xs marginT40">

  

  <div class="container">
    <div class="row">

      <div class="col-sm-9 col-md-9 paddingR5">

        <div class="row hoverBlue">
          <div class="col-sm-12 col-md-12">
            <div class="row marginLR-10 desktopFlexRow">
              <div class="col-sm-8 col-md-8 paddingLR10 borderC1R1">
                <div class="row paddingLR5">
                  
                  <?php if(isset($sliders) && $sliders->count() > 0): ?>
                  <?php $lead = $sliders->first(); ?>
                  <div class="col-sm-12 col-md-12 paddingLR10 desktopSectionLead">
                    <div class="thumbnail marginB0 borderRadius0">
                      <div class="positionRelative">
                        <a href="<?php echo e(route('frontend.postBySubcategory.details',[$lead->category->slug ?? '', $lead->slug])); ?>"><img
                            src="<?php echo e(asset('assets/images/post/'.$lead->image_big)); ?>"
                            class="img-responsive borderRadius0"
                            alt="<?php echo e($lead->title); ?>"></a>
                      </div>
                      <div class="caption"
                        style="background-color: #ffffff;margin: -40px 20px 0px 20px;z-index: 9;position: relative;padding: 20px; border-radius: 10px;box-shadow: 0px 0px 6px rgb(186 186 186 / 40%);">
                        <span class="bgBrand"
                          style="height: 20px;position: absolute;width: 150px;top: 0;border-radius: 20px;margin-top: -10px;"></span>
                        <div class="positionRelative">
                          <h3 class="title8 marginT10"><strong><?php if($lead->shoulder): ?><span class="shoulder"><?php echo e($lead->shoulder); ?></span> <i class="fa fa-circle dot"></i> <?php endif; ?><?php echo e($lead->title); ?></strong></h3>
                          <p class="desktopSummary marginB5 marginT15"><?php echo strlen($lead->short_description) > 150 ? mb_substr($lead->short_description, 0, 150, "utf-8").'...' : $lead->short_description; ?></p>
                          <p class="desktopTime marginT10"><i class="fa fa-clock title1_4 color2 verticalAlignMiddle marginT1"></i> <?php echo e($lead->createdAt() ?? ''); ?></p>
                          <a href="<?php echo e(route('frontend.postBySubcategory.details',[$lead->category->slug ?? '', $lead->slug])); ?>" class="linkOverlay"></a>
                        </div>
                      </div>
                    </div>
                  </div>
                  <?php endif; ?>
                  
                </div>

                
                <div class="row marginLR-15 desktopFlexRow desktopSectionListMedia topNewsDiv desktopFlexRow">
                  <div class="col-sm-12 col-md-12">
                    <p class="borderC1T1 marginB5 marginT15"></p>
                  </div>
                  <?php if(isset($sliders)): ?>
                  <?php $__currentLoopData = $sliders->skip(1)->take(2); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $slider): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                  <div class="col-sm-6 col-md-6 paddingLR15 desktopSectionLead borderC1R1 marginT10 marginB0">
                    <div class="thumbnail marginB0 borderC1B1 borderRadius0 h100P">
                      <div class="positionRelative">
                        <img
                          src="<?php echo e(asset('assets/images/post/'.$slider->image_big)); ?>"
                          class="img-responsive borderRadius0"
                          alt="<?php echo e($slider->title); ?>">
                      </div>
                      <div class="caption paddingB0">
                        <h3 class="title11 marginT0"><?php if($slider->shoulder): ?><span class="shoulder"><?php echo e($slider->shoulder); ?></span> <i class="fa fa-circle dot"></i> <?php endif; ?><?php echo e($slider->title); ?></h3>
                      </div>
                      <a href="<?php echo e(route('frontend.postBySubcategory.details',[$slider->category->slug ?? '', $slider->slug])); ?>" class="linkOverlay"></a>
                    </div>
                  </div>
                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                  <?php endif; ?>
                </div>
                
              </div>

              <div class="col-sm-4 col-md-4 paddingLR10">
                
                <?php if(isset($slider_rights_firsts) && $slider_rights_firsts->count() > 0): ?>
                <?php $rightFirst = $slider_rights_firsts->first(); ?>
                <div class="row">
                  <div class="col-sm-12 col-md-12 desktopSectionLead marginB0">
                    <div class="thumbnail marginB0 borderC1B1 borderRadius0 h100P">
                      <div class="positionRelative">
                        <img src="<?php echo e(asset('assets/images/post/'.$rightFirst->image_big)); ?>"
                          class="img-responsive borderRadius0"
                          alt="<?php echo e($rightFirst->title); ?>">
                      </div>
                      <div class="caption">
                        <h3 class="title11 marginT0"><?php if($rightFirst->shoulder): ?><span class="shoulder"><?php echo e($rightFirst->shoulder); ?></span> <i class="fa fa-circle dot"></i> <?php endif; ?><?php echo e($rightFirst->title); ?></h3>
                      </div>
                      <a href="<?php echo e(route('frontend.postBySubcategory.details',[$rightFirst->category->slug ?? '', $rightFirst->slug])); ?>" class="linkOverlay"></a>
                    </div>
                  </div>
                </div>

                
                <div class="row">
                  <div class="col-sm-12 col-md-12 desktopSectionListMedia listItemLastBB0 positionRelative">
                    <?php $__currentLoopData = $slider_rights_firsts->skip(1)->take(2); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="media positionRelative paddingB10 marginT5 hoverImage hoverRedText">
                      <p><img class="borderRadius0 marginL5 marginB0"
                          src="<?php echo e(asset('assets/images/post/'.$item->image_big)); ?>"
                          width="100" alt="<?php echo e($item->title); ?>"
                          style="display: block;float: right;"></p>
                      <h4 class="title11 paddingB0 marginT-15 marginB0 colorBlack"><?php echo e($item->title); ?></h4>
                      <a href="<?php echo e(route('frontend.postBySubcategory.details',[$item->category->slug ?? '', $item->slug])); ?>" class="linkOverlay"></a>
                    </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                  </div>
                </div>

                
                <div class="row">
                  <div class="col-sm-12 col-md-12 desktopSectionListMedia listItemLastBB0">
                    <p class="borderC1T1 marginB5 marginT0"></p>
                    <?php $__currentLoopData = $is_trendings->take(5); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $trending): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="media positionRelative paddingB10">
                      <div class="media-body">
                        <h4 class="title11 paddingB0"><?php if($trending->shoulder): ?><span class="shoulder"><?php echo e($trending->shoulder); ?></span> <i class="fa fa-circle dot"></i> <?php endif; ?><?php echo e($trending->title); ?></h4>
                      </div>
                      <a href="<?php echo e(route('frontend.postBySubcategory.details',[$trending->category->slug ?? '', $trending->slug])); ?>" class="linkOverlay"></a>
                    </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                  </div>
                </div>
                <?php endif; ?>
              </div>
            </div>
          </div>


          
          <?php if(isset($home_page_posts) && $home_page_posts->where('is_event', 1)->count() > 0): ?>
          <?php
            $eventCat = $home_page_posts->where('is_event', 1)->first();
            $eventPosts = \App\Models\Post::where('category_id', $eventCat->id)->where('status', true)->where('is_pending', 0)->orderBy('id','desc')->limit(10)->get();
            $eventLead = $eventPosts->first();
            $eventList = $eventPosts->skip(1);
          ?>
          <div class="col-sm-12 col-md-12 marginB10 marginT20">
            <p class="borderC1T2 marginB20"></p>
            <div class="row">
              <div class="col-sm-12 col-md-12 marginT10">
                <div class="borderC1-1 borderRadius4 shadow1" style="background-color: #82070a">
                  <div class="row marginLR-10">
                    <div class="col-sm-12 col-md-12 paddingLR10">
                      <p class="marginB0" style="background-color: #450000;"><a aria-label="<?php echo e($eventCat->title); ?>"
                          href="<?php echo e(route('frontend.category', $eventCat->slug)); ?>"
                          class="textDecorationNone colorWhite hoverOrange fontUpperCase lineHeight35">
                          <?php if($eventCat->image): ?><img src="<?php echo e(asset('assets/images/category/'.$eventCat->image)); ?>" alt="<?php echo e($eventCat->title); ?>" title="<?php echo e($eventCat->title); ?>" class="img-responsive borderTRadius4 marginCenter">
                          <?php else: ?> <span class="title10 paddingLR20"><?php echo e($eventCat->title); ?></span>
                          <?php endif; ?></a></p>
                    </div>
                  </div>

                  <div class="row marginLR-10 paddingLR10 marginT15 marginB15">
                    <div class="col-sm-7 col-md-7 borderC1R1">
                      <?php if($eventLead): ?>
                      <div class="row desktopFlexRow">
                        <div class="col-sm-12 col-md-12 desktopSectionLead">
                          <div class="thumbnail marginB0 bgUnset">
                            <div class="positionRelative">
                              <img src="<?php echo e(asset('assets/images/post/'.$eventLead->image_big)); ?>"
                                class="img-responsive borderRadius0" alt="<?php echo e($eventLead->title); ?>">
                            </div>
                            <div class="caption">
                              <h3 class="title10 marginT5 colorWhite"><?php echo e($eventLead->title); ?></h3>
                              <p class="desktopSummary marginB5 colorWhite"><?php echo strlen($eventLead->short_description) > 100 ? mb_substr($eventLead->short_description, 0, 100, "utf-8").'...' : $eventLead->short_description; ?></p>
                            </div>
                            <a href="<?php echo e(route('frontend.postBySubcategory.details',[$eventLead->id, $eventLead->slug])); ?>" class="linkOverlay"></a>
                          </div>
                        </div>
                      </div>
                      <?php endif; ?>
                    </div>

                    <div class="col-sm-5 col-md-5">
                      <div class="desktopSectionListMedia listItemFirstPT0 listItemLastBB0 marginT-5 scrollbar1"
                        style="height: 465px;overflow-y: scroll;">
                        <?php $__currentLoopData = $eventList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="media positionRelative">
                          <div class="media-left">
                            <div class="positionRelative">
                              <img class="media-object borderRadius0"
                                src="<?php echo e(asset('assets/images/post/'.$row->image_big)); ?>"
                                width="160" alt="<?php echo e($row->title); ?>">
                            </div>
                          </div>
                          <div class="media-body marginL5">
                            <h4 class="title11 colorWhite"><?php echo e($row->title); ?></h4>
                          </div>
                          <a href="<?php echo e(route('frontend.postBySubcategory.details',[$row->id, $row->slug])); ?>" class="linkOverlay"></a>
                        </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <?php endif; ?>
          


          
          <?php
            $default_language = DB::table('languages')->where('is_default', 1)->first();
            $excludeSlugs = ['all-bangladesh'];
            $excludeIds = isset($secondcat) ? [$secondcat->id] : [];
            $allCats = DB::table('categories')->where('language_id', $default_language->id)->where('show_at_homepage', 1)->whereNull('parent_id')->whereNotIn('slug', $excludeSlugs)->whereNotIn('id', $excludeIds)->orderBy('category_order','asc')->get();
            $catGroup1 = $allCats->take(3);
          ?>

          <div class="col-sm-12 col-md-12 marginT20">
            <p class="borderC1T2 marginB30"></p>
            <div class="row desktopFlexRow">
              <?php $__currentLoopData = $catGroup1; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
              <?php
                $catPosts = DB::table('posts')->where('category_id', $cat->id)->where('status',1)->where('is_pending',0)->orderBy('id','desc')->limit(4)->get();
                                $catLead = $catPosts->first();
                $catList = $catPosts->skip(1);
                $isLast = $loop->last;
              ?>
              <div class="col-sm-4 col-md-4 <?php echo e(!$isLast ? 'borderC1R2' : ''); ?>">
                <div class="row paddingLR5 h100P">
                  <div class="col-sm-12 col-md-12 paddingLR10">
                    <h2 class="desktopSectionTitle border0 marginT-15"><a aria-label="<?php echo e($cat->title); ?>"
                        href="<?php echo e(route('frontend.category', $cat->slug)); ?>"><?php echo e($cat->title); ?> <span
                          class="verticalAlignMiddle title2_0 colorBrand marginL10">সব <i
                            class=" fa fa-angle-right title1_6"></i></span></a></h2>
                  </div>
                  <?php if($catLead): ?>
                  <div class="col-sm-12 col-md-12 paddingLR10 desktopSectionLead">
                    <div class="thumbnail marginB0 borderC1B1 borderRadius0">
                      <div class="positionRelative">
                        <img src="<?php echo e(asset('assets/images/post/'.$catLead->image_big)); ?>"
                          class="img-responsive borderRadius0" alt="<?php echo e($catLead->title); ?>">
                      </div>
                      <div class="caption">
                        <h3 class="title11 marginT0"><?php echo e($catLead->title); ?></h3>
                      </div>
                      <a href="<?php echo e(route('frontend.postBySubcategory.details',[$catLead->id, $catLead->slug])); ?>" class="linkOverlay"></a>
                    </div>
                  </div>
                  <?php endif; ?>

                  <div class="col-sm-12 col-md-12 paddingLR10 desktopSectionListMedia listItemLastBB0">
                    <?php $__currentLoopData = $catList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="media positionRelative paddingB10">
                      <div class="media-body">
                        <h4 class="title11 paddingB0"><?php if(isset($post->shoulder) && $post->shoulder): ?><span class="shoulder"><?php echo e($post->shoulder); ?></span> <i class="fa fa-circle dot"></i> <?php endif; ?><?php echo e($post->title); ?></h4>
                      </div>
                      <a href="<?php echo e(route('frontend.postBySubcategory.details',[$post->id, $post->slug])); ?>" class="linkOverlay"></a>
                    </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                  </div>
                </div>
              </div>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
          </div>

          
          <div class="col-sm-12 col-md-12">
            <div class="borderC1T1 marginCenter overflowHidden w970 marginT15 paddingT15">
              <?php echo $gs->homepageads1_970 ?? ''; ?>

            </div>
          </div>

        </div>
      </div>

      
      <div class="col-sm-3 col-md-3">
        
        <div class="marginCenter w300 marginB20">
          <?php echo $gs->sidebar_ads ?? ''; ?>

        </div>

        
        <div class="row">
          <div class="col-sm-12 col-md-12 marginB20">
            <?php echo $__env->make('partial.front.sidebar-latest-popular', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
          </div>
        </div>
        

        
        <div class="marginCenter w300 marginB20">
          <?php echo $gs->sidebar_ads2 ?? ''; ?>

        </div>

        
        <?php if(isset($secondcat)): ?>
        <div class="row marginLR0 padding5 borderC1-1 borderRadius4 marginB20">
          <div class="col-sm-12 col-md-12 paddingLR10 borderC1B1">
            <h2 class="desktopSectionTitle border0 text-center title10 paddingT7 paddingB5"><a aria-label="<?php echo e($secondcat->title); ?>"
                href="<?php echo e(route('frontend.category', $secondcat->slug)); ?>"><?php echo e($secondcat->title); ?></a></h2>
          </div>
          <?php if(isset($secondcatpostbig)): ?>
          <?php $__currentLoopData = $secondcatpostbig; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
          <div class="col-sm-12 col-md-12 paddingLR10 desktopSectionLead marginT10">
            <div class="thumbnail marginB0 borderC1B1 borderRadius0">
              <div class="positionRelative">
                <img src="<?php echo e(asset('assets/images/post/'.$row->image_big)); ?>"
                  class="img-responsive borderRadius0" alt="<?php echo e($row->title); ?>">
              </div>
              <div class="caption">
                <h3 class="title11 marginT0"><?php echo e($row->title); ?></h3>
              </div>
              <a href="<?php echo e(route('frontend.postBySubcategory.details',[$row->id, $row->slug])); ?>" class="linkOverlay"></a>
            </div>
          </div>
          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
          <?php endif; ?>

          <?php if(isset($secondcatpostsmall)): ?>
          <div class="col-sm-12 col-md-12 paddingLR10 desktopSectionListMedia listItemLastBB0">
            <?php $__currentLoopData = $secondcatpostsmall; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="media positionRelative paddingB10">
              <div class="media-body">
                <h4 class="title11 paddingB0"><?php echo e($row->title); ?></h4>
              </div>
              <a href="<?php echo e(route('frontend.postBySubcategory.details',[$row->id, $row->slug])); ?>" class="linkOverlay"></a>
            </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
          </div>
          <?php endif; ?>
        </div>
        <?php endif; ?>
      </div>
      

    </div>
  </div>


  
  <?php if(isset($video_large) || (isset($video_smalls) && $video_smalls->count() > 0)): ?>
  <div class="marginT50 bg2" style="padding-bottom: 50px;padding-top: 50px">
    <div class="container">
      <div class="row shadow3 borderRadius10 marginLR0 borderC1-1">
        <div class="col-sm-12 col-md-12">
          <h2 class="desktopSectionTitle border0"><a aria-label="ভিডিও" href="<?php echo e(url('/videos')); ?>"
              class="">ভিডিও <span class="verticalAlignMiddle title2_0 marginL10">সব <i
                  class=" fa fa-angle-right title1_6"></i></span></a></h2>
        </div>
        <div class="col-sm-12 col-md-12">
          <div class="row marginLR-10 desktopFlexRow">
            <?php if($video_large): ?>
            <div class="col-sm-4 col-md-4 paddingL10 borderC1R1">
              <div class="row desktopFlexRow">
                <div class="col-sm-12 col-md-12 desktopSectionLead">
                  <div class="thumbnail marginB0 bgUnset">
                    <div class="positionRelative">
                      <img src="<?php echo e(asset('assets/images/post/'.$video_large->image_big)); ?>"
                        class="img-responsive borderRadius0" alt="<?php echo e($video_large->title); ?>">
                      <span class="fa fa-play pvIconLarge"></span>
                    </div>
                    <div class="caption">
                      <h3 class="title10 marginT5"><?php echo e($video_large->title); ?></h3>
                    </div>
                    <a href="<?php echo e(route('frontend.postBySubcategory.details',[$video_large->category->slug ?? '', $video_large->slug])); ?>" class="linkOverlay"></a>
                  </div>
                </div>
              </div>
            </div>
            <?php endif; ?>

            <?php if(isset($video_smalls) && $video_smalls->count() > 0): ?>
            <?php $videoSecond = $video_smalls->first(); ?>
            <?php if($videoSecond): ?>
            <div class="col-sm-4 col-md-4 paddingR10 borderC1R1">
              <div class="row desktopFlexRow">
                <div class="col-sm-12 col-md-12 desktopSectionLead">
                  <div class="thumbnail marginB0 bgUnset">
                    <div class="positionRelative">
                      <img src="<?php echo e(asset('assets/images/post/'.$videoSecond->image_big)); ?>"
                        class="img-responsive borderRadius0" alt="<?php echo e($videoSecond->title); ?>">
                      <span class="fa fa-play pvIconLarge"></span>
                    </div>
                    <div class="caption">
                      <h3 class="title10 marginT5"><?php echo e($videoSecond->title); ?></h3>
                    </div>
                    <a href="<?php echo e(route('frontend.postBySubcategory.details',[$videoSecond->category->slug ?? '', $videoSecond->slug])); ?>" class="linkOverlay"></a>
                  </div>
                </div>
              </div>
            </div>
            <?php endif; ?>

            <div class="col-sm-4 col-md-4">
              <div class="desktopSectionListMedia listItemFirstPT0 listItemLastBB0 marginT-5">
                <?php $__currentLoopData = $video_smalls->skip(1)->take(3); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $vs): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="media positionRelative">
                  <div class="media-left">
                    <div class="positionRelative">
                      <img class="media-object borderRadius0"
                        src="<?php echo e(asset('assets/images/post/'.$vs->image_big)); ?>"
                        width="160" alt="<?php echo e($vs->title); ?>">
                      <span class="fa fa-play pvIconSmall"></span>
                    </div>
                  </div>
                  <div class="media-body marginL5">
                    <h4 class="title11"><?php echo e($vs->title); ?></h4>
                  </div>
                  <a href="<?php echo e(route('frontend.postBySubcategory.details',[$vs->category->slug ?? '', $vs->slug])); ?>" class="linkOverlay"></a>
                </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
              </div>
            </div>
            <?php endif; ?>
          </div>
        </div>
      </div>
    </div>
  </div>
  <?php endif; ?>
  


  
  <?php
    $countrycat = DB::table('categories')->where('language_id', $default_language->id)->where('slug','all-bangladesh')->first();
    if(!$countrycat) $countrycat = $allCats->skip(3)->first();
  ?>
  <?php if($countrycat): ?>
  <?php
    $countryPosts = DB::table('posts')->where('category_id', $countrycat->id)->where('status',1)->where('is_pending',0)->orderBy('id','desc')->limit(6)->get();
    $countryLeads = $countryPosts->take(2);
    $countryList = $countryPosts->skip(2)->take(3);
  ?>
  <div class="container marginT50">
    <div class="row desktopFlexRow">
      <div class="col-sm-8 col-md-8 borderC1R2">
        <div class="row h100P">
          <div class="col-sm-12 col-md-12">
            <h2 class="desktopSectionTitle border0 marginT-15"><a aria-label="<?php echo e($countrycat->title); ?>"
                href="<?php echo e(route('frontend.category', $countrycat->slug)); ?>"><?php echo e($countrycat->title); ?> <span
                  class="verticalAlignMiddle title2_0 colorBrand marginL10">সব <i
                    class=" fa fa-angle-right title1_6"></i></span></a></h2>
          </div>

          <div class="col-sm-4 col-md-4 borderC1R1">
            <div class="row listItemLastBB0 marginT-5">
              <?php $__currentLoopData = $countryLeads; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cp): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
              <div class="col-sm-12 col-md-12 desktopSectionLead">
                <div class="thumbnail marginB10 borderC1B1 marginT5">
                  <div class="positionRelative">
                    <img src="<?php echo e(asset('assets/images/post/'.$cp->image_big)); ?>"
                      class="img-responsive borderRadius0" alt="<?php echo e($cp->title); ?>">
                  </div>
                  <div class="caption<?php echo e($loop->last ? ' paddingB0' : ''); ?>">
                    <h3 class="title11 marginT0 text-center"><?php echo e($cp->title); ?></h3>
                  </div>
                  <a href="<?php echo e(route('frontend.postBySubcategory.details',[$cp->id, $cp->slug])); ?>" class="linkOverlay"></a>
                </div>
              </div>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
          </div>

          <div class="col-sm-8 col-md-8">
            <div class="desktopSectionListMedia listItemFirstPT0 listItemLastBB0 marginT-5">
              <?php $__currentLoopData = $countryList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cl): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
              <div class="media positionRelative">
                <div class="media-left">
                  <div class="positionRelative">
                    <img class="media-object borderRadius0"
                      src="<?php echo e(asset('assets/images/post/'.$cl->image_big)); ?>"
                      width="230" alt="<?php echo e($cl->title); ?>">
                  </div>
                </div>
                <div class="media-body marginL5">
                  <h4 class="title11"><?php echo e($cl->title); ?></h4>
                </div>
                <a href="<?php echo e(route('frontend.postBySubcategory.details',[$cl->id, $cl->slug])); ?>" class="linkOverlay"></a>
              </div>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
          </div>
        </div>
      </div>

      
      <div class="col-sm-4 col-md-4 paddingLR5">
        <div class="borderRadius4">
          <div class="desktopLocationDiv paddingLR20 paddingB20">
            <div class="row">
              <div class="col-sm-12 col-md-12 paddingLR5">
                <h2 class="desktopSectionTitle marginT0 marginB20 title10 border0">এলাকার খবর <span class="bottomMarked"></span></h2>
              </div>
              <div class="col-sm-12 col-md-12 searchMessageDiv marginB0 paddingLR5" style="display: none;">
                <div class="alert alert-warning alert-dismissible fade in marginB15 text-center title12" role="alert">
                  <button type="button" class="close bgUnset colorBlack" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
                  <strong>প্রিয় পাঠক!</strong> বিভাগ, জেলা ও উপজেলা সঠিকভাবে পছন্দ করে অনুসন্ধান করুন। ধন্যবাদ।
                </div>
              </div>
              <div class="col-sm-12 col-md-12 marginB20 paddingLR5">
                <div>
                  <select class="form-control selectDivision" name="division">
                    <option value="">বিভাগ</option>
                    <?php if(isset($divisions)): ?>
                    <?php $__currentLoopData = $divisions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $div): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option value="<?php echo e($div->id); ?>"><?php echo e($div->name); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php endif; ?>
                  </select>
                </div>
              </div>
              <div class="col-sm-12 col-md-12 marginB20 paddingLR5">
                <div>
                  <select class="form-control selectDistrict" name="district">
                    <option value="">জেলা</option>
                  </select>
                </div>
              </div>
              <div class="col-sm-12 col-md-12 marginB20 paddingLR5">
                <div>
                  <select class="form-control selectUpazila" name="upazila">
                    <option value="">উপজেলা</option>
                  </select>
                </div>
              </div>
              <div class="col-sm-12 col-md-12 paddingLR5">
                <div>
                  <button type="button" class="btn btn-block clickSearchButton"><i class="fa fa-search title1_6"></i> খুঁজুন</button>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>

    </div>
  </div>
  <?php endif; ?>


  
  <?php $catGroup2 = $allCats->skip(3)->take(4); ?>
  <?php if($catGroup2->count() > 0): ?>
  <div class="container marginT50">
    <p class="borderC1T2 marginB30"></p>
    <div class="row desktopFlexRow">
      <?php $__currentLoopData = $catGroup2; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
      <?php
        $catPosts = DB::table('posts')->where('category_id', $cat->id)->where('status',1)->where('is_pending',0)->orderBy('id','desc')->limit(4)->get();
                $catLead = $catPosts->first();
        $catList = $catPosts->skip(1);
        $isLast = $loop->last;
      ?>
      <div class="col-sm-3 col-md-3 <?php echo e(!$isLast ? 'borderC1R2' : ''); ?>">
        <div class="row paddingLR5 h100P">
          <div class="col-sm-12 col-md-12 paddingLR10">
            <h2 class="desktopSectionTitle border0 marginT-15"><a aria-label="<?php echo e($cat->title); ?>"
                href="<?php echo e(route('frontend.category', $cat->slug)); ?>"><?php echo e($cat->title); ?> <span
                  class="verticalAlignMiddle title2_0 colorBrand marginL10">সব <i
                    class=" fa fa-angle-right title1_6"></i></span></a></h2>
          </div>
          <?php if($catLead): ?>
          <div class="col-sm-12 col-md-12 paddingLR10 desktopSectionLead">
            <div class="thumbnail marginB0 borderC1B1 borderRadius0">
              <div class="positionRelative">
                <img src="<?php echo e(asset('assets/images/post/'.$catLead->image_big)); ?>"
                  class="img-responsive borderRadius0" alt="<?php echo e($catLead->title); ?>">
              </div>
              <div class="caption">
                <h3 class="title11 marginT0"><?php echo e($catLead->title); ?></h3>
              </div>
              <a href="<?php echo e(route('frontend.postBySubcategory.details',[$catLead->id, $catLead->slug])); ?>" class="linkOverlay"></a>
            </div>
          </div>
          <?php endif; ?>
          <div class="col-sm-12 col-md-12 paddingLR10 desktopSectionListMedia listItemLastBB0">
            <?php $__currentLoopData = $catList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="media positionRelative paddingB10">
              <div class="media-body">
                <h4 class="title11 paddingB0"><?php echo e($post->title); ?></h4>
              </div>
              <a href="<?php echo e(route('frontend.postBySubcategory.details',[$post->id, $post->slug])); ?>" class="linkOverlay"></a>
            </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
          </div>
        </div>
      </div>
      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>
  </div>
  <?php endif; ?>

  
  <?php $catGroup3 = $allCats->skip(7)->take(4); ?>
  <?php if($catGroup3->count() > 0): ?>
  <div class="container marginT30">
    <p class="borderC1T2 marginB30"></p>
    <div class="row desktopFlexRow">
      <?php $__currentLoopData = $catGroup3; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
      <?php
        $catPosts = DB::table('posts')->where('category_id', $cat->id)->where('status',1)->where('is_pending',0)->orderBy('id','desc')->limit(4)->get();
                $catLead = $catPosts->first();
        $catList = $catPosts->skip(1);
        $isLast = $loop->last;
      ?>
      <div class="col-sm-3 col-md-3 <?php echo e(!$isLast ? 'borderC1R2' : ''); ?>">
        <div class="row paddingLR5 h100P">
          <div class="col-sm-12 col-md-12 paddingLR10">
            <h2 class="desktopSectionTitle border0 marginT-15"><a aria-label="<?php echo e($cat->title); ?>"
                href="<?php echo e(route('frontend.category', $cat->slug)); ?>"><?php echo e($cat->title); ?> <span
                  class="verticalAlignMiddle title2_0 colorBrand marginL10">সব <i
                    class=" fa fa-angle-right title1_6"></i></span></a></h2>
          </div>
          <?php if($catLead): ?>
          <div class="col-sm-12 col-md-12 paddingLR10 desktopSectionLead">
            <div class="thumbnail marginB0 borderC1B1 borderRadius0">
              <div class="positionRelative">
                <img src="<?php echo e(asset('assets/images/post/'.$catLead->image_big)); ?>"
                  class="img-responsive borderRadius0" alt="<?php echo e($catLead->title); ?>">
              </div>
              <div class="caption">
                <h3 class="title11 marginT0"><?php echo e($catLead->title); ?></h3>
              </div>
              <a href="<?php echo e(route('frontend.postBySubcategory.details',[$catLead->id, $catLead->slug])); ?>" class="linkOverlay"></a>
            </div>
          </div>
          <?php endif; ?>
          <div class="col-sm-12 col-md-12 paddingLR10 desktopSectionListMedia listItemLastBB0">
            <?php $__currentLoopData = $catList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="media positionRelative paddingB10">
              <div class="media-body">
                <h4 class="title11 paddingB0"><?php echo e($post->title); ?></h4>
              </div>
              <a href="<?php echo e(route('frontend.postBySubcategory.details',[$post->id, $post->slug])); ?>" class="linkOverlay"></a>
            </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
          </div>
        </div>
      </div>
      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>
  </div>
  <?php endif; ?>


  
  <?php $catGroup4 = $allCats->skip(11)->take(3); ?>
  <?php if($catGroup4->count() > 0): ?>
  <div class="container marginT30">
    <p class="borderC1T2 marginB30"></p>
    <div class="row desktopFlexRow">
      <div class="col-sm-9 col-md-9">
        <div class="row paddingLR5 h100P">
          <?php $__currentLoopData = $catGroup4; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
          <?php
            $catPosts3 = DB::table('posts')->where('category_id', $cat->id)->where('status',1)->where('is_pending',0)->orderBy('id','desc')->limit(3)->get();
                      ?>
          <div class="col-sm-12 col-md-12 <?php echo e($i > 0 ? 'marginT30' : ''); ?> paddingLR10">
            <?php if($i > 0): ?><p class="borderC1T2 marginB10"></p><?php endif; ?>
            <div class="row">
              <div class="col-sm-12 col-md-12">
                <h2 class="desktopSectionTitle border0"><a aria-label="<?php echo e($cat->title); ?>"
                    href="<?php echo e(route('frontend.category', $cat->slug)); ?>"><?php echo e($cat->title); ?> <span
                      class="verticalAlignMiddle title2_0 colorBrand marginL10">সব <i
                        class=" fa fa-angle-right title1_6"></i></span></a></h2>
              </div>
              <div class="col-sm-12 col-md-12">
                <div class="row marginLR-15 desktopFlexRow desktopSectionListMedia listItemFirstPT0 listItemLastBB0 borderRLastItemNone">
                  <?php $__currentLoopData = $catPosts3; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                  <div class="col-sm-4 col-md-4 paddingLR15 desktopSectionLead borderC1R1">
                    <div class="thumbnail marginB0">
                      <div class="positionRelative">
                        <img src="<?php echo e(asset('assets/images/post/'.$post->image_big)); ?>"
                          class="img-responsive borderRadius0" alt="<?php echo e($post->title); ?>">
                      </div>
                      <div class="caption paddingB0">
                        <h3 class="title11 marginT0"><?php echo e($post->title); ?></h3>
                      </div>
                      <a href="<?php echo e(route('frontend.postBySubcategory.details',[$post->id, $post->slug])); ?>" class="linkOverlay"></a>
                    </div>
                  </div>
                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>
              </div>
            </div>
          </div>
          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
      </div>

      <div class="col-sm-3 col-md-3">
        <div class="marginCenter w300 marginB20">
          <?php echo $gs->sidebar_ads3 ?? ''; ?>

        </div>
      </div>
    </div>
  </div>
  <?php endif; ?>


  
  <?php if(isset($image_albums) && $image_albums->count() > 0): ?>
  <div class="bg2 paddingT20 paddingB5 marginT40" style="margin-bottom: -50px;">
    <div class="container marginB20">
      <div class="row desktopFlexRow">
        <div class="col-sm-12 col-md-12">
          <h2 class="desktopSectionTitle border0"><a aria-label="ছবি" href="<?php echo e(url('/photos')); ?>">ছবি <span
                class="verticalAlignMiddle title2_0 colorBrand marginL10">সব <i
                  class=" fa fa-angle-right title1_6"></i></span></a></h2>
        </div>

        <?php $photoLead = $image_albums->first(); ?>
        <div class="col-sm-7 col-md-7 desktopSectionLead paddingL15 marginB15">
          <div class="thumbnail bgUnset h100P borderRadius0" style="border: 1px solid white;">
            <div id="carousel-example-generic" class="carousel slide customCarousel" data-ride="carousel">
              <div class="customProgressBar"><div class="bar"><div class="in"></div></div></div>
              <div class="carousel-inner positionRelative">
                <?php $__currentLoopData = $image_albums->take(5); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $album): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="item <?php echo e($i == 0 ? 'active' : ''); ?>">
                  <a href="<?php echo e(route('gallery.view', $album->id)); ?>">
                    <img class="img-responsive borderRadius0"
                      src="<?php echo e(asset('assets/images/image-album/'.$album->photo)); ?>"
                      alt="<?php echo e($album->album_name); ?>" title="<?php echo e($album->album_name); ?>">
                    <span class="carousel-counter"><?php echo e($i+1); ?> / <?php echo e(min($image_albums->count(), 5)); ?></span>
                  </a>
                </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
              </div>
              <span class="customCarouselPauseButton"><i class="fa fa-pause"></i></span>
              <span class="customCarouselPlayButton" style="display: none;"><i class="fa fa-play"></i></span>
              <a class="left carousel-control bgImageNone leftControl" href="#carousel-example-generic" role="button" data-slide="prev">
                <span class="glyphicon glyphicon-chevron-left photoGalleryPrevButton" aria-hidden="true"></span>
                <span class="sr-only">Previous</span>
              </a>
              <a class="right carousel-control bgImageNone bgImgUnset" href="#carousel-example-generic" role="button" data-slide="next">
                <span class="glyphicon glyphicon-chevron-right photoGalleryNextButton" aria-hidden="true"></span>
                <span class="sr-only">Next</span>
              </a>
            </div>
            <?php if($photoLead): ?>
            <div class="caption">
              <h3 class="title10 marginB0 paddingLR10"><a class="colorBlack hoverBlue"
                  href="<?php echo e(route('gallery.view', $photoLead->id)); ?>"><?php echo e($photoLead->album_name); ?></a></h3>
            </div>
            <?php endif; ?>
          </div>
        </div>

        <div class="col-sm-5 col-md-5">
          <div class="row">
            <div class="col-sm-12 col-md-12 paddingLR10">
              <div class="row desktopFlexRow" style="margin-right: -5px;">
                <?php $__currentLoopData = $image_albums->skip(1)->take(4); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $album): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="col-sm-6 col-md-6 paddingLR10 marginB15">
                  <div class="desktopSectionLead h100P" style="border: 1px solid white;">
                    <div class="thumbnail bgUnset">
                      <div class="positionRelative">
                        <img src="<?php echo e(asset('assets/images/image-album/'.$album->photo)); ?>"
                          class="img-responsive borderRadius0" alt="<?php echo e($album->album_name); ?>">
                        <span class="fa fa-image ppIconMedium"></span>
                        <div class="caption">
                          <h3 class="title11 marginB0 marginT0 paddingLR10"><?php echo e(strlen($album->album_name) > 40 ? mb_substr($album->album_name, 0, 40, 'utf-8').'...' : $album->album_name); ?></h3>
                        </div>
                      </div>
                      <a href="<?php echo e(route('gallery.view', $album->id)); ?>" class="linkOverlay"></a>
                    </div>
                  </div>
                </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
              </div>
            </div>
          </div>
        </div>

      </div>
    </div>
  </div>
  <?php endif; ?>
  

</div>

<?php /**PATH /Users/istiakahmedsourav/Desktop/JAMUNABKP/project/resources/views/frontend/partials/home-desktop.blade.php ENDPATH**/ ?>