<?php
/**
 * Elementor Pricing Widget.
 *
 * Elementor widget that inserts an embbedable content into the page, from any given URL.
 *
 * @since 1.0.5
 */
class Elementor_Pricing_Widget extends \Elementor\Widget_Base {

	/**
	 * Get widget name.
	 *
	 * Retrieve Pricing widget name.
	 *
	 * @since 1.0.5
	 * @access public
	 *
	 * @return string Widget name.
	 */
	public function get_name() {
		return 'pricing';
	}

	/**
	 * Get widget title.
	 *
	 * Retrieve Pricing widget title.
	 *
	 * @since 1.0.5
	 * @access public
	 *
	 * @return string Widget title.
	 */
	public function get_title() {
		return __( 'Pricing', 'endless-addons' );
	}

	/**
	 * Get widget icon.
	 *
	 * Retrieve Pricing widget icon.
	 *
	 * @since 1.0.5
	 * @access public
	 *
	 * @return string Widget icon.
	 */
	public function get_icon() {
		return 'fa fa-money';
	}

	/**
	 * Get widget categories.
	 *
	 * Retrieve the list of categories the Pricing widget belongs to.
	 *
	 * @since 1.0.5
	 * @access public
	 *
	 * @return array Widget categories.
	 */
	public function get_categories() {
		return [ 'endless-elements' ];
	}

