

<?php $__env->startSection('title'); ?>
	<?php echo e(title_case($page)); ?>

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

<?php 
	use Carbon\Carbon;
	if(!empty($meta_tags)){
		foreach ($meta_tags as $key => $value) {
			$meta[$value->name] = $value->content;
		}
		$share_title = $meta['title'];
		$share_desc = $meta['description'];
	}else{
		$share_title = title_case($page)." | ".$masterName;
		$share_desc = $masterName." | ".$masterAddress." | ".str_replace(';',' ',$masterPhone)." | ".$masterEmail;
	}
	$share_url = Request::url();
	// $share_img = asset($storage_url.'img/gallery/'.$banner);
 ?>

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

<meta property="og:url" content="<?php echo e($share_url); ?>" />
<meta property="og:type" content="place" />
<meta property="og:title" content="<?php echo e($share_title); ?>" />
<meta property="og:description" content="<?php echo e($share_desc); ?>" />



<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="<?php echo e($share_url); ?>">
<meta name="twitter:title" content="<?php echo e($share_title); ?>">
<meta name="twitter:description" content="<?php echo e($share_desc); ?>">



<meta itemprop="name" content="<?php echo e($share_title); ?>">
<meta itemprop="description" content="<?php echo e($share_desc); ?>">


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

<?php $__env->startSection('style'); ?>
	<style>
		.thumb {
	    display: block;
			width: 100%;
			height: 350px;
			margin: 0;
			object-fit: cover;
		}

		/* Style to article Author */
		.by-author {
			font-style: italic;
			line-height: 1.3;
			color: #aab6aa;
		}

		/* Main Article [Module]
		-------------------------------------
		* Featured Article Thumbnail
		* have a image and a text title.
		*/
		.featured-article {
			position: relative;
			margin-bottom: 1em;
		}

		.featured-article .block-title {
			/* Position & Box Model */
			position: absolute;
			bottom: 0;
			left: 0;
			z-index: 1;
			/* background */
			background: rgba(0,0,0,0.7);
			/* Width/Height */
			padding: .5em;
			width: 100%;
			/* Text color */
			color: #fff;
		}

		.featured-article .block-title h2 {
			margin: 0;
		}
		.featured-article .block-title a h2 {
			color: #fff;
		}

		/* Featured Articles List [BS3]
		--------------------------------------------
		* show the last 3 articles post
		*/

		.main-list {
			padding-left: .5em;
		}

		.main-list .media {
			padding-bottom: 1.1em;
			border-bottom: 1px solid #e8e8e8;
		}

		.media img {
			height: 90px;
			width: 150px;
			object-fit: cover;
		}
		.content-list {
			min-height: 60px;
		}
	</style>
