jQuery(function ($) {
    $('.parent-import-container').each(function () {
      var $wrap = $('<div>', { class: 'st-laundry-services-compare-feature' });
  
      var $btns = $('<div>', { class: 'st-laundry-services-portal-btn' });
      $('<a>', {
        href: 'https://striviothemes.com/product/laundry-service-wordpress-theme/?utm_source=wordpress&utm_medium=theme&utm_campaign=free_theme_admin_banner',
        class: 'button button-primary st-laundry-services-buy-now',
        target: '_blank',
        text: 'Buy Now'
      }).appendTo($btns);
      $('<a>', {
        href: 'https://striviothemes.com/preview/st-laundry-service-pro/?utm_source=wordpress&utm_medium=theme&utm_campaign=free_theme_admin_banner',
        class: 'button button-primary st-laundry-services-view-demo',
        target: '_blank',
        text: 'Demo'
      }).appendTo($btns);
  
      var $h2 = $('<h2>', {
        class: 'st-laundry-services-feature-comparison',
        text: 'Feature Comparison'
      });
  
      var rows = [
        ['Features', 'Pro', 'Free', true], // true => header row
        ['Animations', 'available', 'not-available'],
        ['Services Custom Posttype', 'available', 'not-available'],
        ['Booking Form', 'available', 'not-available'],
        ['About Page', 'available', 'not-available'],
        ['Contact Page', 'available', 'not-available'],
        ['Services Page', 'available', 'not-available'],
        ['Blog Page', 'available', 'not-available'],
        ['More Sections', 'available', 'not-available'],
        ['Before After Image', 'available', 'not-available'],
        ['Detailed Documentation', 'available', 'not-available']
      ];
  
      var $table = $('<table>', { class: 'st-laundry-services-compare-table' });
  
      rows.forEach(function (r, i) {
        var $tr = $('<tr>');
        if (r[3]) {
          $('<th>', { class: 'st-laundry-services-compare-th', text: r[0] }).appendTo($tr);
          $('<th>', { class: 'st-laundry-services-compare-th-pro', text: r[1] }).appendTo($tr);
          $('<th>', { class: 'st-laundry-services-compare-th', text: r[2] }).appendTo($tr);
        } else {
          $('<td>', { class: 'st-compare-td', text: r[0] }).appendTo($tr);
          $('<td>', {
            class: 'st-laundry-services-compare-td-pro'
          }).append($('<img>', {
            src: 'https://striviothemes.com/demo/st-demo-importer-imgs/' + r[1] + '.png',
            alt: r[1] === 'available' ? 'Available' : 'Not Available'
          })).appendTo($tr);
          $('<td>', {
            class: 'st-laundry-services-compare-td-free'
          }).append($('<img>', {
            src: 'https://striviothemes.com/demo/st-demo-importer-imgs/' + r[2] + '.png',
            alt: r[2] === 'available' ? 'Available' : 'Not Available'
          })).appendTo($tr);
        }
        $table.append($tr);
      });
  
      $wrap.append($btns, $h2, $table);
      $(this).append($wrap);
    });
  });
  