
<?php $__env->startSection('contents'); ?>
 <?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(); ?>	 	
  
   
 <div class="container custom-container">
   <div class="row custom-row">
     <div class="left-content-area details-left-content-area">
       <div class="col-lg-12 custom-padding">

         <ol class="breadcrumb details-page-breadcrumb">
           <li><a href="#"><i class="fa fa-home"></i></a></li>
           <li class="active"><a href="#"><?php echo e($parent->title); ?></a></li>
		   <li class="active"><a href="#"><?php echo e($subcategory); ?></a></li>
         </ol><!--/.details-page-breadcrumb-->
         <div class="category-page">
                           <div class="category-content">
						   
						   
						   

  <?php if($datas->count()>0): ?>                            
 <?php $__currentLoopData = $datas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
							   <div class="col-md-6 custom-padding">
                  <div class="category-content-single">
                    <a href="<?php echo e(route('frontend.postBySubcategory.details',[$post->category->slug,$post->slug])); ?>">
                      <div class="category-content-single-left">
                        <img class="img-fluid" src="<?php echo e(asset('assets/images/post/'.$post->image_big)); ?>" alt="<?php echo e(strlen($post->title)>50 ? mb_substr($post->title,0,50,'utf-8').'...' : $post->title); ?>">
                      </div>
                      <div class="category-content-single-right">
                        <span></span>
                        <h2><?php echo e(strlen($post->title)>50 ? mb_substr($post->title,0,50,'utf-8').'...' : $post->title); ?></h2>
                      </div>
                    </a>
                  </div>
                </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>    
                        <?php else: ?> 
							                            <div class="col-lg-12">
                                <div class="card">
                                    <div class="card-body">
                                        <p class="text-danger text-danger text-center"><?php echo e(__('This Sub Category has no News.')); ?></p>
                                    </div>
                                </div>
                            </div>
                        <?php endif; ?>					
                                </div>
                             <?php if($datas->hasPages()): ?>
    <div class="custom-pagination text-center mt-4 mb-4">
        <ul class="pagination-list">
            
            <?php if($datas->onFirstPage()): ?>
                <li class="disabled"><span>« <?php echo e(__('Previous')); ?></span></li>
            <?php else: ?>
                <li><a href="<?php echo e($datas->previousPageUrl()); ?>" rel="prev">« <?php echo e(__('Previous')); ?></a></li>
            <?php endif; ?>

            
            <?php $__currentLoopData = $datas->links()->elements[0] ?? []; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $page => $url): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php if($page == $datas->currentPage()): ?>
                    <li class="active"><span><?php echo e($page); ?></span></li>
                <?php else: ?>
                    <li><a href="<?php echo e($url); ?>"><?php echo e($page); ?></a></li>
                <?php endif; ?>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

            
            <?php if($datas->hasMorePages()): ?>
                <li><a href="<?php echo e($datas->nextPageUrl()); ?>" rel="next"><?php echo e(__('Next')); ?> »</a></li>
            <?php else: ?>
                <li class="disabled"><span><?php echo e(__('Next')); ?> »</span></li>
            <?php endif; ?>
        </ul>
    </div>
