
<div class="bgWHite visible-xs paddingT10">

  
  <div class="container">
    <div class="row">
      <?php if(isset($sliders) && $sliders->count() > 0): ?>
      <?php $lead = $sliders->first(); ?>
      <div class="col-sm-12 col-md-12 sectionLead padding0 margin0">
        <div class="thumbnail">
          <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" alt="<?php echo e($lead->title); ?>"></a>
          </div>
          <div class="caption paddingLR15 text-left positionRelative">
            <h1 class="title3Large colorBlack 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></h1>
            <p class="summary marginT10 marginB10"><?php echo strlen($lead->short_description) > 120 ? mb_substr($lead->short_description, 0, 120, "utf-8").'...' : $lead->short_description; ?></p>
            <p class="time"><i class="fa fa-regular fa-tag"></i> <?php echo e($lead->category->title ?? ''); ?> <i class="fa fa-regular fa-grip-lines-vertical"></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>
      <?php endif; ?>
      <div class="col-sm-12 col-md-12 paddingLR0">
        <div class="borderC1T1"></div>
      </div>

      
      <?php if(isset($sliders)): ?>
      <div class="col-sm-12 col-md-12 col-xs-12 paddingLR13 marginT3">
        <div class="sectionLead">
          <?php $__currentLoopData = $sliders->skip(1)->take(8); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $slider): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
          <div class="positionRelative">
            <div class="thumbnail marginT10 borderRadius0 marginB13">
              <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 borderC1-1">
                <h1 class="title11 colorBlack marginT10"><?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); ?></h1>
              </div>
            </div>
            <a href="<?php echo e(route('frontend.postBySubcategory.details',[$slider->category->slug ?? '', $slider->slug])); ?>" class="linkOverlay"></a>
          </div>

          <?php if($loop->iteration == 4): ?>
          
          <div class="positionRelative">
            <div class="marginCenter w320 marginB15 marginT15 text-center">
              <?php echo $gs->mobile_ads ?? ''; ?>

            </div>
          </div>
          <?php endif; ?>
          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
      </div>
      <?php endif; ?>
    </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(5)->get();
      $eventLead = $eventPosts->first();
      $eventList = $eventPosts->skip(1);
    ?>
    <div class="container marginB30 marginT20">
      <div class="row">
        <div class="col-sm-12 col-md-12 paddingLR0">
          <div class="borderC1-1 borderRadius10" style="background-color: #82070a">
            <div class="row marginLR-10">
              <div class="col-sm-12 col-md-12 paddingLR10">
                <p class="marginB0 borderTRadius10" 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 borderTRadius10 marginCenter">
                    <?php else: ?> <span class="title10 paddingLR20"><?php echo e($eventCat->title); ?></span><?php endif; ?></a></p>
              </div>
            </div>

            <div class="row marginLR-10 desktopFlexRow paddingLR10 marginT10">
              <?php if($eventLead): ?>
              <div class="col-sm-12 col-md-12 col-xs-12 paddingLR10 marginB10 sectionLead">
                <div class="thumbnail borderRadius0 bgRed">
                  <div class="positionRelative">
                    <img src="<?php echo e(asset('assets/images/post/'.$eventLead->image_big)); ?>"
                      class="img-responsive" alt="<?php echo e($eventLead->title); ?>">
                  </div>
                  <div class="caption">
                    <h1 class="title3 marginT5 colorWhite"><strong><?php echo e($eventLead->title); ?></strong></h1>
                  </div>
                </div>
                <a href="<?php echo e(route('frontend.postBySubcategory.details',[$eventLead->id, $eventLead->slug])); ?>" class="linkOverlay"></a>
              </div>
              <?php endif; ?>

              <div class="col-sm-12 col-md-12 col-xs-12 paddingLR10 marginB5">
                <div class="sectionListMedia">
                  <?php $__currentLoopData = $eventList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                  <div class="media positionRelative bgRed border0 marginB5 paddingLR10">
                    <div class="media-body">
                      <h4 class="marginB0 marginT7 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 class="col-sm-12 col-md-12 col-xs-12 paddingLR0 marginB0 marginT10">
                <div class="text-center borderC2T1"><span class="catReadMore paddingLR20"
                    style="background-color: #82070a"><a class="colorWhite hoverRed"
                      href="<?php echo e(route('frontend.category', $eventCat->slug)); ?>">আরও</a></span></div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <?php endif; ?>
    


    
    <div class="row marginT20 popularNewsWidgetMobile">
      <div class="col-sm-12 col-md-12 paddingLR15">
        <div class="latestPopularMainDiv">
          <div class="visible-xs borderRadius4">
            <div class="tabNews bgWhiteImp height100P width100P borderRadius4">
              <ul class="nav nav-tabs borderTRadius4" role="tablist">
                <li role="presentation" class="text-center borderNone active latestNav latestTab"><a
                    aria-label="সর্বশেষ" class="" href="#mobileLatestTab" aria-controls="mobileLatestTab" role="tab"
                    data-toggle="tab" aria-expanded="false"><span><i
                        class="fa fa-caret-right verticalAlignMiddle title2_0 marginT-2 latestCaret"></i>
                      সর্বশেষ</span></a></li>
                <li role="presentation" class="text-center borderNone highestNav highestTab"><a aria-label="পঠিত"
                    class="" href="#mobileHighestTab" aria-controls="mobileHighestTab" role="tab" data-toggle="tab"
                    aria-expanded="false"><span><i
                        class="fa fa-caret-right verticalAlignMiddle title2_0 marginT-2 highestCaret"
                        style="display: none;"></i> পঠিত</span></a></li>
              </ul>
              <div class="tab-content borderBRadius4 borderT0">
                <div role="tabpanel" class="tab-pane latestPan active" id="mobileLatestTab">
                  <div class="scrollbar1 latestDivHeight">
                    <div class="sectionListMedia listItemLastBB0"
                      style="border-left: 3px solid #f1f1f1;">
                      <?php $__currentLoopData = $is_recents->take(10); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                      <div class="media positionRelative paddingLR5">
                        <div class="media-body">
                          <h4 class="margin0 marginL5 hoverBlue title12"><?php echo e($row->title); ?></h4>
                        </div>
                        <a aria-label="<?php echo e($row->title); ?>" href="<?php echo e(route('frontend.postBySubcategory.details',[$row->category->slug ?? '', $row->slug])); ?>" class="linkOverlay"></a>
                      </div>
                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                  </div>
                  <p class="title11 padding10 text-center marginB0 borderBRadius4 bgBrand marginT0"><a
                      class="textDecorationNone colorWhite hoverBlue" href="<?php echo e(url('/latest')); ?>"><i
                        class="fa fa-caret-left verticalAlignMiddle title2_0 marginT-2"></i> সব খবর <i
                        class="fa fa-caret-right verticalAlignMiddle title2_0 marginT-2"></i></a></p>
                </div>
                <div role="tabpanel" class="tab-pane highestPan" id="mobileHighestTab">
                  <div class="scrollbar1 latestDivHeight">
                    <div class="sectionListMedia listItemLastBB0"
                      style="border-left: 3px solid #f1f1f1;">
                      <?php $__currentLoopData = $is_popular->take(10); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                      <div class="media positionRelative paddingLR5">
                        <div class="media-body">
                          <h4 class="margin0 marginL5 hoverBlue title12"><?php echo e($row->title); ?></h4>
                        </div>
                        <a aria-label="<?php echo e($row->title); ?>" href="<?php echo e(route('frontend.postBySubcategory.details',[$row->category->slug ?? '', $row->slug])); ?>" class="linkOverlay"></a>
                      </div>
                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                  </div>
                  <p class="title11 padding10 text-center marginB0 borderBRadius4 bgBrand marginT0"><a
                      class="textDecorationNone colorWhite hoverBlue" href="<?php echo e(url('/latest')); ?>"><i
                        class="fa fa-caret-left verticalAlignMiddle title2_0 marginT-2"></i> সব খবর <i
                        class="fa fa-caret-right verticalAlignMiddle title2_0 marginT-2"></i></a></p>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    


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

    <?php $__currentLoopData = $mobileCats; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $catIndex => $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(5)->get();
      $catLead = $catPosts->first();
      $catSecondary = $catPosts->skip(1)->take(2);
      $catText = $catPosts->skip(3)->take(2);
    ?>

    
    <?php if($catIndex > 0 && $catIndex % 2 == 0): ?>
    <div class="marginCenter w320 marginT10 text-center">
      <?php echo $gs->mobile_ads ?? ''; ?>

    </div>
    <?php endif; ?>

    <div class="row marginT40">
      <div class="col-sm-12 col-md-12 paddingLR13 borderC1T2">
        <div class="paddingLR0">
          <h2 class="sectionTitle border0 paddingT10 marginB5"><a aria-label="<?php echo e($cat->title); ?>"
              href="<?php echo e(route('frontend.category', $cat->slug)); ?>"><strong><?php echo e($cat->title); ?></strong> <span
                class="verticalAlignMiddle title1_8 colorBrand marginL10">সব <i
                  class=" fa fa-angle-right title1_4"></i></span></a></h2>
        </div>
      </div>

      <?php if($catLead): ?>
      <div class="col-sm-12 col-md-12 col-xs-12 sectionLead padding0 margin0">
        <div class="thumbnail">
          <div class="positionRelative">
            <p class="marginT15 marginB13 positionAbsolute bottom0 marginL13"><span
                class="categoryNameClass borderC1-1 bg9 colorWhite"><i class="fa fa-regular fa-tag"></i>
                <?php echo e($cat->title); ?></span></p>
            <img src="<?php echo e(asset('assets/images/post/'.$catLead->image_big)); ?>"
              class="img-responsive" alt="<?php echo e($catLead->title); ?>">
            <?php if($cat->slug == 'videos' || $cat->slug == 'video'): ?>
            <span class="fa fa-play pvIconLarge"></span>
            <?php endif; ?>
          </div>
          <div class="caption paddingLR13">
            <h3 class="title3"><?php if(isset($catLead->shoulder) && $catLead->shoulder): ?><span class="shoulder"><?php echo e($catLead->shoulder); ?></span> <i class="fa fa-circle dot"></i> <?php endif; ?><?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>
      <div class="col-sm-12 col-md-12 col-xs-12 paddingLR0 marginB5">
        <div class="borderC1T1"></div>
      </div>
      <?php endif; ?>

      <?php if($catSecondary->count() > 0): ?>
      <div class="col-sm-12 col-md-12 col-xs-12 paddingLR18">
        <div class="row desktopFlexRow borderRLastItemNone">
          <?php $__currentLoopData = $catSecondary; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
          <div class="col-sm-6 col-md-6 col-xs-6 paddingLR10 borderC1R1 marginT7">
            <div class="sectionLead">
              <div class="positionRelative">
                <div class="thumbnail borderRadius0 marginT0 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); ?>">
                    <?php if($cat->slug == 'videos' || $cat->slug == 'video'): ?>
                    <span class="fa fa-play pvIconLarge"></span>
                    <?php endif; ?>
                  </div>
                  <div class="caption paddingLR0 paddingB0">
                    <h1 class="title11 colorBlack marginT0 marginB0"><?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); ?></h1>
                  </div>
                </div>
                <a href="<?php echo e(route('frontend.postBySubcategory.details',[$post->id, $post->slug])); ?>" class="linkOverlay"></a>
              </div>
            </div>
          </div>
          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
      </div>
      <?php endif; ?>

      <?php $__currentLoopData = $catText; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
      <div class="col-sm-12 col-md-12 col-xs-12 paddingLR13">
        <div class="sectionLead marginT10 borderC1T1">
          <div class="positionRelative">
            <div class="thumbnail borderRadius0 marginT0 marginB0">
              <div class="caption paddingLR0 paddingB0">
                <h1 class="title11 colorBlack marginT0 marginB0"><?php echo e($post->title); ?></h1>
              </div>
            </div>
            <a href="<?php echo e(route('frontend.postBySubcategory.details',[$post->id, $post->slug])); ?>" class="linkOverlay"></a>
          </div>
        </div>
      </div>
      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

      <div class="col-sm-12 col-md-12 col-xs-12 paddingLR0 marginB15 marginT20">
        <div class="borderC1T1 text-center"><span class="catReadMore"><a
              href="<?php echo e(route('frontend.category', $cat->slug)); ?>">আরও</a></span></div>
      </div>
    </div>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    

  </div>
</div>

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