<section id="slider-hero" class="c-hero">
    <div class="c-hero__items js-slider-outer">
        <?php if($banners): ?>

            <?php $__currentLoopData = $banners; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $banner): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php $image = isset($banner->image) ? url('storage/banner/'.$banner->image) : asset('assets/img/content/hero.jpg'); ?>
                <?php $imageMob = isset($banner->image_mobile) ? url('storage/banner/'.$banner->image_mobile) : ((isset($banner->image)) ? url('storage/banner/'.$banner->image) : asset('assets/img/content/hero.jpg') ); ?>
                <?php  $alt_text = isset($banner->alt_image) ? $banner->alt_image : @$banner->image; ?>
                <div class="c-hero__item">
                    <?php
                        $target = ($banner->target == 1) ? "target=_blank": (($banner->target == 2) ? "data-toggle=modal data-target=#modalCta" : '');
                    ?>
                    <?php if($banner->link != ''): ?>
                    <a href="<?php echo e($banner->link); ?>" <?php echo e($target); ?>>
                    <?php endif; ?>
                        <picture class="c-hero__cover">
                            <source media="(max-width: 768px)" srcset="<?php echo e($imageMob); ?>">
                            <source media="(min-width: 769px)" srcset="<?php echo e($image); ?>">
                            <img src="<?php echo e($image); ?>" alt="<?php echo e($alt_text); ?>">
                        </picture>
                        <div class="c-hero__wrap container">
                            <div class="c-hero__content">
                                <?php if($banner->exibir_titulo): ?>
                                <h1 class="c-hero__title"><?php echo $banner->name; ?></h1>
                                <p class="c-hero__subtitle"><?php echo $banner->text; ?></p>
                                <?php endif; ?>
                                <?php if($banner->txtbotao): ?>
                                    <span class="c-button"
                                        style="background-color: <?php echo e(($banner->bt_color != '') ? $banner->bt_color : '#F8FA9E'); ?>; color: #1D1E1C; border-color: transparent;"
                                        onMouseOver="this.style.backgroundColor='transparent'; this.style.color='<?php echo e(($banner->bt_color != '') ? $banner->bt_color : '#F8FA9E'); ?>'; this.style.borderColor='<?php echo e(($banner->bt_color != '') ? $banner->bt_color : '#F8FA9E'); ?>'"
                                        onMouseOut="this.style.backgroundColor='<?php echo e(($banner->bt_color != '') ? $banner->bt_color : '#F8FA9E'); ?>'; this.style.color='#1D1E1C'; this.style.borderColor='<?php echo e(($banner->bt_color != '') ? $banner->bt_color : '#F8FA9E'); ?>'"><?php echo e($banner->txtbotao); ?></span>
                                <?php endif; ?>
                            </div>
                        </div>
                    <?php if($banner->link != ''): ?>
                    </a>
                    <?php endif; ?>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <?php endif; ?>
    </div>

    <div class="c-hero__nav container js-slider-nav">
        <?php if($banners): ?>
            <?php $__currentLoopData = $banners; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $banner): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <button><?php echo e($key+1); ?></button>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <?php endif; ?>
    </div>
</section>
<?php /**PATH /var/www/site.apoiocotacoes.com.br/apoio/resources/views/site/partials/blocos/hero.blade.php ENDPATH**/ ?>