<?php if ('layout_two' == $settings['layout_type']) : ?>
    <!-- Why Choose section Start -->
    <section class="why-choose-one">
        <div class="container">
            <div class="row">
                <div class="col-lg-6">
                    <div class="why-choose-one__left wow fadeInUp" data-wow-duration="1000ms" data-wow-delay="500ms">
                        <div class="why-choose-one__top">
                            <div class="sec-title 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_two_title_img', 'sec-title__img'); ?>
                                    <?php
                                    if (!empty($settings['layout_two_sec_sub_title'])) :
                                        $this->add_inline_editing_attributes('layout_two_sec_sub_title', 'none');
                                        ostech_elementor_rendered_content($this, 'layout_two_sec_sub_title', 'sec-title__tagline', $settings['section_sub_title_tag_layout_two']);
                                    endif; ?>
                                </div>
                                <?php
                                if (!empty($settings['layout_two_sec_title'])) :
                                    $this->add_inline_editing_attributes('layout_two_sec_title', 'none');
                                    ostech_elementor_rendered_content($this, 'layout_two_sec_title', 'sec-title__title', $settings['section_title_tag_layout_two']);
                                endif; ?>
                            </div>
                        </div>
                        <div class="why-choose-one__feature">
                            <?php
                            foreach ($settings['choose_list_two'] as $index => $item) :
                            ?>
                                <div class="why-choose-one__feature__item wow fadeInUp" data-wow-duration="1000ms" data-wow-delay="500ms">
                                    <div class="why-choose-one__feature__item__content">
                                        <div class="why-choose-one__feature__item__icon">
                                            <?php \Elementor\Icons_Manager::render_icon($item['icon'], ['aria-hidden' => 'true'], 'i'); ?>
                                        </div>
                                        <<?php echo esc_attr($item['title_tag_layout_two']); ?> class="why-choose-one__feature__item__text">
                                            <?php echo wp_kses($item['title'], 'ostech_allowed_tags'); ?>
                                        </<?php echo esc_attr($item['title_tag_layout_two']); ?>>
                                    </div>
                                    <?php if (!empty($item['url']['url'])) : ?>
                                        <div class="why-choose-one__feature__item__link">
                                            <a href="<?php echo esc_url($item['url']['url']); ?>" class="why-choose-one__feature__item__link__btn">
                                                <?php \Elementor\Icons_Manager::render_icon($item['button_icon'], ['aria-hidden' => 'true'], 'i'); ?>
                                            </a>
                                        </div>
                                    <?php endif; ?>
                                </div>
                            <?php endforeach; ?>
                        </div>
                        <?php if (!empty($settings['layout_two_button_label'])) : ?>
                            <div class="why-choose-one__link wow fadeInUp">
                                <a href="<?php echo esc_url($settings['layout_two_button_url']['url']); ?>" <?php esc_attr(!empty($settings['layout_two_button_url']['is_external']) ? "target=_blank" : ' '); ?> class="why-choose-one__link__btn ostech-btn"><?php echo esc_html($settings['layout_two_button_label']); ?></a>
                            </div>
                        <?php endif; ?>
                    </div>
                </div>
                <div class="col-lg-6">
                    <div class="why-choose-one__right wow fadeInRight" data-wow-duration="1000ms" data-wow-delay="500ms">
                        <div class="why-choose-one__thumb">
                            <?php ostech_elementor_rendered_image($settings, 'layout_two_img'); ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="why-choose-one__shape wow fadeInRight" data-wow-duration="1000ms" data-wow-delay="500ms">
            <?php ostech_elementor_rendered_image($settings, 'layout_two_img_two'); ?>
        </div>
    </section>
    <!-- Why Choose section End -->
<?php endif; ?>