<?php
    $title = get_field('title');
    $text = get_field('text');
    $primary_btn = get_field('primary_button');
    $secondary_btn = get_field('secondary_button');
    $image = get_field('image');
?>

<?php if($title): ?>
    <section class="hero-banner">
        <h1 class="visually-hidden"><?php echo e(get_bloginfo()); ?></h1>
        <div class="row">
            <div class="col-xs-12 col-md-6">
                <div class="hero-banner__content">
                    <div class="hero-banner__content__title"><?php echo $title; ?></div>
                    <?php if($text): ?>
                        <div class="hero-banner__content__text"><?php echo $text; ?></div>
                    <?php endif; ?>
                    <?php if($primary_btn || $secondary_btn): ?>
                        <div class="hero-banner__content__buttons">
                            <?php if($primary_btn): ?>
                                <div class="hero-banner__content__buttons__button">
                                    <?php echo $__env->make('elements.button', ['data' => $primary_btn, 'type' => 'blue'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                </div>
                            <?php endif; ?>
                            <?php if($secondary_btn): ?>
                                <div class="hero-banner__content__buttons__button">
                                    <?php echo $__env->make('elements.button', ['data' => $secondary_btn, 'type' => 'white'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                </div>
                            <?php endif; ?>
                        </div>
                    <?php endif; ?>
                </div>
            </div>
            <div class="col-xs-12 col-md-6">
                <?php if($image): ?>
                    <div class="hero-banner__image">
                        <?php echo $__env->make('elements.image', ['image_id' => $image], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    </div>
                <?php endif; ?>
            </div>
        </div>
    </section>
<?php endif; ?><?php /**PATH D:\Projekti\WordPress\aphea\public\app\themes\aphea\resources\views/gutenberg/hero-banner.blade.php ENDPATH**/ ?>