<?php $__env->startSection('title', isset($masterName) ? $masterName : ''); ?>

<?php 
	$share_url = Request::url();
	if(!empty($meta_tags)){
		foreach ($meta_tags as $key => $value) {
			$meta[$value->name] = $value->content;
		}
		$share_title = isset($meta['title'])?$meta['title']:"";
		$share_desc = isset($meta['description'])?$meta['description']:"";
	}else{
		$share_title = $masterName;
		$share_desc = $masterDesc;
	}
	$share_img = asset($storage_url.'img/'.$masterLogo);
 ?>

<?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 property="og:image" content="<?php echo e($share_img); ?>" />


<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 name="twitter:image:src" content="<?php echo e($share_img); ?>">


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

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

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

	<?php if ($__env->exists("components.{$homeBanner}")) echo $__env->make("components.{$homeBanner}", array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

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

		
		<?php if($divider1->general_content != ''): ?>
			<section class="divider text-center row">
				<div class="col-xs-12" data-animate="true" data-effect="zoomIn">
					<?php 
						$target_page = App\PageName::where('key', $divider1->general_url)->first();
					 ?>
					<p><?php echo e(isset($divider1->general_content) ? $divider1->general_content : ''); ?></p>
					<a class="btn btn-default" href="<?php echo e($target_page ? $target_page->slug : ''); ?>">
						<?php echo e($target_page ? ucwords($target_page->page_name) : ''); ?>

					</a>
				</div>
			</section>
		<?php endif; ?>
		

		
		<?php if(config('corepackage.catalog.featured_products')): ?>
			<section class="featured-products">
				<header class="row text-center">
					<div class="col-xs-12">
						<div class="plate m-t-50 m-b-50">
							<h2 class="heading"><?php echo e(isset($featured_heading->general_title) ? $featured_heading->general_title : ''); ?></h2>
						</div>
					</div>
				</header>
				<div class="slider-wrapper text-center">
					<ul class="content-slider">
						<?php $__currentLoopData = $featured; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
							<li class="slider-item">
								<div class="item-wrapper text-center">
									<?php 
										$param = [
											'category' => str_slug($element->category->category_name),
											'id' => $element->product_code,
											'slug' => str_slug(($element->product_name ? $element->product_name : 'no-names'))
										];
									 ?>
									<a href="<?php echo e(route('productDetail', $param)); ?>">
										<img src="<?php echo e(asset($storage_url.'img/products/'.$element->product_code.'/'.$element->product_image)); ?>" alt="<?php echo e(isset($element->alt) ? $element->alt : ''); ?>" style="height: auto; width: 100%">
									</a>

									<div class="text-wrapper">
										<a href="<?php echo e(route('productDetail', $param)); ?>">
											<p class="title"><?php echo e(isset($element->category->category_name) ? $element->category->category_name : ''); ?></p>
											<p class="subtitle"><?php echo e(isset($element->product_name) ? $element->product_name : ''); ?></p>
										</a>
									</div>
								</div>
							</li>
						<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
					</ul>
					<a href="<?php echo e(route('categories')); ?>" class="btn btn-default m-t-20 m-b-20"><?php echo app('translator')->getFromJson('frontend.shop-now'); ?></a>
				</div>
				<header class="row text-center">
					<div class="col-xs-12">
						<div class="plate">
							<h2 class="heading"></h2>
						</div>
					</div>
				</header>
			</section>
		<?php endif; ?>
		

		
		<section class="row home-content">
			<article class="col-xs-12 col-sm-10 col-sm-offset-1 text-center">

				<header data-animate="true" data-effect="fadeInUp">
					<h2><?php echo e(isset($content->general_title) ? $content->general_title : ''); ?></h2>
				</header>
				<div data-animate="true" data-effect="fadeInUp">
					<?php echo isset($content->general_content) ? $content->general_content : ''; ?>

				</div>

			</article>
		</section>
		

		
		<section class="banner-img row">
			<img alt="banner-background" src="<?php echo e($banner1->media_url ? asset($storage_url.'img/home/'.$banner1->media_url) : ''); ?>" />
			<article class="banner-content col-xs-12">
				<div class="content-text">
					<div data-animate="true" data-effect="fadeInUp">
						<?php 
							$target_page = App\PageName::where('key', $banner1->media_target)->first();
						 ?>
						<header>
							<h2><?php echo e(isset($banner1->media_title) ? $banner1->media_title : ''); ?></h2>
						</header>
						<?php echo isset($banner1->media_content) ? $banner1->media_content : ''; ?>

						<br />
						<a class="btn btn-default" href="<?php echo e($target_page ? $target_page->slug : ''); ?>">
							<?php echo e($target_page ? ucwords($target_page->page_name) : ''); ?>

						</a>
					</div>
				</div>
			</article>
		</section>
		

		
		<?php if(count($cards) > 0): ?>
		<section id="cards" class="row home-content">
			<div class="col-xs-12 col-md-12 col-md-offset-0 col-lg-10 col-lg-offset-1">
				<div class="row m-md-15">
				<?php $__currentLoopData = $cards; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
					<article class="col-xs-12 col-sm-4 p-l-5 p-r-5">
						<div class="card" data-animate="true" data-effect="fadeInUp">
							<img class="img img-responsive" alt="<?php echo e(isset($val->media_desc) ? $val->media_desc : ''); ?>" src="<?php echo e($val->media_url ? asset($storage_url.'img/home/'.$val->media_url) : ''); ?>" />
							<div class="card-content">
								<header class="text-center">
									<h3><?php echo e(isset($val->media_title) ? $val->media_title : ''); ?></h3>
								</header>
								<?php echo isset($val->media_content) ? $val->media_content : ''; ?>

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

		
		<?php if($divider2->general_content != ''): ?>
			<section class="divider text-center row">
				<?php 
					$target_page = App\PageName::where('key', $divider2->general_url)->first();
				 ?>
				<div class="col-xs-12" data-animate="true" data-effect="zoomIn">
					<p><?php echo e(isset($divider2->general_content) ? $divider2->general_content : ''); ?></p>
					<a class="btn btn-default" href="<?php echo e($target_page ? $target_page->slug : ''); ?>">
						<?php echo e($target_page ? ucwords($target_page->page_name) : ''); ?>

					</a>
				</div>
			</section>
		<?php endif; ?>
		

		
		<section class="banner-img row">
			<img alt="<?php echo e(isset($banner2->media_desc) ? $banner2->media_desc : ''); ?>" src="<?php echo e($banner2->media_url ? asset($storage_url.'img/home/'.$banner2->media_url) : ''); ?>" />
			<article class="banner-content col-xs-12">
				<div class="content-text right">
					<div data-animate="true" data-effect="fadeInUp">
						<?php 
							$target_page = App\PageName::where('key', $banner2->media_target)->first();
						 ?>
						<header>
							<h2><?php echo e(isset($banner2->media_title) ? $banner2->media_title : ''); ?></h2>
						</header>
						<?php echo isset($banner2->media_content) ? $banner2->media_content : ''; ?>

						<br />
						<a class="btn btn-default" href="<?php echo e($target_page ? $target_page->slug : ''); ?>">
							<?php echo e($target_page ? ucwords($target_page->page_name) : ''); ?>

						</a>
					</div>
				</div>
			</article>
		</section>
		

		
		<?php if(config('corepackage.lowcost.instagram') && $homeInstagram): ?>
			<div class="ig-row m-t-100 m-b-100">
				<div class="container">
					<div class="row">
						
						<?php if(count($instagram_media)): ?>
							<div class="col-xs-12 text-center" style="margin-bottom: 20px;">
								<a href="https://www.instagram.com/<?php echo e($instagram_media[0]->user->username); ?>" target="_blank" style="font-size: 20px;">#<?php echo e($instagram_media[0]->user->username); ?></a>
							</div>
						<?php endif; ?>
						
						<?php $__currentLoopData = $instagram_media; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $media): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
							<?php if($loop->iteration <= $homeInstagramLimit): ?>
								<div class="col-xs-12 col-sm-6 col-md-4">
									<a href="<?php echo e($media->link); ?>" target="_blank">
										<img src="<?php echo e(isset($media->images->standard_resolution->url) ? $media->images->standard_resolution->url : ''); ?>" alt="">
									</a>
								</div>
							<?php endif; ?>
						<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
					</div>

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

	</main>

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

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