	/**
	 * Register Pricing widget controls.
	 *
	 * Adds different input fields to allow the user to change and customize the widget settings.
	 *
	 * @since 1.0.5
	 * @access protected
	 */
	protected function register_controls() {

		$this->start_controls_section(
			'default_section_pricing',
			[    
				'label' => __( 'Settings', 'endless-addons' ),
				'tab' => \Elementor\Controls_Manager::TAB_CONTENT
			]
		);

		$this->add_control(
			'show_pricing',
			[
				'label' => __( 'Show/Hide Pricing Section', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::CHOOSE,
				'options' => [
					'show' => [
						'title' => __( 'Show', 'endless-addons' ),
						'icon' => 'fa fa-check'
					],
					'hide' => [
						'title' => __( 'Hide', 'endless-addons' ),
						'icon' => 'fa fa-close'
					]
				],
				'default' => 'show',
				'toggle' => true
			]
		);

		$this->add_control(
			'pricing_style_select',
			[
				'label' => __( 'Select Pricing Style', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SELECT,
				'input_type' => 'SELECT',
				'options' => [
					'style-01' => __( 'Style 01', 'endless-addons' ),
					'style-02' => __( 'Style 02', 'endless-addons' ),
					'style-03' => __( 'Style 03', 'endless-addons' ),
					'style-04' => __( 'Style 04', 'endless-addons' ),
					'style-05' => __( 'Style 05', 'endless-addons' ),
					'style-06' => __( 'Style 06', 'endless-addons' ),
					'style-07' => __( 'Style 07', 'endless-addons' ),
					'style-08' => __( 'Style 08', 'endless-addons' )
				],
				'default' => 'style-01'
			]
		);

		$this->end_controls_section();

		$this->start_controls_section(
			'pricing_top_section',
			[
				'label' => __( 'Pricing Section', 'endless-addons' ),
				'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
			]
		);

				$this->add_control(
			'pricing_title',
			[
				'label' => __( 'Section Title', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Title', 'endless-addons' ),
				'default'  => __( 'Featured Pricing', 'endless-addons' )
			]
		);

		$this->add_control(
			'pricing_desc',
			[
				'label' => __( 'Section Description', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::WYSIWYG,
				'input_type' => 'WYSIWYG',
				'placeholder' => __( 'Description', 'endless-addons' ),
				'default' => __( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Quis ipsum suspendisse ultrices gravida.', 'endless-addons')
			]
		);

		$this->add_group_control(
			\Elementor\Group_Control_Background::get_type(),
			[
				'name' => 'section_background',
				'label' => __( 'Background', 'plugin-domain' ),
				'types' => [ 'classic', 'gradient', 'video' ],
				'selector' => '{{WRAPPER}} .ea-pricing-area',
			]
		);

		$this->end_controls_section();

		$this->start_controls_section(
			'pricing_section',
			[
				'label' => __( 'Pricing Content', 'endless-addons' ),
				'tab' => \Elementor\Controls_Manager::TAB_CONTENT
			]
		);

		$this->add_control(
			'pricing_item_column',
			[
				'label' => __( 'Select Pricing Column', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SELECT,
				'input_type' => 'SELECT',
				'options' => [
					'columns-2' => __( '2', 'endless-addons' ),
					'columns-3' => __( '3', 'endless-addons' ),
					'columns-4' => __( '4', 'endless-addons' )
				],
				'default' => 'columns-3'
			]
		);

	    $this->add_control(
            'featured_text_position',
            [
                'label' => esc_html__('Featured Tag Position', 'endless-addons'),
                'type' => \Elementor\Controls_Manager::CHOOSE,
                'label_block' => true,
                'options' => [
                    'left' => [
                        'title' => __('Left', 'endless-addons'),
                        'icon' => 'fa fa-align-left',
                    ],
                    'right' => [
                        'title' => __('Right', 'endless-addons'),
                        'icon' => 'fa fa-align-right',
                    ],
                ],
                'default' => 'left'
            ]
        );

		$this->add_control(
			'first_tab_text',
			[
				'label' => __( 'First Tab Title', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Title', 'endless-addons' ),
				'default'  => __( 'Monthly Plan', 'endless-addons' ),
				'condition' => [
                    'pricing_style_select' => 'style-03'
                ]
			]
		);

		$this->add_control(
			'second_tab_text',
			[
				'label' => __( 'Second Tab Title', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Title', 'endless-addons' ),
				'default'  => __( 'Yearly Plan', 'endless-addons' ),
				'condition' => [
                    'pricing_style_select' => 'style-03'
                ]
			]
		);

		$repeater = new \Elementor\Repeater();

		$repeater->add_control(
            'single_pricing_price_options',
            [
                'label' => __('Price Options', 'endless-addons'),
                'type' => \Elementor\Controls_Manager::HEADING,
                'separator' => 'after'
            ]
        );

        $repeater->add_control(
			'single_pricing_currency', [
				'label' => __( 'Price Currency', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Currency', 'endless-addons' ),
				'default'  => __( '$', 'endless-addons' )
			]
		);

		$repeater->add_control(
			'single_pricing_price', [
				'label' => __( 'Price', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Price', 'endless-addons' ),
				'default'  => __( '49', 'endless-addons' )
			]
		);

		$repeater->add_control(
            'on_sale',
            [
                'label' => __( 'On Sale?', 'endless-addons' ),
                'type' => \Elementor\Controls_Manager::SWITCHER,
                'label_on' => __( 'Yes', 'endless-addons' ),
                'label_off' => __( 'No', 'endless-addons' ),
                'return_value' => 'yes',
                'default' => 'no'
            ]
        );

        $repeater->add_control(
			'single_pricing_sale_price', [
				'label' => __( 'Sale Price', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Price', 'endless-addons' ),
				'default'  => __( '39', 'endless-addons' ),
				'condition' => [
                    'on_sale' => 'yes'
                ]
			]
		);

		$repeater->add_control(
			'single_pricing_separator', [
				'label' => __( 'Price Separator', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Separator', 'endless-addons' ),
				'default'  => __( '/', 'endless-addons' )
			]
		);

		$repeater->add_control(
			'single_pricing_period', [
				'label' => __( 'Price Period', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'separator' => 'after',
				'placeholder' => __( 'Period', 'endless-addons' ),
				'default'  => __( 'Per Month', 'endless-addons' )
			]
		);

		$repeater->add_control(
			'single_pricing_img',
			[
				'label' => __( 'Pricing Image', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::MEDIA,
				'default' => [
					'url' => plugin_dir_url( dirname( __FILE__ ) ) . '../public/img/pricing/pricing-img4.png'
				],
				'show_label' => true
			]
		);

		$repeater->add_control(
			'icon_type',
			[
				'label' => __( 'Icon Type', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SELECT,
				'input_type' => 'SELECT',
				'options' => [
					'general' => __( 'General', 'endless-addons' ),
					'library' => __( 'Library', 'endless-addons' )
				],
				'default' => 'general'
			]
		);

		$repeater->add_control(
			'single_pricing_icon1', 
			[
				'label' => __( 'Icon', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::ICON,
				'input_type' => 'icon',
				'default'  => 'bx bx-paper-plane',
				'show_label' => true,
				'options' => endless_addons_icons(),
				'condition' => [
                    'icon_type' => 'general'
                ]
			]
		);

		$repeater->add_control(
			'single_pricing_icon2', 
			[
				'label' => __( 'Icon', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::ICONS,
				'input_type' => 'icon',
				'show_label' => true,
				'options' => endless_addons_icons(),
				'condition' => [
                    'icon_type' => 'library'
                ]
			]
		);

		$repeater->add_control(
			'single_pricing_title', [
				'label' => __( 'Title', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Title', 'endless-addons' ),
				'default'  => __( 'Basic', 'endless-addons' )
			]
		);

		$repeater->add_control(
			'ea_title_tag',
			[
				'label' => __( 'Title Tag', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SELECT,
				'input_type' => 'SELECT',
				'options' => [
					'h1' => __( 'h1', 'endless-addons' ),
					'h2' => __( 'h2', 'endless-addons' ),
					'h3' => __( 'h3', 'endless-addons' ),
					'h4' => __( 'h4', 'endless-addons' ),
					'h5' => __( 'h5', 'endless-addons' ),
					'h6' => __( 'h6', 'endless-addons' )
				],
				'default' => 'h3'
			]
		);

		$repeater->add_control(
			'single_pricing_desc', [
				'label' => __( 'Description', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::WYSIWYG,
				'input_type' => 'WYSIWYG',
				'description' => __('Used only for Style 03 & Style 06', 'endless-addons'),
				'default'  => __( 'Get your business up and running', 'endless-addons' )
			]
		);

		$repeater->add_control(
			'single_pricing_features', [
				'label' => __( 'Features', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::WYSIWYG,
				'input_type' => 'WYSIWYG',
				'default'  => __( 'Write features here', 'endless-addons' )
			]
		);

		$repeater->add_control(
			'single_pricing_featured_text', [
				'label' => __( 'Featured Tag Text', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Tag Text', 'endless-addons' ),
				'default'  => __( 'FEATURED', 'endless-addons' )
			]
		);

		$repeater->add_control(
			'button_show_hide',
			[
				'label' => __( 'Button Show/Hide', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SELECT,
				'input_type' => 'SELECT',
				'options' => [
					'show' => __( 'Show', 'endless-addons' ),
					'hide' => __( 'Hide', 'endless-addons' ),
				],
				'default' => 'show'
			]
		);

		$repeater->add_control(
			'single_pricing_btn_text', [
				'label' => __( 'Button Text', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Button Text', 'endless-addons' ),
				'default'  => __( 'Purchase Now', 'endless-addons' ),
				'condition' => [
                    'button_show_hide' => 'show'
                ]
			]
		);

		$repeater->add_control(
			'btn_icon_position',
			[
				'label' => __( 'Button Icon Position', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SELECT,
				'input_type' => 'SELECT',
				'options' => [
					'before' => __( 'Before Text', 'endless-addons' ),
					'after' => __( 'After Text', 'endless-addons' )
				],
				'default' => 'before',
				'condition' => [
                    'button_show_hide' => 'show'
                ]
			]
		);

		$repeater->add_control(
			'btn_icon_type',
			[
				'label' => __( 'Icon Type', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SELECT,
				'input_type' => 'SELECT',
				'options' => [
					'general' => __( 'General', 'endless-addons' ),
					'library' => __( 'Library', 'endless-addons' )
				],
				'default' => 'general',
				'condition' => [
                    'button_show_hide' => 'show'
                ]
			]
		);

		$repeater->add_control(
			'single_pricing_btn_icon1', 
			[
				'label' => __( 'Icon', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::ICON,
				'input_type' => 'icon',
				'default'  => 'bx bxs-hot',
				'show_label' => true,
				'options' => endless_addons_icons(),
				'condition' => [
                    'btn_icon_type' => 'general',
                    'button_show_hide' => 'show'
                ]
			]
		);

		$repeater->add_control(
			'single_pricing_btn_icon2', 
			[
				'label' => __( 'Icon', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::ICONS,
				'input_type' => 'icon',
				'show_label' => true,
				'condition' => [
                    'btn_icon_type' => 'library',
                    'button_show_hide' => 'show'
                ]
			]
		);

		$repeater->add_control(
			'single_pricing_btn_link', [
				'label' => __( 'Button Link', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::URL,
				'input_type' => 'url',
				'default' => [
					'url' => '#',
					'is_external' => true,
					'nofollow' => true
				],
				'condition' => [
                    'button_show_hide' => 'show'
                ]
			]
		);

		$this->add_control(
			'single_pricing',
			[
				'label' => __( 'Single Pricing Monthly', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::REPEATER,
				'fields' => $repeater->get_controls(),
				'default' => [
					[
						'list_title' => __( 'Single Pricing Monthly #1', 'endless-addons' ),
						'list_content' => __( 'Single Pricing Monthly Content', 'endless-addons' ),
					],
				
				]
			]
		);
        
        $repeater = new \Elementor\Repeater();

        $repeater->add_control(
            'single_pricing_price_options',
            [
                'label' => __('Price Options', 'endless-addons'),
                'type' => \Elementor\Controls_Manager::HEADING,
                'separator' => 'after'
            ]
        );

        $repeater->add_control(
			'single_pricing_currency_y', [
				'label' => __( 'Price Currency', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Currency', 'endless-addons' ),
				'default'  => __( '$', 'endless-addons' )
			]
		);

		$repeater->add_control(
			'single_pricing_price_y', [
				'label' => __( 'Price', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Price', 'endless-addons' ),
				'default'  => __( '49', 'endless-addons' )
			]
		);

		$repeater->add_control(
            'on_sale_y',
            [
                'label' => __( 'On Sale?', 'endless-addons' ),
                'type' => \Elementor\Controls_Manager::SWITCHER,
                'label_on' => __( 'Yes', 'endless-addons' ),
                'label_off' => __( 'No', 'endless-addons' ),
                'return_value' => 'yes',
                'default' => 'no'
            ]
        );

        $repeater->add_control(
			'single_pricing_sale_price_y', [
				'label' => __( 'Sale Price', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Price', 'endless-addons' ),
				'default'  => __( '39', 'endless-addons' ),
				'condition' => [
                    'on_sale_y' => 'yes'
                ]
			]
		);

		$repeater->add_control(
			'single_pricing_separator_y', [
				'label' => __( 'Price Separator', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Separator', 'endless-addons' ),
				'default'  => __( '/', 'endless-addons' )
			]
		);

		$repeater->add_control(
			'single_pricing_period_y', [
				'label' => __( 'Price Period', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'separator' => 'after',
				'placeholder' => __( 'Period', 'endless-addons' ),
				'default'  => __( 'Per Month', 'endless-addons' )
			]
		);

		$repeater->add_control(
			'single_pricing_img_y',
			[
				'label' => __( 'Pricing Image', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::MEDIA,
				'default' => [
					'url' => plugin_dir_url( dirname( __FILE__ ) ) . '../public/img/pricing/pricing-img4.png'
				],
				'show_label' => true
			]
		);

		$repeater->add_control(
			'icon_type_y',
			[
				'label' => __( 'Icon Type', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SELECT,
				'input_type' => 'SELECT',
				'options' => [
					'general' => __( 'General', 'endless-addons' ),
					'library' => __( 'Library', 'endless-addons' )
				],
				'default' => 'general'
			]
		);

		$repeater->add_control(
			'single_pricing_y_icon1', 
			[
				'label' => __( 'Icon', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::ICON,
				'input_type' => 'icon',
				'default'  => 'bx bx-paper-plane',
				'show_label' => true,
				'options' => endless_addons_icons(),
				'condition' => [
                    'icon_type_y' => 'general'
                ]
			]
		);

		$repeater->add_control(
			'single_pricing_y_icon2', 
			[
				'label' => __( 'Icon', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::ICONS,
				'input_type' => 'icon',
				'show_label' => true,
				'options' => endless_addons_icons(),
				'condition' => [
                    'icon_type_y' => 'library'
                ]
			]
		);

		$repeater->add_control(
			'single_pricing_title_y', [
				'label' => __( 'Title', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Title', 'endless-addons' ),
				'default'  => __( 'Basic', 'endless-addons' )
			]
		);

		$repeater->add_control(
			'ea_title_tag_y',
			[
				'label' => __( 'Title Tag', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SELECT,
				'input_type' => 'SELECT',
				'options' => [
					'h1' => __( 'h1', 'endless-addons' ),
					'h2' => __( 'h2', 'endless-addons' ),
					'h3' => __( 'h3', 'endless-addons' ),
					'h4' => __( 'h4', 'endless-addons' ),
					'h5' => __( 'h5', 'endless-addons' ),
					'h6' => __( 'h6', 'endless-addons' )
				],
				'default' => 'h3'
			]
		);

		$repeater->add_control(
			'single_pricing_desc_y', [
				'label' => __( 'Description', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::WYSIWYG,
				'input_type' => 'WYSIWYG',
				'description' => __('Used only for Style 03 & Style 06', 'endless-addons'),
				'default'  => __( 'Get your business up and running', 'endless-addons' )
			]
		);

		$repeater->add_control(
			'single_pricing_features_y', [
				'label' => __( 'Features', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::WYSIWYG,
				'input_type' => 'WYSIWYG',
				'default'  => __( 'Write features here', 'endless-addons' )
			]
		);

		$repeater->add_control(
			'single_pricing_featured_text_y', [
				'label' => __( 'Featured Tag Text', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Tag Text', 'endless-addons' ),
				'default'  => __( 'FEATURED', 'endless-addons' )
			]
		);

		$repeater->add_control(
			'button_show_hide_y',
			[
				'label' => __( 'Button Show/Hide', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SELECT,
				'input_type' => 'SELECT',
				'options' => [
					'show' => __( 'Show', 'endless-addons' ),
					'hide' => __( 'Hide', 'endless-addons' ),
				],
				'default' => 'show'
			]
		);

		$repeater->add_control(
			'btn_icon_position_y',
			[
				'label' => __( 'Button Icon Position', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SELECT,
				'input_type' => 'SELECT',
				'options' => [
					'before' => __( 'Before Text', 'endless-addons' ),
					'after' => __( 'After Text', 'endless-addons' )
				],
				'default' => 'before',
				'condition' => [
                    'button_show_hide_y' => 'show'
                ]
			]
		);

		$repeater->add_control(
			'single_pricing_btn_text_y', [
				'label' => __( 'Button Text', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Button Text', 'endless-addons' ),
				'default'  => __( 'Purchase Now', 'endless-addons' ),
				'condition' => [
                    'button_show_hide_y' => 'show'
                ]
			]
		);

		$repeater->add_control(
			'btn_icon_type_y',
			[
				'label' => __( 'Icon Type', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SELECT,
				'input_type' => 'SELECT',
				'options' => [
					'general' => __( 'General', 'endless-addons' ),
					'library' => __( 'Library', 'endless-addons' )
				],
				'default' => 'general',
				'condition' => [
                    'button_show_hide_y' => 'show'
                ]
			]
		);

		$repeater->add_control(
			'single_pricing_btn_icon1_y', 
			[
				'label' => __( 'Icon', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::ICON,
				'input_type' => 'icon',
				'default'  => 'bx bxs-hot',
				'show_label' => true,
				'options' => endless_addons_icons(),
				'condition' => [
                    'btn_icon_type_y' => 'general',
                    'button_show_hide_y' => 'show'
                ]
			]
		);

		$repeater->add_control(
			'single_pricing_btn_icon2_y', 
			[
				'label' => __( 'Icon', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::ICONS,
				'input_type' => 'icon',
				'show_label' => true,
				'condition' => [
                    'btn_icon_type_y' => 'library',
                    'button_show_hide_y' => 'show'
                ]
			]
		);

		$repeater->add_control(
			'single_pricing_btn_link_y', [
				'label' => __( 'Button Link', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::URL,
				'input_type' => 'url',
				'default' => [
					'url' => '#',
					'is_external' => true,
					'nofollow' => true
				],
				'condition' => [
                    'button_show_hide_y' => 'show'
                ]
			]
		);

		$this->add_control(
			'single_pricing_y',
			[
				'label' => __( 'Single Pricing Yearly', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::REPEATER,
				'fields' => $repeater->get_controls(),
				'default' => [
					[
						'list_title_y' => __( 'Single Pricing Yearly #1', 'endless-addons' ),
						'list_content_y' => __( 'Single Pricing Yearly Content', 'endless-addons' ),
					],
				
				],
				'condition' => [
                    'pricing_style_select' => 'style-03'
                ]
			]
		);

		$this->end_controls_section();

		$this->start_controls_section(
			'section_style',
			[
				'label' => __( 'Section Style', 'endless-addons' ),
				'tab' => \Elementor\Controls_Manager::TAB_STYLE
			]
		);

		$this->add_control(
			'section_title_color',
			[
				'label' => __( 'Section Title Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'selectors' => [
                    '{{WRAPPER}} .ea-pricing-area .section-title h2' => 'color: {{VALUE}}'
                ]
			]
		);

		$this->add_group_control(
            \Elementor\Group_Control_Typography::get_type(),
            [
                'name' => 'section_title_typography',
                'label' => __( 'Section Title Typography', 'endless-addons' ),
                'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,
                'selector' => '{{WRAPPER}} .ea-pricing-area .section-title h2'
            ]
        );

        $this->add_control(
			'section_desc_color',
			[
				'label' => __( 'Section Description Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'selectors' => [
                    '{{WRAPPER}} .ea-pricing-area .section-title p' => 'color: {{VALUE}}'
                ]
			]
		);

        $this->add_group_control(
            \Elementor\Group_Control_Typography::get_type(),
            [
                'name' => 'section_desc_typography',
                'label' => __( 'Section Description Typography', 'endless-addons' ),
                'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,
                'selector' => '{{WRAPPER}} .ea-pricing-area .section-title p'
            ]
        );

		$this->end_controls_section();

		$this->start_controls_section(
			'pricing_style',
			[
				'label' => __( 'Pricing Style', 'endless-addons' ),
				'tab' => \Elementor\Controls_Manager::TAB_STYLE
			]
		);

		$this->add_control(
			'pricing_box_bg_color',
			[
				'label' => __( 'Pricing Box Background Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'input_type' => 'color',
				'selectors' => [
                    '{{WRAPPER}} .ea-single-pricing-item' => 'background: {{VALUE}}'
                ]
			]
		);

		$this->add_control(
			'pricing_box_active_color',
			[
				'label' => __( 'Pricing Box Active Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'input_type' => 'color',
				'selectors' => [
                    '{{WRAPPER}} .ea-single-pricing-item::before' => 'background: {{VALUE}}'
                ],
                'condition' => [
                    'pricing_style_select' => array('style-01', 'style-06')
                ]
			]
		);

		$this->add_control(
			'featured_tag_bg_color',
			[
				'label' => __( 'Featured Tag Background Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'selectors' => [
                    '{{WRAPPER}} .ea-single-pricing-item .ribbon span' => 'background: {{VALUE}}'
                ],
			]
		);

		$this->add_control(
			'featured_tag_color',
			[
				'label' => __( 'Featured Tag Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'selectors' => [
                    '{{WRAPPER}} .ea-single-pricing-item .ribbon span' => 'color: {{VALUE}}'
                ],
			]
		);

		$this->add_control(
			'pricing_title_color',
			[
				'label' => __( 'Pricing Title Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'input_type' => 'color',
				'selectors' => [
                    '{{WRAPPER}} .ea-single-pricing-item .ea-title' => 'color: {{VALUE}}'
                ]
			]
		);

        $this->add_group_control(
            \Elementor\Group_Control_Typography::get_type(),
            [
                'name' => 'pricing_title_typography',
                'label' => __( 'Pricing Title Typography', 'endless-addons' ),
                'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,
                'selector' => '{{WRAPPER}} .ea-single-pricing-item .ea-title'
            ]
        );

        $this->add_control(
			'pricing_price_color',
			[
				'label' => __( 'Price Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'input_type' => 'color',
				'selectors' => [
                    '{{WRAPPER}} .ea-single-pricing-item .price' => 'color: {{VALUE}}'
                ]
			]
		);

        $this->add_group_control(
            \Elementor\Group_Control_Typography::get_type(),
            [
                'name' => 'pricing_price_typography',
                'label' => __( 'Price Typography', 'endless-addons' ),
                'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,
                'selector' => '{{WRAPPER}} .ea-single-pricing-item .price'
            ]
        );

        $this->add_control(
			'pricing_icon_bg_color',
			[
				'label' => __( 'Pricing Icon Background Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'input_type' => 'color',
				'selectors' => [
                    '{{WRAPPER}} .ea-pricing-area .ea-single-pricing-item .ea-icon' => 'background-color: {{VALUE}}'
                ],
                'condition' => [
                    'pricing_style_select' => array('style-01', 'style-02', 'style-03', 'style-04', 'style-05', 'style-06', 'style-08')
                ]
			]
		);

        $this->add_control(
			'pricing_icon_color',
			[
				'label' => __( 'Pricing Icon Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'input_type' => 'color',
				'selectors' => [
                    '{{WRAPPER}} .ea-single-pricing-item .icon i' => 'color: {{VALUE}}'
                ]
			]
		);

        $this->add_control(
			'pricing_icon_size',
			[
				'label' => __( 'Pricing Icon Size', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SLIDER,
                'range' => [
                    'px' => [
                        'min' => 20,
                        'max' => 100,
                        'step' => 1,
                    ],
                ],
                'selectors' => [
                    '{{WRAPPER}} .ea-single-pricing-item i' => 'font-size: {{SIZE}}px;'
                ],
			]
		);

        $this->add_control(
			'pricing_image_height',
			[
				'label' => __( 'Pricing Image Height', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SLIDER,
				'range' => [
					'px' => [
						'min' => 100,
						'max' => 1000
					]
				],
				'selectors' => [
					'{{WRAPPER}} .ea-single-pricing-item img' => 'height: {{SIZE}}{{UNIT}}',
				],
			]
		);

		$this->add_control(
			'pricing_image_width',
			[
				'label' => __( 'Pricing Image Width', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SLIDER,
				'range' => [
					'px' => [
						'min' => 100,
						'max' => 1000
					]
				],
				'selectors' => [
					'{{WRAPPER}} .ea-single-pricing-item img' => 'width: {{SIZE}}{{UNIT}}',
				],
			]
		);

		$this->end_controls_section();

		$this->start_controls_section(
			'pricing_btn_style',
			[
				'label' => __( 'Button Style', 'endless-addons' ),
				'tab' => \Elementor\Controls_Manager::TAB_STYLE
			]
		);

		$this->add_group_control(
            \Elementor\Group_Control_Typography::get_type(),
            [
                'name' => 'pricing_btn_typography',
                'label' => __( 'Button Typography', 'endless-addons' ),
                'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,
                'selector' => '{{WRAPPER}} .ea-pricing-area .ea-single-pricing-item .default-btn, .ea-pricing-area .ea-single-pricing-item .link-btn'
            ]
        );

		$this->add_control(
			'button_bg_color',
			[
				'label' => __( 'Button Background Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'selectors' => [
                    '{{WRAPPER}} .ea-single-pricing-item.style-one .link-btn::before, .ea-single-pricing-item.style-two .link-btn, .ea-single-pricing-item.style-two.bg-290390 .link-btn, .ea-single-pricing-item.style-two.bg-1fa299 .link-btn, .ea-single-pricing-item.style-three .link-btn, .ea-single-pricing-item.style-four .link-btn, .ea-single-pricing-item.style-five .book-now-btn .link-btn, .ea-single-pricing-item.style-six .btn-box .link-btn::before, .ea-single-pricing-item.style-seven .default-btn::before, .ea-single-pricing-item.style-seven .content .link-btn' => 'background: {{VALUE}}'
                ],
			]
		);

		$this->add_control(
			'button_color',
			[
				'label' => __( 'Button Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'selectors' => [
                    '{{WRAPPER}} .ea-single-pricing-item.style-one .link-btn, .ea-single-pricing-item.style-two .link-btn, .ea-single-pricing-item.style-three .link-btn, .ea-single-pricing-item.style-four .link-btn, .ea-single-pricing-item.style-five .book-now-btn .link-btn, .ea-single-pricing-item.style-six .btn-box .link-btn, .ea-single-pricing-item.style-seven .default-btn, .ea-single-pricing-item.style-seven .content .link-btn' => 'color: {{VALUE}}'
                ],
			]
		);

		$this->add_control(
			'button_border_color',
			[
				'label' => __( 'Button Border Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'selectors' => [
                    '{{WRAPPER}} .ea-single-pricing-item.style-five .book-now-btn .link-btn' => 'border-color: {{VALUE}}'
                ],
                'condition' => [
                    'pricing_style_select' => 'style-05'
                ]
			]
		);

		$this->add_control(
			'button_bg_hover_color',
			[
				'label' => __( 'Button Background Hover Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'selectors' => [
                    '{{WRAPPER}} .ea-single-pricing-item.style-one .link-btn, .ea-single-pricing-item.style-two .link-btn:hover, .ea-single-pricing-item.style-two.bg-290390 .link-btn:hover, .ea-single-pricing-item.style-two.bg-1fa299 .link-btn:hover, .ea-single-pricing-item.style-three .link-btn::before, .ea-single-pricing-item.style-four .link-btn:hover, .ea-single-pricing-item.style-five .book-now-btn .link-btn:hover, .ea-single-pricing-item.style-six:hover .btn-box .link-btn, .ea-single-pricing-item.style-six.active .btn-box .link-btn, .ea-single-pricing-item.style-seven .default-btn:hover, .ea-single-pricing-item.style-seven .content .link-btn:hover' => 'background: {{VALUE}}'
                ],
			]
		);

		$this->add_control(
			'button_hover_color',
			[
				'label' => __( 'Button Hover Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'selectors' => [
                    '{{WRAPPER}} .ea-single-pricing-item.style-one .link-btn:hover, .ea-single-pricing-item.style-two .link-btn:hover, .ea-single-pricing-item.style-three .link-btn:hover, .ea-single-pricing-item.style-four .link-btn:hover, .ea-single-pricing-item.style-five .book-now-btn .link-btn:hover, .ea-single-pricing-item.style-six:hover .btn-box .link-btn, .ea-single-pricing-item.style-six.active .btn-box .link-btn, .ea-single-pricing-item.style-seven .default-btn:hover, .ea-single-pricing-item.style-seven .content .link-btn:hover' => 'color: {{VALUE}}'
                ],
			]
		);

		$this->add_control(
			'btn_icon_size',
			[
				'label' => __( 'Button Icon Size', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SLIDER,
                'range' => [
                    'px' => [
                        'min' => 10,
                        'max' => 200,
                        'step' => 1,
                    ],
                ],
                'selectors' => [
                    '{{WRAPPER}} .ea-single-pricing-item .link-btn i, .ea-single-pricing-item .default-btn i' => 'font-size: {{SIZE}}px;'
                ]
			]
		);

		$this->add_control(
            'btn_icon_spacing',
            [
                'label'     => esc_html__('Button Icon Spacing', 'endless-addons'),
                'type'      => \Elementor\Controls_Manager::SLIDER,
                'range'     => [
                    'px' => [
                        'max' => 60,
                    ],
                ],
                'selectors' => [
                    '{{WRAPPER}} .ea-single-pricing-item .link-btn .icon-before, .ea-single-pricing-item .default-btn .icon-before' => 'margin-right: {{SIZE}}px;',
                    '{{WRAPPER}} .ea-single-pricing-item .link-btn .icon-after, .ea-single-pricing-item .default-btn .icon-after'  => 'margin-left: {{SIZE}}px;'
                ]
            ]
        );

		$this->end_controls_section();

		$this->start_controls_section(
			'parallax_style',
			[
				'label' => __( 'Background Parallax', 'endless-addons' ),
				'tab' => \Elementor\Controls_Manager::TAB_STYLE,
				'condition' => [
                    'pricing_style_select' => 'style-07'
               ]
			]
		);

		$this->add_control(
			'enable_parallax',
			[
				'label' => __( 'Enable Parallax', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SWITCHER,
				'label_on' => __( 'Yes', 'endless-addons' ),
				'label_off' => __( 'No', 'endless-addons' ),
				'return_value' => 'yes',
				'default' => 'no',
			]
		);

		$this->end_controls_section();

		$this->start_controls_section(
			'_section_overlay_style',
			[
				'label' => __('Background Overlay', 'endless-addons'),
				'tab' => \Elementor\Controls_Manager::TAB_STYLE,
				'condition' => [
                    'pricing_style_select' => array('style-01', 'style-02', 'style-03', 'style-05', 'style-06', 'style-07')
                ]
			]
		);

		$this->start_controls_tabs('_tabs_overlay_style');

		$this->start_controls_tab(
			'_tab_overlay_normal',
			[
				'label' => __('Normal', 'endless-addons'),
			]
		);

		$this->add_group_control(
			\Elementor\Group_Control_Background::get_type(),
			[
				'name'     => 'hover_overlay_normal',
				'label' => __('Background', 'endless-addons'),
				'show_label' => true,
				'types' => ['classic', 'gradient'],
				'exclude' => [
					'classic' => 'image'
				],
				'selector' => '{{WRAPPER}} .ea-pricing-area',
			]
		);

		$this->end_controls_tab();

		$this->start_controls_tab(
			'_tab_overlay_hover',
			[
				'label' => __('Hover', 'endless-addons'),
			]
		);


		$this->add_group_control(
			\Elementor\Group_Control_Background::get_type(),
			[
				'name'     => 'hover_overlay_hover',
				'label' => __('Background', 'endless-addons'),
				'show_label' => true,
				'types' => ['classic', 'gradient'],
				'exclude' => [
					'classic' => 'image'
				],
				'selector' => '{{WRAPPER}} .ea-pricing-area:hover',
			]
		);

		$this->end_controls_tab();

		$this->end_controls_tabs();

		$this->end_controls_section();

	}

	/**
	 * Render Pricing widget output on the frontend.
	 *
	 * Written in PHP and used to generate the final HTML.
	 *
	 * @since 1.0.5
	 * @access protected
	 */
	protected function render() {

		$settings = $this->get_settings_for_display(); ?>

        <!-- Pricing Column Style -->
	    <?php if( $settings['pricing_item_column'] == 'columns-2' ) :
			$pricing_column = 'col-lg-6 col-md-6 col-sm-6';
		elseif( $settings['pricing_item_column'] == 'columns-3' ) :
			$pricing_column = 'col-lg-4 col-md-6 col-sm-6';
		elseif( $settings['pricing_item_column'] == 'columns-4' ) :
			$pricing_column = 'col-lg-3 col-md-6 col-sm-6';
		endif;

    	if( $settings['featured_text_position'] == 'left' ) : 
		    $this->add_render_attribute('pricing_featured_text', 'class', 'is-featured-text-left');
		elseif( $settings['featured_text_position'] == 'right' ) :
            $this->add_render_attribute('pricing_featured_text', 'class', 'is-featured-text-right');
        endif; ?>

        <!-- Start Pricing Area -->
        <?php if( $settings['show_pricing'] == 'show' ) :

	        if( $settings['pricing_style_select'] == 'style-01' ) : ?>
		        <div class="ea-pricing-area pb-70">
		            <div class="container">
		                <div class="section-title">
		                    <h2><?php echo esc_html__($settings['pricing_title']); ?></h2>
		                    <p><?php echo wp_kses_post($settings['pricing_desc']); ?></p>
		                </div>                          
		                <div class="row justify-content-center">
		                	<?php foreach ( $settings['single_pricing'] as $item ) : ?>
			                	<div class="pricing-col <?php echo esc_attr( $pricing_column ); ?>">
			                        <div class="ea-single-pricing-item style-one">
			                            <div class="pricing-header">
			                            	<?php if(! $item['single_pricing_icon1'] == '' || ! $item['single_pricing_icon2'] == '') : ?>
					                            <div class="icon ea-icon">
					                                <?php if( $item['icon_type'] == 'general' ) : ?>
				                                	    <i class="<?php echo wp_kses_post( $item['single_pricing_icon1'] ); ?>"></i>
				                                	<?php else: 
				                                		endad_render_icon( $item, 'icon', 'single_pricing_icon2' ); 
				                                	endif; ?>
					                            </div>
				                            <?php endif; ?>
				                            <<?php echo esc_attr($item['ea_title_tag']); ?> class="ea-title"><?php echo esc_html($item['single_pricing_title']); ?></<?php echo esc_attr($item['ea_title_tag']); ?>>
			                                <div class="icon ea-img">
				                                <?php if( ! $item['single_pricing_img']['url'] == '' ) : ?>
					                                <img src="<?php echo esc_url( $item['single_pricing_img']['url'] ); ?>" alt="image">
				                                <?php endif; ?>
			                                </div>
			                                <?php if($item['on_sale'] == 'no' || $item['on_sale'] == '') : ?>
				                                <span class="price">
				                                	<span>
				                                		<?php echo esc_html( $item['single_pricing_currency'] ); ?><?php echo esc_html( $item['single_pricing_price'] ); ?>
				                                	</span> 
				                                	<?php echo esc_html( $item['single_pricing_separator'] ); ?><?php echo esc_html( $item['single_pricing_period'] ); ?>
				                                </span>
			                                <?php elseif($item['on_sale'] == 'yes') : ?>
			                                	<span class="price">
				                                	<del><span>
				                                		<?php echo esc_html( $item['single_pricing_currency'] ); ?><?php echo esc_html( $item['single_pricing_price'] ); ?>
				                                	</span></del> 
				                                	<span class="sale-price">
				                                		<?php echo esc_html( $item['single_pricing_currency'] ); ?><?php echo esc_html( $item['single_pricing_sale_price'] ); ?>
				                                	</span>
				                                	<?php echo esc_html( $item['single_pricing_separator'] ); ?><?php echo esc_html( $item['single_pricing_period'] ); ?>
				                                </span>
			                                <?php endif; ?>
			                            </div>
			                            <ul class="features-list">
			                                <?php echo wp_kses_post( $item['single_pricing_features'] ); ?>
			                            </ul>
			                            <?php if( ! $item['single_pricing_btn_text'] == '' && $item['button_show_hide'] == 'show' ) :
			                            	$target1 = $item['single_pricing_btn_link']['is_external'] ? ' target="_blank"' : '';
	                                        $nofollow1 = $item['single_pricing_btn_link']['nofollow'] ? ' rel="nofollow"' : ''; ?>
				                            <a href="<?php echo esc_url($item['single_pricing_btn_link']['url']); ?>" <?php echo wp_kses_post( $target1 ); ?> <?php echo wp_kses_post( $nofollow1 ); ?> class="link-btn">
				                            	<?php if(! $item['single_pricing_btn_icon1'] == '' || ! $item['single_pricing_btn_icon2'] == '') : ?>
				                            		<?php if($item['btn_icon_position'] == 'before') : ?>
					                            		<span class="icon-before">
							                                <?php if( $item['btn_icon_type'] == 'general' ) : ?>
						                                	    <i class="<?php echo wp_kses_post( $item['single_pricing_btn_icon1'] ); ?>"></i>
						                                	<?php else: 
						                                		endad_render_icon( $item, 'icon', 'single_pricing_btn_icon2' ); 
						                                	endif; ?>
						                                </span>
						                            <?php endif; ?>
					                            <?php endif;
					                            echo esc_html__( $item['single_pricing_btn_text'] ); ?>
					                            <?php if(! $item['single_pricing_btn_icon1'] == '' || ! $item['single_pricing_btn_icon2'] == '') : ?>
					                            	<?php if($item['btn_icon_position'] == 'after') : ?>
					                            		<span class="icon-after">
							                                <?php if( $item['btn_icon_type'] == 'general' ) : ?>
						                                	    <i class="<?php echo wp_kses_post( $item['single_pricing_btn_icon1'] ); ?>"></i>
						                                	<?php else: 
						                                		endad_render_icon( $item, 'icon', 'single_pricing_btn_icon2' ); 
						                                	endif; ?>
						                                </span>
					                                <?php endif; ?>
					                            <?php endif; ?>
					                        </a>
			                            <?php endif; ?>
			                            <div <?php echo $this->get_render_attribute_string('pricing_featured_text'); ?>>
				                            <?php if( ! $item['single_pricing_featured_text'] == '' ) : ?>
					                            <div class="ribbon ribbon-top-left"><span><?php echo esc_html__( $item['single_pricing_featured_text']); ?></span></div>
				                            <?php endif; ?>
				                        </div>
			                        </div>
			                    </div>
		                    <?php endforeach; ?>
		                </div>
		            </div>
		        </div>
		    <?php elseif( $settings['pricing_style_select'] == 'style-02' ) : ?>
		    	<div class="ea-pricing-area pt-100 pb-70 bg-f9f9f9">
		            <div class="container">
		                <div class="section-title">
		                    <h2><?php echo esc_html__($settings['pricing_title']); ?></h2>
		                    <p><?php echo wp_kses_post($settings['pricing_desc']); ?></p>
		                </div>
		                <div class="row justify-content-center">
		                    <?php foreach ( $settings['single_pricing'] as $item ) : ?>
			                	<div class="pricing-col <?php echo esc_attr( $pricing_column ); ?>">
			                		<div class="ea-single-pricing-item style-two">
			                            <div class="pricing-header">
			                            	<?php if(! $item['single_pricing_icon1'] == '' || ! $item['single_pricing_icon2'] == '') : ?>
					                            <div class="icon ea-icon">
					                                <?php if( $item['icon_type'] == 'general' ) : ?>
				                                	    <i class="<?php echo wp_kses_post( $item['single_pricing_icon1'] ); ?>"></i>
				                                	<?php else: 
				                                		endad_render_icon( $item, 'icon', 'single_pricing_icon2' ); 
				                                	endif; ?>
				                                	<div class="circles-box">
				                                        <div class="circle-one"></div>
				                                    </div>
					                            </div>
				                            <?php endif; ?>
			                                <?php if( ! $item['single_pricing_img']['url'] == '' ) : ?>
				                                <img src="<?php echo esc_url( $item['single_pricing_img']['url'] ); ?>" alt="image">
			                                <?php endif; ?>
			                                <<?php echo esc_attr($item['ea_title_tag']); ?> class="ea-title"><?php echo esc_html($item['single_pricing_title']); ?></<?php echo esc_attr($item['ea_title_tag']); ?>>
			                            </div>
			                            <ul class="pricing-features">
			                                <?php echo wp_kses_post( $item['single_pricing_features'] ); ?>
			                            </ul>
			                            <?php if($item['on_sale'] == 'no' || $item['on_sale'] == '') : ?>
			                                <div class="price">
			                                	<?php echo esc_html( $item['single_pricing_currency'] ); ?><?php echo esc_html( $item['single_pricing_price'] ); ?>
			                                	<span> 
			                                	    <?php echo esc_html( $item['single_pricing_separator'] ); ?><?php echo esc_html( $item['single_pricing_period'] ); ?>
			                                    </span>
				                            </div>
		                                <?php elseif($item['on_sale'] == 'yes') : ?>
		                                	<div class="price">
			                                	<del>
			                                		<?php echo esc_html( $item['single_pricing_currency'] ); ?><?php echo esc_html( $item['single_pricing_price'] ); ?>
			                                	</del> 
		                                		<?php echo esc_html( $item['single_pricing_currency'] ); ?><?php echo esc_html( $item['single_pricing_sale_price'] ); ?>
			                                	<span>
			                                	    <?php echo esc_html( $item['single_pricing_separator'] ); ?><?php echo esc_html( $item['single_pricing_period'] ); ?>
			                                	</span>
			                                </div>
		                                <?php endif; ?>
			                            <?php if( ! $item['single_pricing_btn_text'] == '' && $item['button_show_hide'] == 'show' ) :
			                            	$target1 = $item['single_pricing_btn_link']['is_external'] ? ' target="_blank"' : '';
	                                        $nofollow1 = $item['single_pricing_btn_link']['nofollow'] ? ' rel="nofollow"' : ''; ?>
				                            <a href="<?php echo esc_url($item['single_pricing_btn_link']['url']); ?>" <?php echo wp_kses_post( $target1 ); ?> <?php echo wp_kses_post( $nofollow1 ); ?> class="link-btn">
				                            	<?php if(! $item['single_pricing_btn_icon1'] == '' || ! $item['single_pricing_btn_icon2'] == '') : ?>
				                            		<?php if($item['btn_icon_position'] == 'before') : ?>
					                            		<span class="icon-before">
							                                <?php if( $item['btn_icon_type'] == 'general' ) : ?>
						                                	    <i class="<?php echo wp_kses_post( $item['single_pricing_btn_icon1'] ); ?>"></i>
						                                	<?php else: 
						                                		endad_render_icon( $item, 'icon', 'single_pricing_btn_icon2' ); 
						                                	endif; ?>
						                                </span>
						                            <?php endif; ?>
					                            <?php endif;
					                            echo esc_html__( $item['single_pricing_btn_text'] ); ?>
					                            <?php if(! $item['single_pricing_btn_icon1'] == '' || ! $item['single_pricing_btn_icon2'] == '') : ?>
					                            	<?php if($item['btn_icon_position'] == 'after') : ?>
					                            		<span class="icon-after">
							                                <?php if( $item['btn_icon_type'] == 'general' ) : ?>
						                                	    <i class="<?php echo wp_kses_post( $item['single_pricing_btn_icon1'] ); ?>"></i>
						                                	<?php else: 
						                                		endad_render_icon( $item, 'icon', 'single_pricing_btn_icon2' ); 
						                                	endif; ?>
						                                </span>
					                                <?php endif; ?>
					                            <?php endif; ?>
					                        </a>
			                            <?php endif; ?>
			                            <div <?php echo $this->get_render_attribute_string('pricing_featured_text'); ?>>
				                            <?php if( ! $item['single_pricing_featured_text'] == '' ) : ?>
					                            <div class="ribbon ribbon-top-left"><span><?php echo esc_html__( $item['single_pricing_featured_text']); ?></span></div>
				                            <?php endif; ?>
				                        </div>
			                        </div>
			                	</div>
		                    <?php endforeach; ?>
		                </div>
		            </div>
		        </div>
		    <?php elseif( $settings['pricing_style_select'] == 'style-03' ) : ?>
		    	<div class="ea-pricing-area pt-100 pb-70">
		            <div class="container">
		                <div class="section-title">
		                    <h2><?php echo esc_html__($settings['pricing_title']); ?></h2>
		                    <p><?php echo wp_kses_post($settings['pricing_desc']); ?></p>
		                </div>
		                <div class="pricing-tabs">
			                <ul class="nav nav-tabs" id="myTab" role="tablist">
		                        <li class="nav-item" role="presentation">
		                            <a class="nav-link active" id="monthly-plan-tab" data-bs-toggle="tab" href="#monthly-plan" role="tab" aria-controls="monthly-plan" aria-selected="true"><?php echo esc_html__($settings['first_tab_text']); ?></a>
		                        </li>
		                        <li class="nav-item" role="presentation">
		                            <a class="nav-link" id="yearly-plan-tab" data-bs-toggle="tab" href="#yearly-plan" role="tab" aria-controls="yearly-plan" aria-selected="false"><?php echo esc_html__($settings['second_tab_text']); ?></a>
		                        </li>
		                    </ul>
		                    <div class="tab-content" id="myTabContent">
		                    	<div class="tab-pane fade show active" id="monthly-plan" role="tabpanel">
					                <div class="row justify-content-center">
					                    <?php foreach ( $settings['single_pricing'] as $item ) : ?>
						                	<div class="pricing-col <?php echo esc_attr( $pricing_column ); ?>">
						                		<div class="ea-single-pricing-item style-three">
						                			<?php if(! $item['single_pricing_icon1'] == '' || ! $item['single_pricing_icon2'] == '') : ?>
							                            <div class="icon ea-icon">
							                                <?php if( $item['icon_type'] == 'general' ) : ?>
						                                	    <i class="<?php echo wp_kses_post( $item['single_pricing_icon1'] ); ?>"></i>
						                                	<?php else: 
						                                		endad_render_icon( $item, 'icon', 'single_pricing_icon2' ); 
						                                	endif; ?>
							                            </div>
						                            <?php endif; ?>
			                                        <div class="pricing-header">
			                                            <<?php echo esc_attr($item['ea_title_tag']); ?> class="ea-title"><?php echo esc_html($item['single_pricing_title']); ?></<?php echo esc_attr($item['ea_title_tag']); ?>>
			                                            <p><?php echo wp_kses_post( $item['single_pricing_desc'] ); ?></p>
			                                        </div>
			                                        <?php if( ! $item['single_pricing_img']['url'] == '' ) : ?>
						                                <img src="<?php echo esc_url( $item['single_pricing_img']['url'] ); ?>" alt="image">
					                                <?php endif; ?>
					                                <?php if($item['on_sale'] == 'no' || $item['on_sale'] == '') : ?>
						                                <div class="price">
							                                <?php echo esc_html( $item['single_pricing_currency'] ); ?><?php echo esc_html( $item['single_pricing_price'] ); ?>
							                                <span>
					                                	    <?php echo esc_html( $item['single_pricing_separator'] ); ?><?php echo esc_html( $item['single_pricing_period'] ); ?></span>
							                            </div>
					                                <?php elseif($item['on_sale'] == 'yes') : ?>
					                                	<div class="price">
						                                	<del>
						                                		<?php echo esc_html( $item['single_pricing_currency'] ); ?><?php echo esc_html( $item['single_pricing_price'] ); ?>
						                                	</del> 
					                                		<?php echo esc_html( $item['single_pricing_currency'] ); ?><?php echo esc_html( $item['single_pricing_sale_price'] ); ?>
						                                	<span>
						                                	    <?php echo esc_html( $item['single_pricing_separator'] ); ?><?php echo esc_html( $item['single_pricing_period'] ); ?>
						                                	</span>
						                                </div>
					                                <?php endif; ?>
				                                    <?php if( ! $item['single_pricing_btn_text'] == '' && $item['button_show_hide'] == 'show' ) :
				                                    	$target1 = $item['single_pricing_btn_link']['is_external'] ? ' target="_blank"' : '';
	                                                    $nofollow1 = $item['single_pricing_btn_link']['nofollow'] ? ' rel="nofollow"' : ''; ?>
							                            <a href="<?php echo esc_url($item['single_pricing_btn_link']['url']); ?>" <?php echo wp_kses_post( $target1 ); ?> <?php echo wp_kses_post( $nofollow1 ); ?> class="link-btn">
							                            	<?php if(! $item['single_pricing_btn_icon1'] == '' || ! $item['single_pricing_btn_icon2'] == '') : ?>
							                            		<?php if($item['btn_icon_position'] == 'before') : ?>
								                            		<span class="icon-before">
										                                <?php if( $item['btn_icon_type'] == 'general' ) : ?>
									                                	    <i class="<?php echo wp_kses_post( $item['single_pricing_btn_icon1'] ); ?>"></i>
									                                	<?php else: 
									                                		endad_render_icon( $item, 'icon', 'single_pricing_btn_icon2' ); 
									                                	endif; ?>
									                                </span>
									                            <?php endif; ?>
								                            <?php endif;
								                            echo esc_html__( $item['single_pricing_btn_text'] ); ?>
								                            <?php if(! $item['single_pricing_btn_icon1'] == '' || ! $item['single_pricing_btn_icon2'] == '') : ?>
								                            	<?php if($item['btn_icon_position'] == 'after') : ?>
								                            		<span class="icon-after">
										                                <?php if( $item['btn_icon_type'] == 'general' ) : ?>
									                                	    <i class="<?php echo wp_kses_post( $item['single_pricing_btn_icon1'] ); ?>"></i>
									                                	<?php else: 
									                                		endad_render_icon( $item, 'icon', 'single_pricing_btn_icon2' ); 
									                                	endif; ?>
									                                </span>
								                                <?php endif; ?>
								                            <?php endif; ?>
								                        </a>
						                            <?php endif; ?>
			                                        <ul class="pricing-features">
						                                <?php echo wp_kses_post( $item['single_pricing_features'] ); ?>
			                                        </ul>
			                                        <div <?php echo $this->get_render_attribute_string('pricing_featured_text'); ?>>
							                            <?php if( ! $item['single_pricing_featured_text'] == '' ) : ?>
								                            <div class="ribbon ribbon-top-left"><span><?php echo esc_html__( $item['single_pricing_featured_text']); ?></span></div>
							                            <?php endif; ?>
							                        </div>
			                                    </div>
						                	</div>
					                    <?php endforeach; ?>
					                </div>
					            </div>
					            <div class="tab-pane fade" id="yearly-plan" role="tabpanel">
					                <div class="row justify-content-center">
					                    <?php foreach ( $settings['single_pricing_y'] as $item2 ) : ?>
						                	<div class="pricing-col <?php echo esc_attr( $pricing_column ); ?>">
						                		<div class="ea-single-pricing-item style-three">
						                			<?php if(! $item2['single_pricing_y_icon1'] == '' || ! $item2['single_pricing_y_icon2'] == '') : ?>
							                            <div class="icon ea-icon">
							                                <?php if( $item2['icon_type_y'] == 'general' ) : ?>
						                                	    <i class="<?php echo wp_kses_post( $item2['single_pricing_y_icon1'] ); ?>"></i>
						                                	<?php else: 
						                                		endad_render_icon( $item2, 'icon', 'single_pricing_y_icon2' ); 
						                                	endif; ?>
							                            </div>
						                            <?php endif; ?>
			                                        <div class="pricing-header">
			                                            <<?php echo esc_attr($item2['ea_title_tag_y']); ?> class="ea-title"><?php echo esc_html($item2['single_pricing_title_y']); ?></<?php echo esc_attr($item2['ea_title_tag_y']); ?>>
			                                            <p><?php echo wp_kses_post( $item2['single_pricing_desc_y'] ); ?></p>
			                                        </div>
			                                        <?php if( ! $item2['single_pricing_img_y']['url'] == '' ) : ?>
						                                <img src="<?php echo esc_url( $item2['single_pricing_img_y']['url'] ); ?>" alt="image">
					                                <?php endif; ?>
			                                        <?php if($item2['on_sale_y'] == 'no' || $item2['on_sale_y'] == '') : ?>
						                                <div class="price">
							                                <?php echo esc_html( $item2['single_pricing_currency_y'] ); ?><?php echo esc_html( $item2['single_pricing_price_y'] ); ?>
							                                <span>
					                                	    <?php echo esc_html( $item2['single_pricing_separator_y'] ); ?><?php echo esc_html( $item2['single_pricing_period_y'] ); ?></span>
							                            </div>
					                                <?php elseif($item2['on_sale_y'] == 'yes') : ?>
					                                	<div class="price">
						                                	<del>
						                                		<?php echo esc_html( $item2['single_pricing_currency_y'] ); ?><?php echo esc_html( $item2['single_pricing_price_y'] ); ?>
						                                	</del> 
					                                		<?php echo esc_html( $item2['single_pricing_currency_y'] ); ?><?php echo esc_html( $item2['single_pricing_sale_price_y'] ); ?>
						                                	<span>
						                                	    <?php echo esc_html( $item2['single_pricing_separator_y'] ); ?><?php echo esc_html( $item2['single_pricing_period_y'] ); ?>
						                                	</span>
						                                </div>
					                                <?php endif; ?>
						                            <?php if( ! $item2['single_pricing_btn_text_y'] == '' && $item2['button_show_hide_y'] == 'show' ) : 
						                            	$target2 = $item2['single_pricing_btn_link_y']['is_external'] ? ' target="_blank"' : '';
	                                                    $nofollow2 = $item2['single_pricing_btn_link_y']['nofollow'] ? ' rel="nofollow"' : ''; ?>
							                            <a href="<?php echo esc_url($item2['single_pricing_btn_link_y']['url']); ?>" <?php echo wp_kses_post( $target2 ); ?> <?php echo wp_kses_post( $nofollow2 ); ?> class="link-btn">
							                            	<?php if(! $item2['single_pricing_btn_icon1_y'] == '' || ! $item2['single_pricing_btn_icon2_y'] == '') : ?>
							                            		<?php if($item2['btn_icon_position_y'] == 'before') : ?>
								                            		<span class="icon-before">
										                                <?php if( $item2['btn_icon_type_y'] == 'general' ) : ?>
									                                	    <i class="<?php echo wp_kses_post( $item2['single_pricing_btn_icon1_y'] ); ?>"></i>
									                                	<?php else: 
									                                		endad_render_icon( $item2, 'icon', 'single_pricing_btn_icon2_y' ); 
									                                	endif; ?>
									                                </span>
								                                <?php endif; ?>
								                            <?php endif;
								                            echo esc_html__( $item2['single_pricing_btn_text_y'] ); ?>
								                            <?php if(! $item2['single_pricing_btn_icon1_y'] == '' || ! $item2['single_pricing_btn_icon2_y'] == '') : ?>
								                            	<?php if($item2['btn_icon_position_y'] == 'after') : ?>
								                            		<span class="icon-after">
										                                <?php if( $item2['btn_icon_type_y'] == 'general' ) : ?>
									                                	    <i class="<?php echo wp_kses_post( $item2['single_pricing_btn_icon1_y'] ); ?>"></i>
									                                	<?php else: 
									                                		endad_render_icon( $item2, 'icon', 'single_pricing_btn_icon2_y' ); 
									                                	endif; ?>
									                                </span>
								                                <?php endif; ?>
								                            <?php endif; ?>
								                        </a>
						                            <?php endif; ?>
			                                        <ul class="pricing-features">
						                                <?php echo wp_kses_post( $item2['single_pricing_features_y'] ); ?>
			                                        </ul>
						                            <div <?php echo $this->get_render_attribute_string('pricing_featured_text'); ?>>
							                            <?php if( ! $item2['single_pricing_featured_text_y'] == '' ) : ?>
								                            <div class="ribbon ribbon-top-left"><span><?php echo esc_html__( $item2['single_pricing_featured_text_y']); ?></span></div>
							                            <?php endif; ?>
							                        </div>
			                                    </div>
						                	</div>
					                    <?php endforeach; ?>
					                </div>
					            </div>
					        </div>
			            </div>
		            </div>
		        </div>
		    <?php elseif( $settings['pricing_style_select'] == 'style-04' ) : ?>
		    	<div class="ea-pricing-area pt-100 pb-70 bg-gradient-color"> 
		            <div class="container">
		                <div class="section-title">
		                    <h2><?php echo esc_html__($settings['pricing_title']); ?></h2>
		                    <p><?php echo wp_kses_post($settings['pricing_desc']); ?>
		                    </p>
		                </div>
		                <div class="row justify-content-center">
		                	<?php foreach ( $settings['single_pricing'] as $item ) : ?>
			                	<div class="pricing-col <?php echo esc_attr( $pricing_column ); ?>">
			                		<div class="ea-single-pricing-item style-four">
			                            <div class="pricing-header">
			                                <<?php echo esc_attr($item['ea_title_tag']); ?> class="ea-title"><?php echo esc_html($item['single_pricing_title']); ?></<?php echo esc_attr($item['ea_title_tag']); ?>>
			                            </div>
			                            <?php if( ! $item['single_pricing_img']['url'] == '' ) : ?>
			                                <img src="<?php echo esc_url( $item['single_pricing_img']['url'] ); ?>" alt="image">
		                                <?php endif; ?>
		                                <?php if($item['on_sale'] == 'no' || $item['on_sale'] == '') : ?>
			                                <div class="price">
			                                	<sup><?php echo esc_html( $item['single_pricing_currency'] ); ?></sup><?php echo esc_html( $item['single_pricing_price'] ); ?><sub><?php echo esc_html( $item['single_pricing_separator'] ); ?><?php echo esc_html( $item['single_pricing_period'] ); ?></sub>
				                            </div>
		                                <?php elseif($item['on_sale'] == 'yes') : ?>
		                                	<div class="price">
			                                	<del><sup>
			                                		<?php echo esc_html( $item['single_pricing_currency'] ); ?></sup><?php echo esc_html( $item['single_pricing_price'] ); ?>
			                                	</del> 
		                                		<sup><?php echo esc_html( $item['single_pricing_currency'] ); ?></sup><?php echo esc_html( $item['single_pricing_sale_price'] ); ?>
			                                	<sub>
			                                	    <?php echo esc_html( $item['single_pricing_separator'] ); ?><?php echo esc_html( $item['single_pricing_period'] ); ?>
			                                	</sub>
			                                </div>
		                                <?php endif; ?>
			                            <?php if(! $item['single_pricing_icon1'] == '' || ! $item['single_pricing_icon2'] == '') : ?>
				                            <div class="icon ea-icon">
				                                <?php if( $item['icon_type'] == 'general' ) : ?>
			                                	    <i class="<?php echo wp_kses_post( $item['single_pricing_icon1'] ); ?>"></i>
			                                	<?php else: 
			                                		endad_render_icon( $item, 'icon', 'single_pricing_icon2' ); 
			                                	endif; ?>
				                            </div>
			                            <?php endif; ?>
			                            <ul class="pricing-features">
			                                <?php echo wp_kses_post( $item['single_pricing_features'] ); ?>
			                            </ul>
			                            <?php if( ! $item['single_pricing_btn_text'] == '' && $item['button_show_hide'] == 'show' ) :
			                            	$target1 = $item['single_pricing_btn_link']['is_external'] ? ' target="_blank"' : '';
	                                        $nofollow1 = $item['single_pricing_btn_link']['nofollow'] ? ' rel="nofollow"' : ''; ?>
				                            <a href="<?php echo esc_url($item['single_pricing_btn_link']['url']); ?>" <?php echo wp_kses_post( $target1 ); ?> <?php echo wp_kses_post( $nofollow1 ); ?> class="link-btn">
				                            	<?php if(! $item['single_pricing_btn_icon1'] == '' || ! $item['single_pricing_btn_icon2'] == '') : ?>
				                            		<?php if($item['btn_icon_position'] == 'before') : ?>
					                            		<span class="icon-before">
							                                <?php if( $item['btn_icon_type'] == 'general' ) : ?>
						                                	    <i class="<?php echo wp_kses_post( $item['single_pricing_btn_icon1'] ); ?>"></i>
						                                	<?php else: 
						                                		endad_render_icon( $item, 'icon', 'single_pricing_btn_icon2' ); 
						                                	endif; ?>
						                                </span>
						                            <?php endif; ?>
					                            <?php endif;
					                            echo esc_html__( $item['single_pricing_btn_text'] ); ?>
					                            <?php if(! $item['single_pricing_btn_icon1'] == '' || ! $item['single_pricing_btn_icon2'] == '') : ?>
					                            	<?php if($item['btn_icon_position'] == 'after') : ?>
					                            		<span class="icon-after">
							                                <?php if( $item['btn_icon_type'] == 'general' ) : ?>
						                                	    <i class="<?php echo wp_kses_post( $item['single_pricing_btn_icon1'] ); ?>"></i>
						                                	<?php else: 
						                                		endad_render_icon( $item, 'icon', 'single_pricing_btn_icon2' ); 
						                                	endif; ?>
						                                </span>
					                                <?php endif; ?>
					                            <?php endif; ?>
					                        </a>
			                            <?php endif; ?>
			                            <div <?php echo $this->get_render_attribute_string('pricing_featured_text'); ?>>
				                            <?php if( ! $item['single_pricing_featured_text'] == '' ) : ?>
					                            <div class="ribbon ribbon-top-left"><span><?php echo esc_html__( $item['single_pricing_featured_text']); ?></span></div>
				                            <?php endif; ?>
				                        </div>
			                        </div>
			                	</div>
		                    <?php endforeach; ?>
		                </div>
		            </div>
		        </div>
		    <?php elseif( $settings['pricing_style_select'] == 'style-05' ) : ?>
		    	<div class="ea-pricing-area pt-100 pb-70">
		            <div class="container">
		                <div class="section-title">
		                    <h2><?php echo esc_html__($settings['pricing_title']); ?></h2>
		                    <p><?php echo wp_kses_post($settings['pricing_desc']); ?></p>
		                </div>
		                <div class="row justify-content-center">
		                	<?php foreach ( $settings['single_pricing'] as $item ) : ?>
			                	<div class="pricing-col <?php echo esc_attr( $pricing_column ); ?>">
			                		<div class="ea-single-pricing-item style-five">
			                            <div style="background-image: url(<?php echo esc_url( $item['single_pricing_img']['url'] ); ?>);" class="pricing-header bg1">
			                                <<?php echo esc_attr($item['ea_title_tag']); ?> class="ea-title"><?php echo esc_html($item['single_pricing_title']); ?></<?php echo esc_attr($item['ea_title_tag']); ?>>
			                                <div class="divider"></div>
			                            </div>
			                            <?php if($item['on_sale'] == 'no' || $item['on_sale'] == '') : ?>
				                            <div class="price">
				                                <sub>
			                                		<?php echo esc_html( $item['single_pricing_currency'] ); ?></sub><?php echo esc_html( $item['single_pricing_price'] ); ?><sub><?php echo esc_html( $item['single_pricing_separator'] ); ?><?php echo esc_html( $item['single_pricing_period'] ); ?>
			                                    </sub>
				                            </div>
		                                <?php elseif($item['on_sale'] == 'yes') : ?>
		                                	<div class="price">
			                                	<del><sub>
			                                		<?php echo esc_html( $item['single_pricing_currency'] ); ?></sub><?php echo esc_html( $item['single_pricing_price'] ); ?>
			                                	</del> 
		                                		<sub><?php echo esc_html( $item['single_pricing_currency'] ); ?></sub><?php echo esc_html( $item['single_pricing_sale_price'] ); ?>
			                                	<sub>
			                                	    <?php echo esc_html( $item['single_pricing_separator'] ); ?><?php echo esc_html( $item['single_pricing_period'] ); ?>
			                                	</sub>
			                                </div>
		                                <?php endif; ?>
			                            <?php if(! $item['single_pricing_icon1'] == '' || ! $item['single_pricing_icon2'] == '') : ?>
				                            <div class="icon ea-icon">
				                                <?php if( $item['icon_type'] == 'general' ) : ?>
			                                	    <i class="<?php echo wp_kses_post( $item['single_pricing_icon1'] ); ?>"></i>
			                                	<?php else: 
			                                		endad_render_icon( $item, 'icon', 'single_pricing_icon2' ); 
			                                	endif; ?>
				                            </div>
			                            <?php endif; ?>				               
			                            <?php if( ! $item['single_pricing_btn_text'] == '' && $item['button_show_hide'] == 'show' ) : 
			                            	$target1 = $item['single_pricing_btn_link']['is_external'] ? ' target="_blank"' : '';
	                                        $nofollow1 = $item['single_pricing_btn_link']['nofollow'] ? ' rel="nofollow"' : ''; ?>
			                            	<div class="book-now-btn">
					                            <a href="<?php echo esc_url($item['single_pricing_btn_link']['url']); ?>" <?php echo wp_kses_post( $target1 ); ?> <?php echo wp_kses_post( $nofollow1 ); ?> class="link-btn">
					                            	<?php if(! $item['single_pricing_btn_icon1'] == '' || ! $item['single_pricing_btn_icon2'] == '') : ?>
					                            		<?php if($item['btn_icon_position'] == 'before') : ?>
						                            		<span class="icon-before">
								                                <?php if( $item['btn_icon_type'] == 'general' ) : ?>
							                                	    <i class="<?php echo wp_kses_post( $item['single_pricing_btn_icon1'] ); ?>"></i>
							                                	<?php else: 
							                                		endad_render_icon( $item, 'icon', 'single_pricing_btn_icon2' ); 
							                                	endif; ?>
							                                </span>
						                                <?php endif;
						                            endif;
						                            echo esc_html__( $item['single_pricing_btn_text'] ); ?>
						                            <?php if(! $item['single_pricing_btn_icon1'] == '' || ! $item['single_pricing_btn_icon2'] == '') : ?>
						                            	<?php if($item['btn_icon_position'] == 'after') : ?>
					                            		<span class="icon-after">
							                                <?php if( $item['btn_icon_type'] == 'general' ) : ?>
						                                	    <i class="<?php echo wp_kses_post( $item['single_pricing_btn_icon1'] ); ?>"></i>
						                                	<?php else: 
						                                		endad_render_icon( $item, 'icon', 'single_pricing_btn_icon2' ); 
						                                	endif; ?>
						                                </span>
						                                <?php endif; ?>
						                            <?php endif; ?>
						                        </a>
						                    </div>
			                            <?php endif; ?>
			                            <ul class="pricing-features-list">
			                                <?php echo wp_kses_post( $item['single_pricing_features'] ); ?>
			                            </ul>
			                            <div <?php echo $this->get_render_attribute_string('pricing_featured_text'); ?>>
				                            <?php if( ! $item['single_pricing_featured_text'] == '' ) : ?>
					                            <div class="ribbon ribbon-top-left"><span><?php echo esc_html__( $item['single_pricing_featured_text']); ?></span></div>
				                            <?php endif; ?>
				                        </div>
			                        </div>
			                	</div>
		                    <?php endforeach; ?>
		                </div>
		            </div>
		        </div>
	        <?php elseif( $settings['pricing_style_select'] == 'style-06' ) : ?>
	        	<div class="ea-pricing-area pt-100 pb-70 bg-f9f9f9">
		            <div class="container">
		                <div class="section-title">
		                    <h2><?php echo esc_html__($settings['pricing_title']); ?></h2>
		                    <p><?php echo wp_kses_post($settings['pricing_desc']); ?></p>
		                </div>
		                <div class="row justify-content-center">
		                	<?php foreach ( $settings['single_pricing'] as $item ) : ?>
		                	<div class="pricing-col <?php echo esc_attr( $pricing_column ); ?>">
		                		<div class="ea-single-pricing-item style-six">
		                            <div class="pricing-header">
		                                <<?php echo esc_attr($item['ea_title_tag']); ?> class="ea-title"><?php echo esc_html($item['single_pricing_title']); ?></<?php echo esc_attr($item['ea_title_tag']); ?>>
		                            </div>
		                            <?php if( ! $item['single_pricing_img']['url'] == '' ) : ?>
		                                <img src="<?php echo esc_url( $item['single_pricing_img']['url'] ); ?>" alt="image">
	                                <?php endif; ?>
	                                <?php if($item['on_sale'] == 'no' || $item['on_sale'] == '') : ?>
		                                <div class="price">
			                            	<p><?php echo wp_kses_post( $item['single_pricing_desc'] ); ?></p>
			                                <p>
			                                	<?php echo esc_html( $item['single_pricing_currency'] ); ?><strong><?php echo esc_html( $item['single_pricing_price'] ); ?></strong>
			                                	    <?php echo esc_html( $item['single_pricing_separator'] ); ?><span><?php echo esc_html( $item['single_pricing_period'] ); ?></span>
			                                </p>
			                            </div>
	                                <?php elseif($item['on_sale'] == 'yes') : ?>
	                                	<div class="price">
	                                		<p><?php echo wp_kses_post( $item['single_pricing_desc'] ); ?></p>
	                                		<p>
			                                	<del>
			                                		<?php echo esc_html( $item['single_pricing_currency'] ); ?><strong><?php echo esc_html( $item['single_pricing_price'] ); ?></strong>
			                                	</del>
			                                	<?php echo esc_html( $item['single_pricing_currency'] ); ?><strong><?php echo esc_html( $item['single_pricing_sale_price'] ); ?></strong>
			                                	<?php echo esc_html( $item['single_pricing_separator'] ); ?><span><?php echo esc_html( $item['single_pricing_period'] ); ?></span> 
                                            </p>
		                                </div>
	                                <?php endif; ?>
		                            <?php if(! $item['single_pricing_icon1'] == '' || ! $item['single_pricing_icon2'] == '') : ?>
			                            <div class="icon ea-icon">
			                                <?php if( $item['icon_type'] == 'general' ) : ?>
		                                	    <i class="<?php echo wp_kses_post( $item['single_pricing_icon1'] ); ?>"></i>
		                                	<?php else: 
		                                		endad_render_icon( $item, 'icon', 'single_pricing_icon2' ); 
		                                	endif; ?>
			                            </div>
		                            <?php endif; ?>
		                            <ul class="pricing-features-list">
		                                <?php echo wp_kses_post( $item['single_pricing_features'] ); ?>
		                            </ul>
		                            <?php if( ! $item['single_pricing_btn_text'] == '' && $item['button_show_hide'] == 'show' ) :
		                            	$target1 = $item['single_pricing_btn_link']['is_external'] ? ' target="_blank"' : '';
	                                        $nofollow1 = $item['single_pricing_btn_link']['nofollow'] ? ' rel="nofollow"' : ''; ?>
		                            	<div class="btn-box">
				                            <a href="<?php echo esc_url($item['single_pricing_btn_link']['url']); ?>" <?php echo wp_kses_post( $target1 ); ?> <?php echo wp_kses_post( $nofollow1 ); ?> class="link-btn">
				                            	<?php if(! $item['single_pricing_btn_icon1'] == '' || ! $item['single_pricing_btn_icon2'] == '') : ?>
				                            		<?php if($item['btn_icon_position'] == 'before') : ?>
					                            		<span class="icon-before">
							                                <?php if( $item['btn_icon_type'] == 'general' ) : ?>
						                                	    <i class="<?php echo wp_kses_post( $item['single_pricing_btn_icon1'] ); ?>"></i>
						                                	<?php else: 
						                                		endad_render_icon( $item, 'icon', 'single_pricing_btn_icon2' ); 
						                                	endif; ?>
						                                </span>
					                                <?php endif;
					                            endif;
					                            echo esc_html__( $item['single_pricing_btn_text'] ); ?>
					                            <?php if(! $item['single_pricing_btn_icon1'] == '' || ! $item['single_pricing_btn_icon2'] == '') : ?>
					                            	<?php if($item['btn_icon_position'] == 'after') : ?>
				                            		<span class="icon-after">
						                                <?php if( $item['btn_icon_type'] == 'general' ) : ?>
					                                	    <i class="<?php echo wp_kses_post( $item['single_pricing_btn_icon1'] ); ?>"></i>
					                                	<?php else: 
					                                		endad_render_icon( $item, 'icon', 'single_pricing_btn_icon2' ); 
					                                	endif; ?>
					                                </span>
					                                <?php endif; ?>
					                            <?php endif; ?>
					                        </a>
				                        </div>
			                        <?php endif; ?>
		                            <div <?php echo $this->get_render_attribute_string('pricing_featured_text'); ?>>
			                            <?php if( ! $item['single_pricing_featured_text'] == '' ) : ?>
				                            <div class="ribbon ribbon-top-left"><span><?php echo esc_html__( $item['single_pricing_featured_text']); ?></span></div>
			                            <?php endif; ?>
			                        </div>
		                        </div>
		                	</div>
	                        <?php endforeach; ?>
		                </div>				                
		            </div>
		        </div>
		    <?php elseif( $settings['pricing_style_select'] == 'style-07' ) : ?>
		    	<div class="ea-pricing-area pt-100 pb-70 bg-image">
		            <div class="container">
		                <div class="section-title">
		                    <h2><?php echo esc_html__($settings['pricing_title']); ?></h2>
		                    <p><?php echo wp_kses_post($settings['pricing_desc']); ?></p>
		                </div>
		                <div class="row justify-content-center">
		                	<?php foreach ( $settings['single_pricing'] as $item ) : ?>
			                	<div class="pricing-col <?php echo esc_attr( $pricing_column ); ?>">
			                		<div class="ea-single-pricing-box ea-single-pricing-item style-seven">
			                            <?php if(! $item['single_pricing_icon1'] == '' || ! $item['single_pricing_icon2'] == '') : ?>
				                            <div class="icon">
				                                <?php if( $item['icon_type'] == 'general' ) : ?>
			                                	    <i class="<?php echo wp_kses_post( $item['single_pricing_icon1'] ); ?>"></i>
			                                	<?php else: 
			                                		endad_render_icon( $item, 'icon', 'single_pricing_icon2' ); 
			                                	endif; ?>
			                                	<img src="<?php echo plugins_url('/endless-addons-for-elementor/public/img/shape/shape3.png'); ?>" alt="image">
				                            </div>
			                            <?php endif; ?>
			                            <div class="pricing-header">
			                                <<?php echo esc_attr($item['ea_title_tag']); ?> class="ea-title"><?php echo esc_html($item['single_pricing_title']); ?></<?php echo esc_attr($item['ea_title_tag']); ?>>
			                                <?php if($item['on_sale'] == 'no' || $item['on_sale'] == '') : ?>
				                                 <span class="price">
			                                		<?php echo esc_html( $item['single_pricing_currency'] ); ?><?php echo esc_html( $item['single_pricing_price'] ); ?>
			                                	    <?php echo esc_html( $item['single_pricing_separator'] ); ?><?php echo esc_html( $item['single_pricing_period'] ); ?>
				                                </span>
			                                <?php elseif($item['on_sale'] == 'yes') : ?>
			                                	<span class="price">
				                                	<del><span>
				                                		<?php echo esc_html( $item['single_pricing_currency'] ); ?><?php echo esc_html( $item['single_pricing_price'] ); ?>
				                                	</span></del> 
				                                	<span class="sale-price">
				                                		<?php echo esc_html( $item['single_pricing_currency'] ); ?><?php echo esc_html( $item['single_pricing_sale_price'] ); ?>
				                                	</span>
				                                	<?php echo esc_html( $item['single_pricing_separator'] ); ?><?php echo esc_html( $item['single_pricing_period'] ); ?>
				                                </span>
			                                <?php endif; ?>
			                            </div>
			                            <?php if( ! $item['single_pricing_img']['url'] == '' ) : ?>
			                                <img src="<?php echo esc_url( $item['single_pricing_img']['url'] ); ?>" alt="image">
	                                    <?php endif; ?>
			                            <ul class="features-list">
			                                <?php echo wp_kses_post( $item['single_pricing_features'] ); ?>
			                            </ul>
			                            <?php if( ! $item['single_pricing_btn_text'] == '' && $item['button_show_hide'] == 'show' ) :
			                            	$target1 = $item['single_pricing_btn_link']['is_external'] ? ' target="_blank"' : '';
	                                        $nofollow1 = $item['single_pricing_btn_link']['nofollow'] ? ' rel="nofollow"' : ''; ?>
				                            <a href="<?php echo esc_url($item['single_pricing_btn_link']['url']); ?>" <?php echo wp_kses_post( $target1 ); ?> <?php echo wp_kses_post( $nofollow1 ); ?> class="default-btn">
				                            	<?php if(! $item['single_pricing_btn_icon1'] == '' || ! $item['single_pricing_btn_icon2'] == '') : ?>
				                            		<?php if($item['btn_icon_position'] == 'before') : ?>
					                            		<span class="icon-before">
							                                <?php if( $item['btn_icon_type'] == 'general' ) : ?>
						                                	    <i class="<?php echo wp_kses_post( $item['single_pricing_btn_icon1'] ); ?>"></i>
						                                	<?php else: 
						                                		endad_render_icon( $item, 'icon', 'single_pricing_btn_icon2' ); 
						                                	endif; ?>
						                                </span>
					                                <?php endif;
					                            endif;
					                            echo esc_html__( $item['single_pricing_btn_text'] ); ?>
					                            <?php if(! $item['single_pricing_btn_icon1'] == '' || ! $item['single_pricing_btn_icon2'] == '') : ?>
					                            	<?php if($item['btn_icon_position'] == 'after') : ?>
				                            		<span class="icon-after">
						                                <?php if( $item['btn_icon_type'] == 'general' ) : ?>
					                                	    <i class="<?php echo wp_kses_post( $item['single_pricing_btn_icon1'] ); ?>"></i>
					                                	<?php else: 
					                                		endad_render_icon( $item, 'icon', 'single_pricing_btn_icon2' ); 
					                                	endif; ?>
					                                </span>
					                                <?php endif; ?>
					                            <?php endif; ?>
					                        </a>
			                            <?php endif; ?>
			                            <div <?php echo $this->get_render_attribute_string('pricing_featured_text'); ?>>
				                            <?php if( ! $item['single_pricing_featured_text'] == '' ) : ?>
					                            <div class="ribbon ribbon-top-left"><span><?php echo esc_html__( $item['single_pricing_featured_text']); ?></span></div>
				                            <?php endif; ?>
				                        </div>
			                        </div>
			                	</div>
		                    <?php endforeach; ?>
		                </div>
		            </div>
		        </div>
		        <?php if($settings['enable_parallax'] == 'yes' ){ ?>
			    	<style>
			    		.ea-pricing-area.bg-image {
			    			background-attachment: fixed;
			    		}
			    	</style>
			    <?php } ?>
		    <?php elseif( $settings['pricing_style_select'] == 'style-08' ) : ?>
		    	<div class="ea-pricing-area pt-100 bg-shape">
		            <div class="container">
		                <div class="section-title">
		                    <h2><?php echo esc_html__($settings['pricing_title']); ?></h2>
		                    <p><?php echo wp_kses_post($settings['pricing_desc']); ?></p>
		                </div>
		                <div class="row justify-content-center">
		                	<?php foreach ( $settings['single_pricing'] as $item ) : ?>
			                	<div class="pricing-col <?php echo esc_attr( $pricing_column ); ?>">
			                		<div class="ea-single-pricing-item style-seven style-eight">
			                            <div class="row align-items-center">
			                                <div class="col-lg-6 col-md-6">
			                                    <div class="image">
			                                        <?php if( ! $item['single_pricing_img']['url'] == '' ) : ?>
						                                <img src="<?php echo esc_url( $item['single_pricing_img']['url'] ); ?>" alt="image">
				                                    <?php endif; ?>
				                                    <?php if($item['on_sale'] == 'no' || $item['on_sale'] == '') : ?>
						                                <span class="price">
			                                                <span><?php echo esc_html( $item['single_pricing_currency'] ); ?><?php echo esc_html( $item['single_pricing_price'] ); ?></span>
					                                	    <?php echo esc_html( $item['single_pricing_separator'] ); ?><?php echo esc_html( $item['single_pricing_period'] ); ?>
				                                        </span>
					                                <?php elseif($item['on_sale'] == 'yes') : ?>
					                                	<span class="price">
						                                	<del><span>
						                                		<?php echo esc_html( $item['single_pricing_currency'] ); ?><?php echo esc_html( $item['single_pricing_price'] ); ?>
						                                	</span></del> 
						                                	<span class="sale-price">
						                                		<?php echo esc_html( $item['single_pricing_currency'] ); ?><?php echo esc_html( $item['single_pricing_sale_price'] ); ?>
						                                	</span>
						                                	<?php echo esc_html( $item['single_pricing_separator'] ); ?><?php echo esc_html( $item['single_pricing_period'] ); ?>
						                                </span>
					                                <?php endif; ?>
			                                    </div>
			                                </div>
			                                <div class="col-lg-6 col-md-6">
			                                    <div class="content">
			                                    	<?php if(! $item['single_pricing_icon1'] == '' || ! $item['single_pricing_icon2'] == '') : ?>
							                            <div class="icon ea-icon">
							                                <?php if( $item['icon_type'] == 'general' ) : ?>
						                                	    <i class="<?php echo wp_kses_post( $item['single_pricing_icon1'] ); ?>"></i>
						                                	<?php else: 
						                                		endad_render_icon( $item, 'icon', 'single_pricing_icon2' ); 
						                                	endif; ?>
							                            </div>
						                            <?php endif; ?>
					                                <<?php echo esc_attr($item['ea_title_tag']); ?> class="ea-title"><?php echo esc_html($item['single_pricing_title']); ?></<?php echo esc_attr($item['ea_title_tag']); ?>>
			                                        <ul class="features-list">
			                                            <?php echo wp_kses_post( $item['single_pricing_features'] ); ?>
			                                        </ul>
			                                        <?php if( ! $item['single_pricing_btn_text'] == '' && $item['button_show_hide'] == 'show' ) : 
			                                        	$target1 = $item['single_pricing_btn_link']['is_external'] ? ' target="_blank"' : '';
	                                                    $nofollow1 = $item['single_pricing_btn_link']['nofollow'] ? ' rel="nofollow"' : ''; ?>
							                            <a href="<?php echo esc_url($item['single_pricing_btn_link']['url']); ?>" <?php echo wp_kses_post( $target1 ); ?> <?php echo wp_kses_post( $nofollow1 ); ?> class="link-btn">
							                            	<?php if(! $item['single_pricing_btn_icon1'] == '' || ! $item['single_pricing_btn_icon2'] == '') : ?>
							                            		<?php if($item['btn_icon_position'] == 'before') : ?>
								                            		<span class="icon-before">
										                                <?php if( $item['btn_icon_type'] == 'general' ) : ?>
									                                	    <i class="<?php echo wp_kses_post( $item['single_pricing_btn_icon1'] ); ?>"></i>
									                                	<?php else: 
									                                		endad_render_icon( $item, 'icon', 'single_pricing_btn_icon2' ); 
									                                	endif; ?>
									                                </span>
								                                <?php endif;
								                            endif;
								                            echo esc_html__( $item['single_pricing_btn_text'] ); ?>
								                            <?php if(! $item['single_pricing_btn_icon1'] == '' || ! $item['single_pricing_btn_icon2'] == '') : ?>
								                            	<?php if($item['btn_icon_position'] == 'after') : ?>
							                            		<span class="icon-after">
									                                <?php if( $item['btn_icon_type'] == 'general' ) : ?>
								                                	    <i class="<?php echo wp_kses_post( $item['single_pricing_btn_icon1'] ); ?>"></i>
								                                	<?php else: 
								                                		endad_render_icon( $item, 'icon', 'single_pricing_btn_icon2' ); 
								                                	endif; ?>
								                                </span>
								                                <?php endif; ?>
								                            <?php endif; ?>
								                        </a>
						                            <?php endif; ?>
						                            <div <?php echo $this->get_render_attribute_string('pricing_featured_text'); ?>>
							                            <?php if( ! $item['single_pricing_featured_text'] == '' ) : ?>
								                            <div class="ribbon ribbon-top-left"><span><?php echo esc_html__( $item['single_pricing_featured_text']); ?></span></div>
							                            <?php endif; ?>
							                        </div>
			                                    </div>
			                                </div>
			                            </div>
			                        </div>
			                	</div>
		                    <?php endforeach; ?>
		                </div>
		            </div>
		        </div>
		    <?php endif;

	    endif; ?>
	    <!-- End Pricing Area --> 

	<?php 
    
    }
	
}
