<?php use Carbon\Carbon; ?>


<?php $__env->startSection('title', 'Browse'); ?>

<?php $__env->startSection('meta_tags', env('APP_NAME').' News Articles'); ?>

<?php $__env->startSection('meta_description', 'News from '.env('APP_NAME')); ?>

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

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

<?php $__env->startSection('content'); ?>
  <div class="body_content">
    <div class="auto-container">
      <div  class="page-info">
        <ul class="bread-crumb clearfix">
          <li><a href="<?php echo e(route('home')); ?>">Home</a></li>
          <li><?php echo e($title); ?></li>
        </ul>
      </div>
      <div class="row clearfix">
        <div class="content-side col-md-12 ">
          <div class="sec-title">
            <h2><?php echo e($title); ?> </h2>
            <div class="separater"></div>
          </div>
          <div class="row clearfix">
            <?php 
            foreach($pages as $row) {
              $hoverTitle = '';
              if(strlen($row->title > 30)) {
                $hoverTitle = $row->title;
              }
              if($row->attachment and file_exists('./uploads/pages/thumbs/'.$row->attachment)) {
                $imgSrc = 'uploads/pages/thumbs/'.$row->attachment;
              } else {
                $imgSrc = 'img/no_image_page.png';
              }
            ?>
            <div class="col-md-4 col-sm-2 col-xs-12 linebreak">
              <div class="news-style-one">
                <div class="inner">
                  <div class="image-box">
                    <div class="image"> <a href="<?php echo e(route('page.details', [$row->slug])); ?>"><img class="img-responsive" src="<?php echo e(asset($imgSrc)); ?>" alt="<?php echo e($row->title); ?> - Image" /></a> </div>
                  </div>
                  <div class="lower-box">
                    <h3><a title="<?php echo e($hoverTitle); ?>" href="<?php echo e(route('page.details', [$row->slug])); ?>"><?php echo e(Helper::string_limit($row->title, 30)); ?></a></h3>
                    <div class="date"><?php echo e(Helper::string_limit(strip_tags($row->description), 60)); ?></div>
                  </div>
                </div>
              </div>
            </div>
            <?php } ?>
          </div>
        </div>
        <div class="clearfix"></div>
      </div>
    </div>
  </div>
<?php $__env->stopSection(); ?>

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

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