<?php $__env->startSection('title'); ?><?php echo e($metatags->title); ?> <?php $__env->stopSection(); ?>
<?php $__env->startSection('description'); ?><?php echo e($metatags->desc); ?> <?php $__env->stopSection(); ?>
<?php $__env->startSection('keywords'); ?><?php echo e($metatags->keyw); ?> <?php $__env->stopSection(); ?>
<?php $__env->startSection('h1'); ?><?php echo e($metatags->h1); ?> <?php $__env->stopSection(); ?>

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

<?php if(count($slides)): ?>
<?php echo $__env->make('frontend.components.slider',$slides, \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php endif; ?>

<?php
    $carousel1 = NULL;
    $carousel2 = NULL;
    $additional_carousels = [];
    if(count($carousels)){

        foreach($carousels as $carousel){
            if($carousel->car_id < 3){
            ${'carousel'.$carousel->car_id} = $carousel;

            } else {
            $additional_carousels[] = $carousel;
            }

            //echo $carousel->car_id ;
        }
    }
?>
<section id="maincontent">
<div class="container-fluid">

<div class="ma-corporate-about">
    <div class="row">
        <div class="col-md-3 col-xs-6">
            <div class="block-wrapper wrapper1">
                <div class="text-des">
                    <h3>EXPRESS DELIVERY</h3>
                </div>
            </div>
        </div>
        <div class="col-md-3 col-xs-6">
            <div class="block-wrapper wrapper2">
                <div class="text-des">
                    <h3>ONLINE SUPPORT&nbsp;</h3>
                </div>
            </div>
        </div>
        <div class="col-md-3 col-xs-6">
            <div class="block-wrapper wrapper3">
                <div class="text-des">
                    <h3>WARRANTY</h3>
                    <p>1 year warranty</p>
                </div>
            </div>
        </div>
        <div class="col-md-3 col-xs-6">
            <div class="block-wrapper wrapper4">
                <div class="text-des">
                    <h3>EU STOCK</h3>
                    <p><br></p>
                </div>
            </div>
        </div>
    </div>
</div>

<?php
    $ifads1 = (isset($ads[1]) && !empty($ads[1])) ? 1 : 0;
?>
<?php echo $__env->renderWhen($ifads1, 'frontend.components.homepage_ads', ['data' => collect($ads[1])], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path'))); ?>

<?php
    $ifcarousel1 = (!is_null($carousel1)) ? 1 : 0;
?>
<?php echo $__env->renderWhen($ifcarousel1, 'frontend.components.homepage_carousel', ['carousel' => $carousel1, 'cid' => 1], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path'))); ?>

<?php
    $ifads2 = (isset($ads[2]) && !empty($ads[2])) ? 1 : 0;
?>
<?php echo $__env->renderWhen($ifads2, 'frontend.components.homepage_ads', ['data' => collect($ads[2])], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path'))); ?>

<?php
    $ifcarousel2 = (!is_null($carousel2)) ? 1 : 0;
?>
<?php echo $__env->renderWhen($ifcarousel2, 'frontend.components.homepage_carousel', ['carousel' => $carousel2, 'cid' => 2], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path'))); ?>

<?php
    $ifads3 = (isset($ads[3]) && !empty($ads[3])) ? 1 : 0;
?>
<?php echo $__env->renderWhen($ifads3, 'frontend.components.homepage_ads', ['data' => collect($ads[3])], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path'))); ?>

<?php if(count($additional_carousels)): ?>
    <?php $cid = 3 ?>
    <?php $__currentLoopData = $additional_carousels; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $carousel): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <?php echo $__env->make('frontend.components.homepage_carousel', ['carousel' => $carousel, 'cid' => $cid], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
        <?php ++$cid; ?>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>

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


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

<?php $__env->startPush('css'); ?>
    <link rel="stylesheet" href="<?php echo e(asset('assets/owlcarousel/assets/owl.carousel.min.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset('assets/owlcarousel/assets/owl.theme.default.min.css')); ?>">
<?php $__env->stopPush(); ?>

<?php $__env->startPush('scripts'); ?>
    <script src="<?php echo e(asset('assets/owlcarousel/owl.carousel.min.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/js/products.js')); ?>"></script>
<?php $__env->stopPush(); ?>

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