<div class="gt-team-8-area">
    <?php if(!empty($settings['shape']['url'])):?>
        <div class="shape-1 slide_left_1">
            <img src="<?php echo esc_url($settings['shape']['url']);?>" alt="<?php if(!empty($settings['shape']['url'])){ echo esc_attr($settings['shape']['alt']);}?>">
        </div>
    <?php endif;?>

    <?php if(!empty($settings['shape2']['url'])):?>
        <div class="shape-2">
            <img src="<?php echo esc_url($settings['shape2']['url']);?>" alt="<?php if(!empty($settings['shape2']['url'])){ echo esc_attr($settings['shape2']['alt']);}?>">
        </div>
    <?php endif;?>

    <div class="container">
        <div class="section-title-wrap">
            
            <?php if(!empty($settings['sub_title'])):?>
                <h5 class="gt-subtitle-8"><?php echo wp_kses($settings['sub_title'], true);?></h5>
            <?php endif;?>

            <?php if(!empty($settings['sub_title'])):?>
                <h2 class="gt-section-title-8 tx-split-text split-in-right"><?php echo wp_kses($settings['title'], true);?></h2>
            <?php endif;?>

        </div>
        <div class="gt-team-8-wrap">
            <?php foreach($settings['teams'] as $item):?>
                <div class="gt-team-8-card">
                    <?php if(!empty($item['authore']['url'])):?>
                        <div class="main-img">
                        <img src="<?php echo esc_url($item['authore']['url']);?>" alt="<?php if(!empty($item['authore']['alt'])){ echo esc_attr($item['authore']['alt']);}?>">
                        </div>
                    <?php endif;?>
                    <div class="content">
                        <?php if(!empty($item['name'])):?>
                            <h5 class="title"><?php echo wp_kses($item['name'], true); ?></h5>
                        <?php endif;?>
                        <?php if(!empty($item['designtaion'])):?>
                            <span class="designation"><?php echo wp_kses($item['designtaion'], true); ?></span>
                        <?php endif;?>
                    </div>
                    <div class="social-media">
                        <?php foreach($item['social_links'] as $icn):?>
                            <a href="<?php echo esc_url($icn['social_link']['url']);?>" class="link-icon">
                                <?php \Elementor\Icons_Manager::render_icon( $icn['social_icon'], [ 'aria-hidden' => 'true' ] ); ?>
                            </a>
                        <?php endforeach;?>
                    </div>
                </div>
            <?php endforeach;?>

        </div>
        <?php if(!empty($settings['description'])):?>
            <p class="gt-para-8 gt-bottom-text"><?php echo __(wpautop($settings['description']))?></p>
        <?php endif;?>
    </div>
  </div>