<div class="pxl-history">
    <?php if(isset($settings['history_1']) && !empty($settings['history_1']) && count($settings['history_1'])): ?>
    <?php $is_new = \Elementor\Icons_Manager::is_migration_allowed(); ?>
    <div class="pxl-history-1">
        <svg xmlns="http://www.w3.org/2000/svg" width="934" height="354" viewBox="0 0 934 354" fill="none">
          <path d="M2 313.258C43.5565 342.494 156.027 383.423 273.458 313.258C420.246 225.552 476.549 238.899 552.959 246.525C629.369 254.152 713.823 242.712 774.147 116.873C822.406 16.2015 900.157 -1.33975 933 2.47356" stroke="#0055FF" stroke-width="4"/>
      </svg>
      <?php
      foreach ($settings['history_1'] as $key => $history): ?>
        <?php
        $image = isset($history['image1']) ? $history['image1'] : '';
        $item_cls = [ 'elementor-repeater-item-'.$history['_id'] ]; 
        $item_at = [ 'elementor-repeater-item-'.$history['_id'] ];             
        ?>
        <div class="wrap-content <?php echo esc_attr($settings['pxl_animate']); ?>" data-wow-delay="<?php echo esc_attr($settings['pxl_animate_delay']); ?>ms">
            <div class="image">
                <?php if (!empty($image['url'])) {
                    $img_icon  = pxl_get_image_by_size( array(
                        'attach_id'  => $image['id'],
                        'thumb_size' => '229x229',
                    ) );
                    $thumbnail_icon    = $img_icon['thumbnail'];
                    echo pxl_print_html($thumbnail_icon);
                }?>
                <?php if ( ! empty( $history['number_1'] ) )
                echo '<span class="number-icon">';
                echo esc_attr($history['number_1']);
                echo '</span>';
                echo '<span class="number-after">';
                echo esc_attr($history['number_1']);
                echo '</span>'; ?>
            </div>
            <div class="box-1">
                <h4 class="title"><?php echo pxl_print_html($history['text_1']); ?></h4>
                <div class="desc"><?php echo pxl_print_html($history['decs_1']); ?></div>
            </div>
        </div>
    <?php endforeach; ?>
</div>
<?php endif; ?>
</div> 