<?php
/**
 * Address Form Widget — Content Controls (TAB_CONTENT)
 *
 * Included via bare require inside register_controls().
 * $this refers to the widget instance.
 */

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

// Content Section
$this->start_controls_section(
    'content_section',
    [
        'label' => __( 'Content', 'ggm-commerce' ),
        'tab'   => \Elementor\Controls_Manager::TAB_CONTENT,
    ]
);

$this->add_control(
    'form_title',
    [
        'label'       => __( 'Form Title', 'ggm-commerce' ),
        'type'        => \Elementor\Controls_Manager::TEXT,
        'default'     => 'Edit Address',
        'label_block' => true,
    ]
);

$this->add_control(
    'show_address_label',
    [
        'label'   => __( 'Show Address Label Field', 'ggm-commerce' ),
        'type'    => \Elementor\Controls_Manager::SWITCHER,
        'default' => 'yes',
    ]
);

$this->add_control(
    'show_company',
    [
        'label'   => __( 'Show Company Field', 'ggm-commerce' ),
        'type'    => \Elementor\Controls_Manager::SWITCHER,
        'default' => 'yes',
    ]
);

$this->add_control(
    'title_tag',
    [
        'label'   => __( 'Title HTML Tag', 'ggm-commerce' ),
        'type'    => \Elementor\Controls_Manager::SELECT,
        'options' => [
            'h1'   => 'H1',
            'h2'   => 'H2',
            'h3'   => 'H3',
            'h4'   => 'H4',
            'h5'   => 'H5',
            'h6'   => 'H6',
            'div'  => 'div',
            'span' => 'span',
            'p'    => 'p',
        ],
        'default' => 'h3',
    ]
);

$this->end_controls_section();
