<?php if ('layout_one' == $settings['layout_type']) : ?>
    <!-- why-choose-two section Start -->
    <section class="why-choose-two">
        <div class="why-choose-two__bg jarallax" data-jarallax data-speed="0.3" data-imgPosition="50% -100%" style="background-image: url(<?php echo esc_url($settings['layout_one_bg']['url']) ?>);"></div>
        <div class="container">
            <div class="row">
                <?php foreach ($settings['counter_list'] as $index => $item) : ?>
                    <div class="col-lg-3 col-md-6 col-sm-6">
                        <div class="why-choose-two__funfact__item count-box wow fadeInUp" data-wow-delay="300ms">
                            <div class="why-choose-two__funfact__item__icon">
                                <?php \Elementor\Icons_Manager::render_icon($item['icon'], ['aria-hidden' => 'true'], 'i'); ?>
                            </div>
                            <h2 class="why-choose-two__funfact__item__count">
                                <span class="count-text" data-stop="<?php echo esc_attr($item['counter']); ?>" data-speed="1500"></span>
                                <span><?php echo esc_html($item['counter_after']); ?></span>
                            </h2>
                            <p class="why-choose-two__funfact__item__text"><?php echo wp_kses($item['title'], 'ostech_allowed_tags'); ?></p>
                            <div class="why-choose-two__funfact__item__shape">
                                <?php ostech_elementor_rendered_image($item, 'shape'); ?>
                            </div>
                        </div>
                    </div>
                <?php endforeach; ?>

            </div>
            <div class="why-choose-two__inner">
                <div class="row align-items-center">
                    <div class="col-lg-6">
                        <div class="why-choose-two__top__left">
                            <div class="sec-title sec-title--two wow fadeInUp" data-wow-duration='1500ms' data-wow-delay='000ms'>
                                <div class="d-flex align-items-center justify-content-start">
                                    <?php ostech_elementor_rendered_image($settings, 'layout_one_title_img', 'sec-title__img'); ?>
                                    <?php
                                    if (!empty($settings['layout_one_sec_sub_title'])) :
                                        $this->add_inline_editing_attributes('layout_one_sec_sub_title', 'none');
                                        ostech_elementor_rendered_content($this, 'layout_one_sec_sub_title', 'sec-title__tagline', $settings['section_sub_title_tag_layout_one']);
                                    endif; ?>
                                </div>
                                <?php if (!empty($settings['layout_one_sec_title'])) :
                                    $this->add_inline_editing_attributes('layout_one_sec_title', 'none');
                                    ostech_elementor_rendered_content($this, 'layout_one_sec_title', 'sec-title__title', $settings['section_title_tag_layout_one']);
                                endif;
                                ?>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-6">
                        <div class="why-choose-two__top__right wow fadeInUp" data-wow-delay="900ms">
                            <?php
                            if (!empty($settings['layout_one_sec_summary'])) :
                                $this->add_inline_editing_attributes('layout_one_sec_summary', 'none');
                                ostech_elementor_rendered_content($this, 'layout_one_sec_summary', 'about-two__top__text', 'p');
                            endif;
                            ?>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-6">

                        <div class="why-choose-two__inner__left">
                            <?php
                            foreach ($settings['choose_list'] as $index => $item) :
                            ?>
                                <div class="why-choose-two__inner__item wow fadeInUp" data-wow-delay="300ms">
                                    <div class="why-choose-two__inner__item__content">
                                        <div class="why-choose-two__inner__item__icon">
                                            <?php \Elementor\Icons_Manager::render_icon($item['icon'], ['aria-hidden' => 'true'], 'i'); ?>
                                        </div>
                                        <<?php echo esc_attr($item['title_tag_layout_one']); ?> class="why-choose-two__inner__item__text">
                                            <?php echo wp_kses($item['title'], 'ostech_allowed_tags'); ?>
                                        </<?php echo esc_attr($item['title_tag_layout_one']); ?>><!-- /.why-choose-one__list__title -->
                                    </div>
                                    <div class="why-choose-two__inner__item__link">
                                        <a href="<?php echo esc_url($item['url']['url']); ?>" class="why-choose-two__inner__item__link__btn">
                                            <?php \Elementor\Icons_Manager::render_icon($item['button_icon'], ['aria-hidden' => 'true'], 'i'); ?>
                                    </a>
                                    </div>
                                </div>
                            <?php endforeach; ?>
                        </div>
                    </div>
                    <div class="col-lg-6">
                        <div class="why-choose-two__inner__right wow fadeInRight" data-wow-delay="900ms">
                            <div class="why-choose-two__inner__thumb ostech-stretch-element-inside-column">
                                <?php ostech_elementor_rendered_image($settings, 'layout_one_image_one'); ?>
                            </div>
                        </div>
                    </div>
                    <?php if (!empty($settings['layout_one_button_label'] || $settings['layout_one_cta_title'])) : ?>
                        <div class="col-12">
                            <div class="why-choose-two__cta wow fadeInUp" data-wow-delay="900ms">
                                <div class="why-choose-two__cta__bg" style="background-image: url(<?php echo esc_url($settings['layout_cta_bg']['url']) ?>);"></div>
                                <?php if (!empty($settings['layout_one_cta_title'])) :
                                    $this->add_inline_editing_attributes('layout_one_cta_title', 'none');
                                    ostech_elementor_rendered_content($this, 'layout_one_cta_title', 'why-choose-two__cta__title', $settings['cta_title_tag_layout_one']);
                                endif;
                                ?>

                                <?php if (!empty($settings['layout_one_button_label'])) : ?>
                                    <div class="why-choose-two__cta__link">
                                        <a href="<?php echo esc_url($settings['layout_one_button_url']['url']); ?>" <?php esc_attr(!empty($settings['layout_one_button_url']['is_external']) ? "target=_blank" : ' '); ?> class="why-choose-two__cta__link__btn ostech-btn ostech-btn--secondary"><?php echo esc_html($settings['layout_one_button_label']); ?></a>
                                    </div>
                                <?php endif; ?>
                            </div>
                        </div>
                    <?php endif; ?>
                </div>
            </div>
        </div>
    </section>
    <!-- why-choose-two section End -->
<?php endif; ?>