<?php
namespace Softech_Addons_for_Elementor\Widgets;

if (!defined('ABSPATH')) exit;

class sitsel_pro_progress_bars extends Base_Locked_Widget {

    public function get_name() { 
        return 'sitsel_pro_progress_bars'; 
    }

    public function get_widget_metadata() {
        return [
            'title'       => __('SITS Progress Bars', 'softech-addons-for-elementor'),
            'description' => __('Display beautiful progress bars with customizable styles.', 'softech-addons-for-elementor'),
            'icon'        => 'eicon-skill-bar',
            'categories'  => ['sits-category'],
            'keywords'    => ['progress', 'bar', 'skill', 'meter'],
        ];
    }

    // This method defines upsell information for locked widget
    protected function get_upsale_data() {
        if ($this->is_pro_active()) {
            return false;
        }

        return [
            'condition'   => true,
            'image'       => '', // Optional: Add image URL if available
            'image_alt'   => __('Upgrade', 'softech-addons-for-elementor'),
            'title'       => __('Unlock Sitsel Progress Bars Widget', 'softech-addons-for-elementor'),
            'description' => __('Upgrade to Sitsel Pro to access this premium progress bars widget.', 'softech-addons-for-elementor'),
            // 'upgrade_url' => 'https://portal.sitslab.com/admin/register/cm9sZV9pZD0y',
            'upgrade_url' => 'https://softechaddons.sitslab.com/#pro-plan',
            'upgrade_text'=> __('Upgrade Now', 'softech-addons-for-elementor'),
        ];
    }
}
