<?php $__env->startSection('title', 'News and Reviews'); ?>
<?php $__env->startSection('content'); ?>
<!-- Start page content -->
<section id="page-content" class="page-wrapper">
<div class="zm-section bg-white pt-10 pb-40">
<div class="container">
<div class="row mb-40">
<div class="col-md-12 col-sm-12 col-lg-12 col-xs-12">
<div class="section-title">
<h2 class="h6 header-color inline-block uppercase">News & Reviews</h2>
</div>
</div>
</div>
<div class="row">
<!-- Start left side -->
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-8 columns">
<div class="row">
<div class="col-md-12">
<div class="zm-posts">
<?php if(isset($articles)): ?>
<?php $__currentLoopData = $articles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $article): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<!-- Start single post layout C -->
<article class="zm-post-lay-c zm-single-post clearfix">
<div class="zm-post-thumb f-left">
<a href="<?php echo e(url('article/'.$article->short_url)); ?>"><img src="<?php echo e(url('/media/'.$article->banner_url )); ?>" alt="img"></a>
</div>
<div class="zm-post-dis f-right">
<div class="zm-post-header">
<div class="zm-category">
<?php $__currentLoopData = $article->categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if(is_object($category)): ?>
<a class="bg-cat-1 cat-btn" href="<?php echo e(url('/category/'.$category->short_url)); ?>"><?php echo e($category->name); ?></a>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></div>
<h2 class="zm-post-title"><a href="<?php echo e(url('article/'.$article->short_url)); ?>"><?php echo e($article->title); ?></a></h2>
<div class="zm-post-meta">
<ul>
<li class="s-meta"><a href="<?php echo e(url('article/'.$article->short_url)); ?>" class="zm-date"><?php echo e(date("l, F d, Y", strtotime($article->published_at))); ?> </a></li>
</ul>
</div>
<div class="zm-post-content">
<p><?php echo e($article->description); ?></p>
</div>
</div>
</div>
</article>
<!-- Start single post layout C -->
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
<!-- Start Advertisement -->
<div class="advertisement">
<div class="row mtb-40">
<div class="col-md-12 text-center">
<?php if(isset($ad) && count($ad) >0 ): ?>
<?php echo $ad->last()->ad; ?>
<?php endif; ?>
</div>
</div>
</div>
<!-- End Advertisement -->
</div>
</div>
</div>
</div>
<!-- End left side -->
<!-- Start Right sidebar -->
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-4 sidebar-warp columns">
<div class="row">
<aside class="zm-tagcloud-list col-xs-12 col-sm-6 col-md-6 col-lg-12 xs-mt-40 sm-mt-50 md-mt-60">
<div class="row mb-40">
<div class="col-md-12">
<div class="section-title">
<h2 class="h6 header-color inline-block uppercase">Categories</h2>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="zm-tagcloud">
<?php if(isset($categories)): ?>
<?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<a href="<?php echo e(url('/category/'.$category->short_url)); ?>"><?php echo e($category->name); ?></a>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</div>
</div>
</div>
</aside>
<!-- End Subscribe From -->
<aside class="zm-tagcloud-list col-xs-12 col-sm-6 col-md-6 col-lg-12 mt-60">
<div class="row mb-40">
<div class="col-md-12">
<div class="section-title">
<h2 class="h6 header-color inline-block uppercase">Tags</h2>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="zm-tagcloud">
<?php $__currentLoopData = $tags; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tag): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<a href="<?php echo e(url('/tag/'.$tag->short_url)); ?>"><?php echo e(ucfirst($tag->name)); ?></a>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
</div>
</div>
</aside>
<!-- Start post layout E -->
<aside class="zm-post-lay-e-area col-xs-12 col-sm-6 col-md-6 col-lg-12 mt-60 hidden-md">
<div class="row mb-40">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<div class="section-title">
<h2 class="h6 header-color inline-block uppercase">Trending</h2>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<div class="zm-posts">
<!-- Start single post layout E -->
<?php if(isset($trending)): ?>
<?php $__currentLoopData = $trending; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $article): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<!-- Start single post layout E -->
<article class="zm-post-lay-e zm-single-post clearfix">
<div class="zm-post-thumb f-left">
<a href="<?php echo e(url('article/'.$article->short_url)); ?>"><img src="<?php echo e(url('/media/'.$article->banner_url )); ?>" alt="img"></a>
</div>
<div class="zm-post-dis f-right">
<div class="zm-post-header">
<h2 class="zm-post-title"><a href="<?php echo e(url('article/'.$article->short_url)); ?>"><?php echo e($article->title); ?></a></h2>
<div class="zm-post-meta">
<ul>
<li class="s-meta"><a href="<?php echo e(url('article/'.$article->short_url)); ?>" class="zm-date"><?php echo e(date("l, F d, Y", strtotime($article->published_at))); ?></a></li>
</ul>
</div>
</div>
</div>
</article>
<!-- Start single post layout E -->
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
<!-- Start single post layout E -->
</div>
</div>
</div>
</aside>
<!-- Start post layout E -->
<?php if(isset($populars)): ?>
<!-- Start post layout E -->
<aside class="zm-post-lay-e-area col-xs-12 col-sm-6 col-md-6 col-lg-12 mt-60 hidden-md">
<div class="row mb-40">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<div class="section-title">
<h2 class="h6 header-color inline-block uppercase">Popular</h2>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<div class="zm-posts">
<!-- Start single post layout E -->
<?php $__currentLoopData = $populars; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $article): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<!-- Start single post layout E -->
<article class="zm-post-lay-e zm-single-post clearfix">
<div class="zm-post-thumb f-left">
<a href="<?php echo e(url('article/'.$article->short_url)); ?>"><img src="<?php echo e(url('/media/'.$article->banner_url )); ?>" alt="img"></a>
</div>
<div class="zm-post-dis f-right">
<div class="zm-post-header">
<h2 class="zm-post-title"><a href="<?php echo e(url('article/'.$article->short_url)); ?>"><?php echo e($article->title); ?></a></h2>
<div class="zm-post-meta">
<ul>
<li class="s-meta"><a href="<?php echo e(url('article/'.$article->short_url)); ?>" class="zm-date"><?php echo e(date("l, F d, Y", strtotime($article->published_at))); ?></a></li>
</ul>
</div>
</div>
</div>
</article>
<!-- Start single post layout E -->
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<!-- Start single post layout E -->
</div>
</div>
</div>
</aside>
<!-- Start post layout E -->
<?php endif; ?>
</div>
</div>
<!-- End Right sidebar -->
</div>
<!-- Start pagination area -->
<div class="row hidden-xs">
<div class="zm-pagination-wrap mt-70">
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<?php if(isset($articles) && $articles->hasPages()): ?>
<?php echo e($articles->links('vendor.pagination.bootstrap-4')); ?>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
<!-- End pagination area -->
<!-- Start Advertisement -->
<div class="advertisement">
<div class="row mt-40">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 text-center">
<?php if(isset($ad) && count($ad) >0 ): ?>
<?php echo $ad->last()->ad; ?>
<?php endif; ?>
</div>
</div>
</div>
<!-- End Advertisement -->
</div>
</div>
</section>
<!-- End page content -->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('znews.layout.blog', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/hobbyistgarage/resources/views/newsandreviews/index.blade.php ENDPATH**/ ?>