<?php if ('layout_eight' === $settings['layout_type']) : ?>
    <!--Testimonial Eight Start-->
    <section class="testimonials-four testimonials-four--home-five">
        <div class="container">
            <div class="sec-title-two">

                <<?php echo esc_attr($settings['section_sub_title_tag_layout_eight']); ?> class="sec-title-two__tagline">
                    <span class="sec-title-two__tagline__icon">
                        <?php \Elementor\Icons_Manager::render_icon($settings['layout_eight_sec_icon'], ['aria-hidden' => 'true'], 'i'); ?>
                    </span><?php echo wp_kses($settings['layout_eight_sec_sub_title'], 'ostech_allowed_tags'); ?>
                </<?php echo esc_attr($settings['section_sub_title_tag_layout_eight']); ?>><!-- /.sec-title-two__tagline -->

                <?php
                if (!empty($settings['layout_eight_sec_title'])) :
                    $this->add_inline_editing_attributes('layout_eight_sec_title', 'none');
                    ostech_elementor_rendered_content($this, 'layout_eight_sec_title', 'sec-title-two__title', $settings['section_title_tag_layout_eight']);
                endif;
                ?>
            </div><!-- /.sec-title-two -->
            <div class="testimonials-four__carousel ostech-owl__carousel owl-theme owl-carousel" data-owl-options='<?php echo esc_attr(ostech_get_owl_options($settings)); ?>'>
                <?php foreach ($settings['layout_eight_testimonials'] as $index => $item) :  ?>
                    <div class="item">
                        <div class="testimonials-four__item">
                            <div class="testimonials-four__qutation" style="background-image: url(<?php echo esc_url($item['shape']['url']); ?>);"></div>
                            <div class="testimonials-four__ratings">
                                <?php for ($i = 0; $i < $item['rating']['size']; $i++) : ?>
                                    <span class="fa fa-star"></span>
                                <?php endfor; ?>
                            </div>
                            <div class="testimonials-four__quote">
                                <?php echo wp_kses($item['testimonial'], 'ostech_allowed_tags'); ?>
                            </div>
                            <<?php echo esc_attr($item['testimonial_name_tag_layout_eight']); ?> class="testimonials-four__title">
                                <?php echo wp_kses($item['name'], 'ostech_allowed_tags'); ?>
                            </<?php echo esc_attr($item['testimonial_name_tag_layout_eight']); ?>>
                            <span class="testimonials-four__designation">
                                <?php echo wp_kses($item['designation'], 'ostech_allowed_tags'); ?>
                            </span>
                            <div class="testimonials-four__author">
                                <?php ostech_elementor_rendered_image($item, 'image'); ?>
                            </div>
                        </div>
                    </div><!-- /.testimonials-item -->
                <?php endforeach; ?>
            </div><!-- /.testimonials-four__carousel -->
        </div><!-- /.container -->
    </section><!-- /.testimonials-four -->
    <!--Testimonial Eight End-->
<?php endif; ?>