File: //var/www/hobbyistgarage/storage/framework/views/ac7fff303326cd6403a42fb2a4773d31ea453216.php
<?php $__env->startSection('title', ''); ?>
<?php $__env->startSection('content'); ?>
<!-- Start page content -->
<section id="page-content" class="page-wrapper">
<?php if(isset($populars) && count($populars) > 0): ?>
<!-- Start Popular News [layout A+D] -->
<div class="zm-section bg-white ptb-70">
<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">Popular</h2>
</div>
</div>
</div>
<div class="row">
<div class="col-md-5 col-sm-12 col-xs-12 col-lg-6">
<div class="zm-posts">
<?php
$article = $populars->first();
?>
<?php if($article): ?>
<article class="zm-post-lay-a">
<div class="zm-post-thumb">
<a href="<?php echo e(url('article/'.$article->short_url)); ?>">
<?php echo $__env->make('znews._partials.imgset', ['size' => '645'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</a>
</div>
<div class="zm-post-dis">
<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 h2"><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 class="zm-post-content">
<p><?php echo e($article->description); ?></p>
</div>
</div>
</article>
<?php endif; ?>
</div>
</div>
<div class="col-md-7 col-sm-12 col-xs-12 col-lg-6">
<div class="zm-posts">
<?php $__currentLoopData = $populars; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $article): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<!-- Start single post layout D -->
<?php if(!$loop->first): ?>
<article class="zm-post-lay-d clearfix">
<div class="zm-post-thumb f-left">
<a href="<?php echo e(url('/category/'.$category->short_url)); ?>">
<?php echo $__env->make('znews._partials.imgset', ['size' => '230'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</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('/category/'.$category->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('/category/'.$category->short_url)); ?>" class="zm-date"><?php echo e(date("l, F d, Y", strtotime($article->published_at))); ?></a></li>
</ul>
</div>
</div>
</div>
</article>
<?php endif; ?>
<!-- Start single post layout D -->
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
</div>
</div>
</div>
</div>
<!-- End Popular News [layout A+D] -->
<?php endif; ?>
<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">Latest</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)); ?>">
<?php echo $__env->make('znews._partials.imgset', ['size' => '340'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</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; ?>
</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">
<!-- Start Subscribe From -->
<div class="col-md-6 col-sm-12 col-xs-12 col-lg-12 xs-mt-40 sm-mt-50 md-mt-60">
<aside class="subscribe-form bg-dark text-center sidebar">
<h3 class="uppercase zm-post-title">Get Email Updates</h3>
<p>Join our awesome subscribers and update yourself with our exclusive news.</p>
<?php echo $__env->make('znews._partials.newsletter', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</aside>
</div>
<!-- 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)); ?>">
<?php echo $__env->make('znews._partials.imgset', ['size' => '250'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</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 -->
</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/index.blade.php ENDPATH**/ ?>