<?php $__env->startSection('meta'); ?>
<title><?php echo e($subcategory); ?></title>
<meta property="og:title" content="<?php echo e($subcategory); ?>" />
<meta property="og:image" content="<?php echo e(asset('assets/images/'.$gs->og_baner)); ?>" />
<?php $__env->stopSection(); ?>
<?php $__env->startSection('contents'); ?>

<!-- main div -->
<div class="mainDiv">
  <!-- mobile header categories -->
  <div class="bg2 marginT-15 marginB10 visible-xs">
    <div class="">
      <div class=" padding0">
        <div class="positionRelative" style="border-bottom: 3px solid #9b090d">
          <div class="mobileHeaderCategoryDiv">
            <a class="sidebarCatTitle colorBlack hoverBlue paddingLR15 textDecorationNone" aria-label="হোম"
              href="<?php echo e(route('frontend.index')); ?>"><strong>হোম</strong></a>
            <?php $__currentLoopData = $categories->take(7); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
              <a class="sidebarCatTitle colorBlack hoverBlue paddingLR15 textDecorationNone <?php echo e(($parent->slug ?? '') == $category->slug ? 'active' : ''); ?>" aria-label="<?php echo e($category->title); ?>"
                href="<?php echo e(route('frontend.category', $category->slug)); ?>"><strong><?php echo e($category->title); ?></strong></a>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
          </div>
        </div>
      </div>
    </div>
  </div>

  <!-- desktop and mobile version start -->
  <div class="bgWHite">
    <div class="container">
      <div class="row">

        <!-- category + subcategory header -->
        <div class="col-sm-12 col-md-12 marginB20 xs-marginB10 marginT10">
          <span class="desktopCategoryTitle"><a class="color1" aria-label="<?php echo e($parent->title); ?>" href="<?php echo e(route('frontend.category', $parent->slug)); ?>"><strong><?php echo e($parent->title); ?></strong></a> <i class="fa fa-caret-right marginR5 title1_8"></i></span>
          <h1 class="desktopCategoryTitle"> <a aria-label="<?php echo e($subcategory); ?>" href="javascript:void(0)"><strong><?php echo e($subcategory); ?> <i class="fa fa-caret-right title1_8 verticalAlignMiddle"></i></strong></a></h1>
          <!-- subcategories -->
          <?php if($parent->child->count() > 0): ?>
          <div class="desktopSubCategoryDiv borderC1B1 paddingB5 marginB10">
            <ul>
              <?php $__currentLoopData = $parent->child; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sub): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
              <li><span class="categoryPageSubLeftCart"></span> <h2><a aria-label="<?php echo e($sub->title); ?>" href="<?php echo e(url('/'.$sub->slug)); ?>"><?php echo e($sub->title); ?></a></h2></li>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </ul>
          </div>
          <?php endif; ?>
        </div>

        <div class="col-sm-9 col-md-9">
          <?php if($datas->count() > 0): ?>
          <!-- lead news -->
          <?php $leadPost = $datas->first(); ?>
          <div class="row marginLR-10">
            <div class="col-sm-12 col-md-12 paddingLR10">
              <div class="row desktopFlexRow">
                <div class="col-sm-6 col-md-6 desktopSectionLead">
                  <div class="thumbnail marginB0 borderRadius0">
                    <div class="positionRelative paddingT0">
                      <img src="<?php echo e(asset('assets/images/post/'.$leadPost->image_big)); ?>"
                        class="img-responsive borderRadius0"
                        alt="<?php echo e($leadPost->title); ?>">
                    </div>
                    <a href="<?php echo e(route('frontend.postBySubcategory.details',[$leadPost->category->slug ?? '', $leadPost->slug])); ?>" class="linkOverlay"></a>
                  </div>
                </div>
                <div class="col-sm-6 col-md-6 desktopSectionLead">
                  <div class="thumbnail marginB0 borderRadius0 xs-text-center">
                    <div class="marginB10 xs-marginT20">
                      <h1 class="title8 marginT0 marginB0"><strong><?php echo e($leadPost->title); ?></strong></h1>
                      <p class="desktopSummary marginB0"><?php echo strlen($leadPost->short_description) > 250 ? mb_substr($leadPost->short_description, 0, 250, "utf-8").'...' : $leadPost->short_description; ?></p>
                      <p class="desktopTime marginT10"><i class="fa fa-clock title1_4 color2 verticalAlignMiddle marginT1"></i> <?php echo e($leadPost->createdAt()); ?></p>
                    </div>
                    <a href="<?php echo e(route('frontend.postBySubcategory.details',[$leadPost->category->slug ?? '', $leadPost->slug])); ?>" class="linkOverlay"></a>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <p class="borderC1T1 marginB15 marginT15"></p>

          <!-- 3 column news grid -->
          <div class="row marginLR-15 desktopFlexRow loadMoreSubCategoryNews borderR3rdItemNone">
            <?php $__currentLoopData = $datas->skip(1); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="col-md-4 col-xs-12 marginB20 xs-marginB15 paddingLR15 borderC1R1 desktopSectionLead">
              <div class="thumbnail h100P borderC1B1 borderRadius0">
                <div class="positionRelative">
                  <p class="marginT15 marginB13 positionAbsolute bottom0 marginL10"><span
                      class="categoryNameClass borderC1-1 bg9 colorWhite"><i class="fa fa-regular fa-tag"></i>
                      <?php echo e($subcategory); ?></span></p>
                  <img src="<?php echo e(asset('assets/images/post/'.$post->image_big)); ?>"
                    class="img-responsive borderRadius0"
                    alt="<?php echo e(strlen($post->title) > 100 ? mb_substr($post->title, 0, 100, 'utf-8').'...' : $post->title); ?>">
                </div>
                <div class="caption paddingLR0">
                  <h1 class="title11 colorBlack marginT10"><?php echo e(strlen($post->title) > 100 ? mb_substr($post->title, 0, 100, 'utf-8').'...' : $post->title); ?></h1>
                  <p class="desktopTime"><i class="fa fa-clock title1_4 color2 verticalAlignMiddle marginT2"></i> <?php echo e($post->createdAt()); ?></p>
                </div>
              </div>
              <a href="<?php echo e(route('frontend.postBySubcategory.details',[$post->category->slug ?? '', $post->slug])); ?>" class="linkOverlay"></a>
            </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
          </div>

          <!-- pagination -->
          <?php if($datas->hasPages()): ?>
          <div class="text-center marginT20 marginB20">
            <?php echo e($datas->links()); ?>

          </div>
          <?php endif; ?>

          <?php else: ?>
          <div class="text-center padding20">
            <p class="colorBrand">এই বিভাগে কোন খবর নেই।</p>
          </div>
          <?php endif; ?>
        </div>

        <div class="col-sm-3 col-md-3 xs-marginT30">
          <!-- latest popular news -->
          <div class="row hidden-xs">
            <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>
          <!-- latest popular news end -->

          <!-- sidebar ads -->
          <div class="marginB20">
            <?php echo $gs->sidebar_ads; ?>

          </div>
        </div>

      </div>
    </div>
  </div>
  <!-- desktop and mobile version end -->
</div>
<!-- main div end -->

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.front', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/istiakahmedsourav/Desktop/JAMUNABKP/project/resources/views/frontend/postBySubcategory.blade.php ENDPATH**/ ?>