<?php echo $__env->make('layouts.main_temp_top', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<div class="main">
    <!-- Content -->
    <div class="main-content">

      <div class="page-head-tile">
          <div class="container">
              <div class="page-title">
                <?php if(count($news) > 0): ?>
                  <?php if($resultType == "category"): ?>
                    <h1 class="title-16"><strong><?php echo e($news[0]->ca_title); ?></strong> : <?php echo e($news->total()); ?> <?php echo e(trans('resource.searchResult')); ?></h1>
                  <?php elseif($resultType == "latestnews"): ?>
                    <h1 class="title-16"><strong><?php echo e(trans('resource.latestNews')); ?></strong> : <?php echo e($news->total()); ?> <?php echo e(trans('resource.searchResult')); ?></h1>
                  <?php elseif($resultType == "search"): ?>
                    <h1 class="title-16"><?php echo e($news->total()); ?> <?php echo e(trans('resource.searchResult')); ?></h1>
                  <?php endif; ?>
                <?php else: ?>
                  <h1 class="title-16"><strong><?php echo e(trans('resource.noResult')); ?></strong></h1>
                <?php endif; ?>
              </div>
          </div>
      </div>

      <div class="section">
        <div class="row">
          <div class="content">
            <div class="pst-block">
                <div class="pst-block-main">
                    <?php if(count($news) > 0): ?>
                      <div class="posts">
                          <?php $__currentLoopData = $news; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getFirstLoop(); ?>
                            <article class="post post-tp-24">
                                <figure>
                                    <a href="/post/<?php echo e($item->id); ?>">
                                        <img src="<?php echo e($item->thumbnail); ?>" style="height: 189px;" height="189" width="270" alt="<?php echo e($item->title); ?>" class="adaptive" />
                                    </a>
                                    <div class="ptp-24-overlay">
                                        <div class="ptp-24-data">
                                            <a href="">
                                                <i class="li_eye"></i><?php echo e($item->views); ?>

                                            </a>
                                            <a href="">
                                                <i class="li_bubble"></i><?php echo e($item->comment_count); ?>

                                            </a>
                                        </div>
                                    </div>
                                </figure>
                                <h3 class="title-14"><a href=""><?php echo e($item->title); ?></a></h3>
                                
                                <div class="meta-tp-2">
                                    <div class="date"><span><?php echo e($item->insert_date); ?></span></div>
                                    <div class="category">
                                        <a href=""><i class="li_pen"></i><span><?php echo e($item->ca_title); ?></span></a>
                                    </div>
                                </div>
                            </article>
                          <?php endforeach; $__env->popLoop(); $loop = $__env->getFirstLoop(); ?>
                      </div>
                      <div class="page-nav">
                        <?php if($news->lastPage() > 1): ?>
                              <a href="<?php echo e(($news->currentPage() == 1) ? '#' : $news->url(1)); ?>" class="pn-item">
                                  <i class="page-nav-prev-ic"></i>
                              </a>
                              <?php for($i = 1; $i <= $news->lastPage(); $i++): ?>
                                  <a href="<?php echo e($news->url($i)); ?>" class="pn-item <?php echo e(($news->currentPage() == $i) ? ' current' : ''); ?>  mb-pt-hide"><?php echo e($i); ?></a>
                              <?php endfor; ?>
                              <a href="<?php echo e(($news->currentPage() == $news->lastPage()) ? ' #' : $news->url($news->currentPage()+1)); ?>" class="pn-item">
                                  <i class="page-nav-next-ic"></i>
                              </a>
                              <span class="page-count"><?php echo e(trans('resource.page')); ?> <?php echo e($news->currentPage()); ?> - <?php echo e($news->lastPage()); ?></span>
                        <?php else: ?>
                          <a href="#" disabled="disabled" class="pn-item">
                              <i class="page-nav-prev-ic"></i>
                          </a>
                          <a href="#" class="pn-item current mb-pt-hide">1</a>
                          <a href="#" disabled="disabled" class="pn-item">
                              <i class="page-nav-next-ic"></i>
                          </a>
                          <span class="page-count"><?php echo e(trans('resource.page')); ?> <?php echo e($news->currentPage()); ?> - <?php echo e($news->lastPage()); ?></span>
                        <?php endif; ?>
                      </div>
                    <?php else: ?>
                      <img src="/img/noresult.png" style="width: 100%" />
                    <?php endif; ?>
                </div>
            </div>
          </div>
          <aside class="side-bar sticky-wrap">

              <?php if(count($news) > 0): ?>
                <?php if($resultType == "category"): ?>
                  <?php echo $__env->make('layouts.category_sidebar',['cat_id' => $news[0]->cat_id], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                <?php endif; ?>
              <?php endif; ?>

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

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

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

              <?php echo $__env->make('layouts.sidebar_poll', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
          </aside>
        </div>
    </div>
</div>
                <!-- Content END -->
                <!-- Footer -->
                <?php echo $__env->make('layouts.main_temp_footer', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                <!-- Footer END -->
<?php echo $__env->make('layouts.main_temp_bot', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
