<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}
?>
<div class="ezd-grid ezd-grid-cols-12">
    <div class="ezd-lg-col-6">
        <div class="doc_testimonial_slider" data-rtl="<?php echo esc_attr(spel_rtl()) ?>">
			<?php
			if ( ! empty( $testimonials ) ) {
				foreach ( $testimonials as $item ) {
					?>
                    <div class="item elementor-repeater-item-<?php echo esc_attr( $item[ '_id' ] ); ?>">
                        <?php
                        if ( ! empty( $item['content'] ) ) { ?>
                            <div class="se_review_content">
                                <p><?php echo wp_kses_post( spel_kses_post( $item['content'] ) ) ?></p>
                            </div>
                            <?php
                        }
                        ?>
                        <div class="name">
							<?php
							echo ! empty( $item[ 'name' ] ) ? '<h5 class="se_name">' . esc_html( $item[ 'name' ] ) . '</h5>' : '';
							echo ! empty( $item[ 'designation' ] ) ? '<span class="se_designation">' . esc_html( $item[ 'designation' ] ) . '</span>' : '';
							?>
                        </div>
						<?php if ( ! empty( $item[ 'signature' ][ 'id' ] ) ) : ?>
                            <div class="sign">
								<?php spel_dynamic_image( $item[ 'signature' ] ) ?>
                            </div>
						<?php endif; ?>
                    </div>
					<?php
				}
			}
			?>
        </div>
    </div>
    <div class="ezd-lg-col-6">
        <div class="doc_img_slider" data-rtl="<?php echo esc_attr(spel_rtl()) ?>">
			<?php
			if ( ! empty( $testimonials ) ) {
				foreach ( $testimonials as $item ) {
					?>
                    <div class="item elementor-repeater-item-<?php echo esc_attr( $item[ '_id' ] ); ?>">
						<?php
						if ( ! empty( $settings[ 'shape' ][ 'id' ] ) ) :
							spel_dynamic_image( $settings[ 'shape' ], 'full', array( 'class' => 'dot' ) );
						endif;

						echo '<div class="round one"></div>';
						echo '<div class="round two"></div>';

						if ( ! empty( $item[ 'author_image' ][ 'id' ] ) ) :
							spel_dynamic_image( $item[ 'author_image' ] );
						endif;
						?>
                    </div>
					<?php
				}
			}
			?>
        </div>
    </div>
</div>