<?php $__env->startSection('page-title', trans('app.welcome')); ?>

<?php $__env->startSection('content'); ?>
  <section class="blog-two">
      <div class="container">
          <div class="block-title text-center">
              <div class="block-title__decor"></div><!-- /.block-title__decor -->
              <!-- <p>From the Blog</p> -->
              <h3>Noticias</h3>
          </div><!-- /.block-title -->
          <div class="thm-tiny__slider" id="blog-two__carousel" data-tiny-options='{
      "container": "#blog-two__carousel",
      "items": 1,
      "slideBy": "page",
      "gutter": 0,
      "mouseDrag": true,
      "autoplay": true,
      "nav": false,
      "controlsPosition": "bottom",
      "controlsText": ["<i class=\"fa fa-angle-left\"></i>", "<i class=\"fa fa-angle-right\"></i>"],
      "autoplayButtonOutput": false,
      "responsive": {
          "640": {
            "items": 2,
            "gutter": 30
          },
          "992": {
            "gutter": 30,
            "items": 3
          },
          "1200": {
            "disable": true
          }
        }
  }'>

  <?php if($contentAll): ?>
  <?php foreach($contentAll as $content): ?>
    <div>
        <div class="blog-card">
            <div class="blog-card__image">
                <div class="blog-card__date"><?php echo e(date('d M', strtotime($content->publish_up))); ?></div><!-- /.blog-card__date -->
                <img src="<?php echo e(asset('assets/img/optimized/image-'.$content->images)); ?>" alt="<?php echo e($content->title); ?>">
                <a href="<?php echo e(url($content->category.'/blog/'.$content->slug)); ?>"></a>
            </div><!-- /.blog-card__image -->
            <div class="blog-card__content">
                <div class="blog-card__meta">
                  <a href="#"><i class="far fa-user-circle"></i>
                    <?php if($content->created_by_alias): ?> <?php echo e($content->created_by_alias); ?> <?php else: ?> <?php echo e($content->author); ?> <?php endif; ?>  
                  </a>
                </div><!-- /.blog-card__meta -->
                <h3><a href="<?php echo e(url($content->category.'/blog/'.$content->slug)); ?>"><?php echo e($content->title); ?></a></h3>
            </div><!-- /.blog-card__content -->
        </div><!-- /.blog-card -->
    </div>
  <?php endforeach; ?>
  <?php endif; ?>

          </div>
      </div><!-- /.container -->
  </section><!-- /.blog-two -->

<?php $__env->stopSection(); ?>
<?php $__env->startSection('last'); ?>
    <div class="row">
        <div class="col-xs-12 col-md-6 contentLast"><h2>Noticias</h2>
            <div class="row">
              <div class="col s12 m6">
                <div class="card">
                  <?php if($news): ?>
                  <div class="card-image">
                    <?php if($news->images==''): ?>                      
                      <img src="https://dummyimage.com/600x250/000/c8f7ea&text=Sin-Imagen" />
                    <?php else: ?>
                      <img  class="materialboxed" data-caption="<?php echo e($news->title); ?>" src="<?php echo e(asset('assets/img/optimized/image-'.$news->images)); ?>">
                    <?php endif; ?>  
                    <span class="card-title titlePrimary"><?php echo e($news->title); ?></span>
                    <a class="btn-floating halfway-fab waves-effect waves-light orangeTI pulse z-depth-4" onclick="location.href='<?php echo e(url('noticias/blog/'.$news->slug)); ?>'"><i class="fa fa-eye"></i></a>
                  </div>
                  <div class="card-content">
                    <blockquote>
                        <div class="text-right timeDescription">
                            <?php 
                               echo "<span class='new badge'>".\Carbon\Carbon::now()->subMinutes( \Carbon\Carbon::now()->diffInMinutes( \Carbon\Carbon::parse($news->publish_up)))->diffForHumans()."</span> <i class='fa fa-calendar' aria-hidden='true'></i> ".date('d M Y',strtotime($news->publish_up));
                             ?>
                        </div>
                        <p class="text-justify descriptionText"><?php echo e(substr(strip_tags($news->description),0,300)); ?>...
                        <span class="new badge badgeButtom">  <a class="titleHref" href="<?php echo e(url('noticias/blog/'.$news->slug)); ?>">Leer más...</a></span>
                        </p>
                        <p class="text-right">
                            <i class="fa fa-user"></i> <small>Escrito por:</small> <?php if($news->created_by_alias): ?> <?php echo e($news->created_by_alias); ?> <?php else: ?> <?php echo e($news->author); ?> <?php endif; ?>
                        </p>
                    </blockquote>
                  </div>
                  <?php endif; ?>
                </div>
              </div>
            </div>
        </div>
        <div class="col-xs-12 col-md-6 contentLast"><h2>Cultura</h2>
            <div class="row">
              <div class="col s12 m6">
                <div class="card">
                  <?php if($activities): ?>
                  <div class="card-image">
                    <?php if($activities->images==''): ?>                      
                      <img src="https://dummyimage.com/600x250/000/c8f7ea&text=Sin-Imagen" />
                    <?php else: ?>
                      <img  class="materialboxed" data-caption="<?php echo e($activities->title); ?>" src="<?php echo e(asset('assets/img/optimized/image-'.$activities->images)); ?>">
                    <?php endif; ?> 
                    <span class="card-title titlePrimary"><?php echo e($activities->title); ?></span>
                    <a class="btn-floating halfway-fab waves-effect waves-light orangeTI pulse z-depth-4" onclick="location.href='<?php echo e(url('actividades/blog/'.$activities->slug)); ?>'"><i class="fa fa-eye"></i> </a>
                  </div>
                  <div class="card-content">
                    <blockquote>
                        <div class="text-right timeDescription">
                            <?php 
                               echo "<span class='new badge'>".\Carbon\Carbon::now()->subMinutes( \Carbon\Carbon::now()->diffInMinutes( \Carbon\Carbon::parse($activities->publish_up)))->diffForHumans()."</span> <i class='fa fa-calendar' aria-hidden='true'></i> ".date('d M Y',strtotime($activities->publish_up));
                             ?>
                        </div>
                        <p class="text-justify descriptionText"><?php echo e(substr(strip_tags($activities->description),0,300)); ?>...
                        <span class="new badge badgeButtom">  <a class="titleHref" href="<?php echo e(url('actividades/blog/'.$activities->slug)); ?>">Leer más...</a></span>
                        </p>
                        <p class="text-right">
                            <i class="fa fa-user"></i> <small>Escrito por:</small> <?php if($activities->created_by_alias): ?> <?php echo e($activities->created_by_alias); ?> <?php else: ?> <?php echo e($activities->author); ?> <?php endif; ?>
                        </p>
                    </blockquote>
                  </div>
                  <?php endif; ?>
                </div>
              </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>


<?php $__env->startSection('scripts'); ?>
    <script type="text/javascript">

        $(document).ready(function(){
            console.log('parallaxLoad');
          $('.parallax').parallax();
        });
        $(document).ready(function(){
          $('.slider').slider();
        });


    </script>
<?php $__env->stopSection(); ?>

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