<?php if ('layout_two' == $settings['layout_type']) : ?>
    <!-- Package section start -->
    <section class="package-page package-page--two">
        <div class="container">
            <?php if (!empty($settings['layout_two_sec_sub_title'] || $settings['layout_two_sec_title'])) : ?>
                <div class="sec-title text-center wow fadeInUp" data-wow-duration='1500ms' data-wow-delay='000ms'>
                    <div class="d-flex align-items-center justify-content-center">
                        <?php ostech_elementor_rendered_image($settings, 'layout_two_title_image', '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>
            <?php endif; ?>
            <div class="row gutter-y-30">
                <?php foreach ($settings['pricing_layout_two'] as $index => $item) :  ?>
                    <div class="col-md-6 col-lg-4">
                        <div class="package-card price wow fadeInUp" data-wow-duration='700ms'>
                            <div class="package-card__head">
                                <?php if (!empty($item['package_status'])) : ?>
                                    <p class="package-card__head__top"><?php echo esc_html($item['package_status']) ?></p>
                                <?php endif; ?>
                                <div class="package-card__head__box">
                                    <h2 class="package-card__head__title"><?php echo wp_kses($item['plan_title'], 'ostech_allowed_tags'); ?></h2>
                                </div>
                                <div class="package-card__head__content">
                                    <p class="package-card__head__price"> <span class="sup"><?php echo esc_html($item['price_sign']) ?></span> <?php echo wp_kses($item['price'], 'ostech_allowed_tags'); ?><span class="sub"><?php echo esc_html($item['price_decimal']) ?></span></p>
                                    <p class="package-card__head__month"><?php echo wp_kses($item['service_title_text'], 'ostech_allowed_tags'); ?></p>
                                </div>
                            </div>
                            <div class="package-card__content">
                                <ul class="package-card__content__list list-unstyled ml-0">
                                    <?php echo wp_kses($item['service_list'], 'ostech_allowed_tags'); ?>
                                </ul>
                                <?php if (!empty($item['button_label'])) : ?>
                                    <div class="package-card__content__link">
                                        <a href="<?php echo esc_url($item['url']['url']); ?>" <?php esc_attr(!empty($item['url']['is_external']) ? "target=_blank" : ' '); ?> class="package-card__content__link__btn ostech-btn ostech-btn--secondary">
                                            <?php echo esc_html($item['button_label']); ?>
                                        </a>
                                    </div>
                                <?php endif; ?>
                            </div>
                            <div class="package-card__shape">
                                <?php ostech_elementor_rendered_image($item, 'shape'); ?>
                            </div>
                        </div>
                    </div>
                <?php endforeach; ?>
            </div><!-- /.row -->
        </div>
    </section>
    <!-- Package section End -->

<?php endif; ?>