<?php $__env->startSection('content'); ?>

<section class="page-header">
  <div class="container">
    <div class="row">
      <div class="col-md-12">
        <h5 style="color:white;">
            <?php if($resultType == 'search'): ?>
              <?php echo e(trans('resource.keyword')); ?>: <?php echo e($keyword); ?>

            <?php else: ?>
              <?php echo e($category->source); ?>

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

<div class="blog-posts">

  <?php $__currentLoopData = $news; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $n): $__env->incrementLoopIndices(); $loop = $__env->getFirstLoop(); ?>

    <article class="post post-large">
      <a href="/post/<?php echo e($n->id); ?>" class="text-decoration-none block-link pt-md">
        <!-- <div class="post-content">
          <h2></h2>
        </div> -->
        <div class="post-image">
          <span class="thumb-info thumb-info-hide-wrapper-bg">
            <span class="thumb-info-wrapper">
              <img class="img-responsive" src="<?php echo e($n->thumbnail); ?>" alt="">
              <span class="thumb-info-title">
                <span class="thumb-info-inner"><?php echo e($n->title); ?></span>
              </span>
            </span>
          </span>
        </div>
      </a>

      <div class="post-content">
        <div class="post-meta">
          <span><i class="fa fa-comments"></i> <?php echo e($n->comment_count); ?></span>
          <span><i class="fa fa-eye"></i> <?php echo e($n->views); ?></span>
          <span class="pull-right"><i class="fa fa-calendar-check-o"></i> <?php echo e($n->insert_date); ?></span>
        </div>
      </div>
    </article>
  <?php endforeach; $__env->popLoop(); $loop = $__env->getFirstLoop(); ?>

  <ul class="pagination pagination-md pull-right">
    <?php if($news->lastPage() > 1): ?>
      <li><a href="<?php echo e(($news->currentPage() == 1) ? '#' : $news->url(1)); ?><?php echo e(($resultType == 'search') ? '&keyword='.$keyword : ''); ?>">«</a></li>
      <?php for($i = 1; $i <= $news->lastPage(); $i++): ?>
        <li class="<?php echo e(($news->currentPage() == $i) ? ' active' : ''); ?>"><a href="<?php echo e($news->url($i)); ?><?php echo e(($resultType == 'search') ? '&keyword='.$keyword : ''); ?>"><?php echo e($i); ?></a></li>
      <?php endfor; ?>
      <li><a href="<?php echo e(($news->currentPage() == $news->lastPage()) ? ' #' : $news->url($news->currentPage()+1)); ?><?php echo e(($resultType == 'search') ? '&keyword='.$keyword : ''); ?>">»</a></li>
    <?php else: ?>
      <li><a href="">«</a></li>
      <li class='active'><a href="">1</a></li>
      <li><a href="">»</a></li>
    <?php endif; ?>

  </ul>

</div>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.main.main_noslide', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>