<?php if(have_rows('accordion_items')): ?>
    <div class="image-text__accordion">
        <?php while(have_rows('accordion_items')): ?>
            <?php
                the_row();
                $icon = get_sub_field( 'accordion_icon' );
                $title = get_sub_field( 'accordion_title' );
                $text = get_sub_field( 'accordion_text' );
            ?>
            <?php if($title && $text): ?>
                <div class="image-text__accordion__item">
                    <div class="image-text__accordion__title">
                        <?php if($icon): ?>
                            <div class="image-text__accordion__icon">
                                <?php echo $__env->make('elements.image', ['image_id' => $icon], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                            </div>
                        <?php endif; ?>
                        <p><?php echo $title; ?></p>
                    </div>
                    <div class="image-text__accordion__text"><?php echo $text; ?></div>
                </div>
            <?php endif; ?>
        <?php endwhile; ?>
    </div>
<?php endif; ?><?php /**PATH D:\Projekti\WordPress\aphea\public\app\themes\aphea\resources\views/blocks/image-text/accordion.blade.php ENDPATH**/ ?>