<?php $__env->stopSection(); ?>

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

	<!-- MAIN CONTENT -->
	<main id="mainContent" class="container article">

		
    <div class="row">
			
			<?php if(isset($articles)): ?>
				<div class="col-md-5 col-lg-5 col-sm-12 col-xs-12 xs-clear">
					<!-- artigo em destaque -->
					<?php if($featured): ?>
						<div class="featured-article">
							<a href="<?php echo e(route('article.post', $featured->slug)); ?>">
								<img src="<?php echo e(asset($storage_url.'img/article/'.$featured->banner)); ?>" alt="" class="thumb">
							</a>
							<div class="block-title">
								<a href="<?php echo e(route('article.post', $featured->slug)); ?>">
									<h2><?php echo e(isset($featured->title) ? $featured->title : ''); ?></h2>
								</a>
								<p class="by-author"><small><?php echo e(isset($featured->user) && $featured->user->count() ? 'By '.$featured->user->name : ''); ?></small> <i class="fa fa-clock-o m-l-10"></i> <?php echo e(Carbon::createFromTimestamp(strtotime($featured->created_at))->toFormattedDateString()); ?></p>
							</div>
						</div>
					<?php endif; ?>
					<!-- /.featured-article -->
				</div>
				
				<div class="col-md-7 col-lg-7 hidden-xs hidden-sm">
					<ul class="media-list main-list">

						<?php $__currentLoopData = $articles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $article): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
						  <li class="media">
						    <a class="pull-left" href="<?php echo e(route('article.post', $article->slug)); ?>">
						      <img class="media-object img-responsive" src="<?php echo e(asset($storage_url.'img/article/'.$article->banner)); ?>" alt="<?php echo e($article->banner); ?>">
						    </a>
						    <div class="media-body">
									<a href="<?php echo e(route('article.post', $article->slug)); ?>">
							      <h4 class="media-heading"><?php echo e(isset($article->title) ? $article->title : ''); ?></h4>
							    </a>
						      <p class="by-author"><?php echo e(isset($article->user) && $article->user->count() ? 'By '.$article->user->name : ''); ?> <i class="fa fa-clock-o m-l-10"></i> <?php echo e(Carbon::createFromTimestamp(strtotime($article->created_at))->toFormattedDateString()); ?></p>
						    </div>
						    <ul class="tags">
						    	<?php $__currentLoopData = $article->tags; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tag): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
						    		<li class="tag"><a href="<?php echo e(route('article.tag', $tag->slug)); ?>"><?php echo e($tag->name); ?></a></li>
						    	<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
						    </ul>
						  </li>
						<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

					</ul>
				</div>			    
			<?php endif; ?>

		</div>
		

		
		<div class="row infinite-scroll">
			<?php if(isset($articles)): ?>
				<?php $__currentLoopData = $articles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $article): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
				  <div class="article-card-list visible-xs visible-sm">
						<div class="col-xs-12 col-sm-4 col-md-3 col-lg-3">
							<a href="<?php echo e(route('article.post', $article->slug)); ?>">
								<img src="<?php echo e(asset($storage_url.'img/article/'.$article->banner)); ?>" class="img-responsive" alt="">						
							</a>
						</div>

						<div class="col-xs-12 col-sm-8 col-md-9 col-lg-9">
							<div class="media-body">
								<h4 class="media-heading">
									<a href="<?php echo e(route('article.post', $article->slug)); ?>"><?php echo e(isset($article->title) ? $article->title : ''); ?></a>
								</h4>
								<p class="by-author"><?php echo e(isset($article->user) && $article->user->count() ? 'By '.$article->user->name : ''); ?> <i class="fa fa-clock-o m-l-10"></i> <?php echo e(Carbon::createFromTimestamp(strtotime($article->created_at))->toFormattedDateString()); ?></p>
							</div>
							<ul class="tags">
					    	<?php $__currentLoopData = $article->tags; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tag): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
					    		<li class="tag"><a href="<?php echo e(route('article.tag', $tag->slug)); ?>"><?php echo e($tag->name); ?></a></li>
					    	<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

					    </ul>

					    <div class="content-list">
					    	<?php echo str_limit($article->content, 200); ?>					    	
					    </div>

				    	<a href="<?php echo e(route('article.post', $article->slug)); ?>" class="read-more pull-right"><?php echo app('translator')->getFromJson('frontend.read-more'); ?></a>

				    	<hr class="visible-sm visible-xs">

						</div>					
					</div>
				<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
			<?php endif; ?>

			<?php $__currentLoopData = $lists; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

				<div class="article-card-list">
					<div class="col-xs-12 col-sm-4 col-md-3 col-lg-3">
						<a href="<?php echo e(route('article.post', $list->slug)); ?>">
							<img src="<?php echo e(asset($storage_url.'img/article/'.$list->banner)); ?>" class="img-responsive" alt="">						
						</a>
					</div>

					<div class="col-xs-12 col-sm-8 col-md-9 col-lg-9">
						<div class="media-body">
							<h4 class="media-heading"><a href="<?php echo e(route('article.post', $list->slug)); ?>"><?php echo e(isset($list->title) ? $list->title : ''); ?></a></h4>
							<p class="by-author"><?php echo e(isset($list->user) && $list->user->count() ? 'By '.$list->user->name : ''); ?> <i class="fa fa-clock-o m-l-10"></i> <?php echo e(Carbon::createFromTimestamp(strtotime($list->created_at))->toFormattedDateString()); ?></p>
						</div>
						<ul class="tags">
				    	<?php $__currentLoopData = $list->tags; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tag): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
				    		<li class="tag"><a href="<?php echo e(route('article.tag', $tag->slug)); ?>"><?php echo e($tag->name); ?></a></li>
				    	<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

				    </ul>
				    <div class="content-list">
				    	<?php echo str_limit($list->content, 200); ?>					    	
				    </div>

			    	<a href="<?php echo e(route('article.post', $list->slug)); ?>" class="read-more pull-right"><?php echo app('translator')->getFromJson('frontend.read-more'); ?></a>

			    	<hr class="visible-sm visible-xs">

					</div>					
				</div>

			<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

			
			<?php echo e($lists->links()); ?>

			


		</div>
		
		
	</main>

	

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

<?php $__env->startSection("script"); ?>
	<script>
		
	</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>