<?php
  /*****************************************************************************************************************************************************
******************************************************************************************************************************************************

														Title Box 
																		
*//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$this->start_controls_section(
	'title_box',
	[
		'label'			=>  __( 'Title Box', 'reza' ) ,
	]
);
		
		
$this->add_control(
	'title',
	[
		'label'			=> __( 'Title Box', 'reza' ),
		'type'			=> \Elementor\Controls_Manager::TEXT,
		'placeholder'	=> __( 'Title Box', 'reza' ),
		'default'		=> __('Title Box','reza'),
	]
); 		
$this->add_control(
	'title_box_type',
	[
		'label'			=> __('Title Box Display','reza'),
		'type'			=> \Elementor\Controls_Manager::SELECT,
		"options"		=>  array(
			''				=> __('Default','reza'),			
			'main-right'	=> __('Only Main Title Right','reza'),
			'main-center'	=> __('Only Main Title Center','reza'),
  			'main-tabs'		=> __('Main Title and Tabs Right','reza'),
 			'tabs-center'	=> __('All Tabs Center','reza'),			
 			'hide'			=> __('Hide','reza'),				
		)
	]
); 
 
$this->add_control(
	'title_box_all',
	[
		'label'			=>__('Title For All Tab','reza'),
		'type'			=> \Elementor\Controls_Manager::TEXT,
		'default'		=>  reza_t('all') ,
		
		
	]
); 
$this->add_control(
	'title_box_list_all',
	[
		'label'			=> __('Show Button See all','reza'),
		'type'			=> \Elementor\Controls_Manager::SWITCHER ,
		"default"		=> 'no' ,
	]
); 	 
$repeater = new \Elementor\Repeater();
   
	$repeater->add_control(
			'title',
			 [
				'label'			=> __( 'Title', 'reza' ),
				'type'			=> \Elementor\Controls_Manager::TEXT,
				'default'		=> __( 'Tab', 'reza' ),
				'label_block'	=> true,
			]
		);		
		
	$repeater->add_control(
			'cats',
			[
				'label'		=> __( 'Category', 'reza' ),
				'type'			=> \Elementor\Controls_Manager::SELECT,
				"options"		=>  reza_category_array_options('product_cat'),	
			]
		);	
		
	$repeater->add_control(
			'orderby',
			[
				'label' => __( 'Orderby', 'reza' ),
				'type'			=> \Elementor\Controls_Manager::SELECT,
				"options"		=>  reza_array_options('product_orderby'),	
			]
		);					 
 
 	$this->add_control(
			'tabs',
			[
				'label' => __('Add tabs','reza'),
				'type' => \Elementor\Controls_Manager::REPEATER,
				'fields' => $repeater->get_controls(),
 				 
			]
		);   
  
$this->end_controls_section();
 