<?php $__env->startSection('title'); ?> <?php echo e(Lang::get('marketplace.all_news')); ?><?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <div class="content page__content">
        <section class="post-list content__post-list">
            <h3 class="heading post-list__heading"><?php echo e(Lang::get('marketplace.all_news')); ?></h3>
            <div class="row">
                <?php $__currentLoopData = $posts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <article class="col-sm-6 col-md-4 news-block news-block_centered">
                        <img src="/storage/<?php echo $post->image; ?>" alt="<?php echo e($post->title); ?>"
                             class="img-responsive center-block news-block__img news-block__img_centered">
                        <div class="date news-block__date"><?php echo date('d.m.Y',strtotime($post->created_at)); ?></div>
                        <p class="news-block__counter"><span class="counter-icon"></span><?php echo $post->views; ?></p>
                        <h4 class="date news-block__heading"><?php echo e($post->title); ?></h4>
                        <a href="<?php echo e(route('media.view-post',['slug' => $post->slug])); ?>"
                           class="read-more news-block__read-more"><?php echo e(Lang::get('marketplace.read_more')); ?>...</a>
                    </article>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>

        </section>
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
    <script src="<?php echo e(mix('js/nav-menu.js')); ?>"></script>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.site', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>