<?php endif; ?>
                   </div>

         <!-- <div class="category-content-btn">
           <div class="details-btn">
             <a href="#" class="btn btn-more-details hvr-bounce-to-right">আরও খবর </a>
           </div>
         </div> -->

       </div><!--/.col-lg-12-->
     </div><!--/.left-content-area-->

     <div class="right-content-area details-right-content-area">
       <div class="col-lg-12 custom-padding">

         <div class="details-page-side-banner">
           <?php echo $gs->sidebar_ads; ?>

         </div><!--/.details-page-side-banner-->

         <div class="details-tab-container">
		 
           <ul class="nav nav-pills side-tab-main" id="pills-tab" role="tablist">
             <li class="nav-item">
               <a class="nav-link active" id="pills-home-tab" data-toggle="pill" href="#pills-home" role="tab" aria-controls="pills-home" aria-selected="true"><?php echo e(__('Latest News')); ?></a>
             </li>
             <li class="nav-item">
               <a class="nav-link" id="pills-profile-tab" data-toggle="pill" href="#pills-profile" role="tab" aria-controls="pills-profile" aria-selected="false"><?php echo e(__('Featured News')); ?></a>
             </li>
           </ul>

           <div class="tab-content alokitonews-tab-content" id="pills-tabContent">

             <div class="tab-pane fade show active" id="pills-home" role="tabpanel" aria-labelledby="pills-home-tab">
               <div class="least-news">
                 <ul class="least-news-ul detail-least-news-ul">
  
  <?php
					$secondcat=DB::table('categories')->where('language_id', $default_language->id)->where('parent_id',null)->skip(1)->first();
					$secondcatpostbig=DB::table('posts')->where('category_id',$secondcat->id)->where('is_trending',1)->orderBy('id','DESC')->get();
					$secondcatpostsmall=DB::table('posts')->where('category_id',$secondcat->id)->where('is_trending',1)->orderBy('id','DESC')->skip(1)->limit(20)->get();
					?>  
  
  
<?php $__currentLoopData = $secondcatpostbig; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>	
  <li><a href="<?php echo e(route('frontend.postBySubcategory.details',[$row->id,$row->slug])); ?>">
    <div class="least-news-left">
      <img src="<?php echo e(asset('assets/images/post/'.$row->image_big)); ?>" class="img-fluid" alt="<?php echo e(strlen($row->title)>60 ? mb_substr($row->title,0,60,"utf-8") : $row->title); ?>" title="<?php echo e(strlen($row->title)>60 ? mb_substr($row->title,0,60,"utf-8") : $row->title); ?>" />
    </div>
    <div class="least-news-right">
      <h3><?php echo e(strlen($row->title)>60 ? mb_substr($row->title,0,60,"utf-8") : $row->title); ?></h3>
    </div>
  </a></li>
  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  
  
 
 </ul><!--/.least-news-ul-->
               </div><!--/.least-news-->
             </div><!--/.tab-pane-->

             <div class="tab-pane fade" id="pills-profile" role="tabpanel" aria-labelledby="pills-profile-tab">
               <div class="least-news">
                 <ul class="least-news-ul detail-least-news-ul">
    <?php
					$thirdcat=DB::table('categories')->where('language_id', $default_language->id)->where('parent_id',null)->skip(2)->first();
					$thirdcatpostbig=DB::table('posts')->where('category_id',$thirdcat->id)->where('is_trending',1)->orderBy('id','DESC')->limit(1)->get();
					$thirdcatpostsmall=DB::table('posts')->where('category_id',$thirdcat->id)->where('is_trending',1)->orderBy('id','DESC')->skip(1)->limit(20)->get();
					?> 
	
	 <?php $__currentLoopData = $thirdcatpostbig; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
	<li><a href="<?php echo e(route('frontend.postBySubcategory.details',[$row->id,$row->slug])); ?>">
    <div class="least-news-left">
      <img src="<?php echo e(asset('assets/images/post/'.$row->image_big)); ?>" class="img-fluid" alt="<?php echo e(strlen($row->title)>60 ? mb_substr($row->title,0,60,"utf-8") : $row->title); ?>" title="<?php echo e(strlen($row->title)>60 ? mb_substr($row->title,0,60,"utf-8") : $row->title); ?>" />
    </div>
    <div class="least-news-right">
      <h3><?php echo e(strlen($row->title)>60 ? mb_substr($row->title,0,60,"utf-8") : $row->title); ?></h3>
    </div>
  </a></li>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  
  
  
  </ul><!--/.least-news-ul-->
               </div><!--/.least-news-->
             </div><!--/.tab-pane-->

           </div><!--/.tab-content-->
         </div><!--/.details-tab-container-->

       </div><!--/.col-lg-12-->
     </div><!--/.right-content-area-->
   </div><!--/.row-->
 </div><!--/.container-->   
  
  
  
  
  
  
  
  
  
  
  
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.front', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/creativedesignbd/news3.creativedesign.com.bd/project/resources/views/frontend/postBySubcategory.blade.php ENDPATH**/ ?>