<?php

/**
 * The Enqueue and Dequeue CSS and JS files setting configurations.
 *
 * @package domain-for-sale
 * @subpackage domain-for-sale/admin
 */

namespace ThemeAtelier\DomainForSale\Admin\Views\Settings;

use ThemeAtelier\DomainForSale\Admin\Framework\Classes\DOMAIN_FOR_SALE;

if (! defined('ABSPATH')) {
    die;
} // Cannot access pages directly.

/**
 * The Layout building class.
 */
class DomainForSaleForm
{

    /**
     * Advanced setting section.
     *
     * @param string $prefix The settings.
     * @return void
     */
    public static function section($prefix)
    {
        DOMAIN_FOR_SALE::createSection(
            $prefix,
            array(
                'id'        => 'single_page',
                'title'       => esc_html__('General', 'domain-for-sale'),
                'icon'        => 'icofont-page',
                'fields' => array(
                    array(
                        'id'      => 'price_currency',
                        'type'    => 'select',
                        'title'   => esc_html__('Currency', 'domain-for-sale'),
                        'options' => array(
                            'usd' => esc_html__('US Dollars (USD)', 'domain-for-sale'),
                            'eur' => esc_html__('Euros (EUR)', 'domain-for-sale'),
                            'aud' => esc_html__('Australian Dollars (AUD)', 'domain-for-sale'),
                            'cad' => esc_html__('Pounds Sterling (GBP)', 'domain-for-sale'),
                            'gbp' => esc_html__('Canadian Dollars (CAD)', 'domain-for-sale'),
                        ),
                        'default' => 'usd',
                        'title_help' => '<div class="domain-for-sale-pro-info-desc">' . esc_html__('Choose the currency in which you want to display and process domain offers. This setting will be applied across all offer and escrow.com form.', 'domain-for-sale') . '</div> <a class="tooltip_btn_primary" target="_blank" href="' . esc_url(DOMAIN_FOR_SALE_DEMO_URL . 'docs/general/?ref=1') . '">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                        'attributes' => array(
                            'style' => 'width: 250px;',
                        ),
                    ),
                    array(
                        'type'    => 'subheading',
                        'content' => esc_html__('Domain Single Page', 'domain-for-sale'),
                    ),
                    array(
                        'id'         => 'single_page_header_footer',
                        'type'       => 'switcher',
                        'title'      => esc_html__('Header And Footer In Single Domain', 'domain-for-sale'),
                        'text_on'    => esc_html__('Show', 'domain-for-sale'),
                        'text_off'   => esc_html__('Hide', 'domain-for-sale'),
                        'text_width' => 80,
                        'default'    => true,
                        'title_help' => '<div class="domain-for-sale-pro-info-label">' . esc_html__('Enable this option to show header and footer.', 'domain-for-sale') . '</div><a class="tooltip_btn_primary" target="_blank" href="' . esc_url(DOMAIN_FOR_SALE_DEMO_URL . 'docs/general/#2-header-and-footer-in-single-domain') . '">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),
                    array(
                        'id'         => 'single_domain_url_slug',
                        'type'       => 'text',
                        'title'      => esc_html__('Single Domian URL Slug', 'domain-for-sale'),
                        'default'   => 'domain',
                        'placeholder'   => 'domain',
                    ),
                )
            )
        );
        DOMAIN_FOR_SALE::createSection(
            $prefix,
            array(
                'id'        => 'proposal',
                'title'       => esc_html__('Offers', 'domain-for-sale'),
                'icon'        => 'icofont-ui-message',
            )
        );
        DOMAIN_FOR_SALE::createSection(
            $prefix,
            array(
                'parent'      => 'proposal',
                'title'       => esc_html__('Offer Form', 'domain-for-sale'),
                'icon'        => 'icofont-ui-note',
                'fields' => array(
                    array(
                        'type'    => 'submessage',
                        'style'   => 'info',
                        'content' => '<p><strong>' . __('Email Delivery Notice:', 'domain-for-sale') . '</strong> ' . __('To ensure all confirmation and verification emails are reliably delivered, we recommend using a dedicated SMTP plugin (such as WP Mail SMTP, FluentSMTP, or Post SMTP). Without SMTP, emails may end up in spam or fail to send from some hosting providers.', 'domain-for-sale') . '</p>',
                    ),

                    array(
                        'id'    => 'dfs-formtitle',
                        'type'  => 'text',
                        'title' => esc_html__('Form Title', 'domain-for-sale'),
                        'default'  => esc_html__('Make an Offer', 'domain-for-sale'),
                        'title_help' => '<div class="domain-for-sale-info-label">' . __('Displayed at the top of the form. When using form types as tabs, this title becomes the tab title.', 'domain-for-sale') . '</div> <a class="tooltip_btn_primary" target="_blank" href="' . DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#form-builder">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'id'    => 'dfs-namelabel',
                        'type'  => 'text',
                        'title' => esc_html__('Name Field Label', 'domain-for-sale'),
                        'default'  => esc_html__('Name*', 'domain-for-sale'),
                        'title_help' => '<div class="domain-for-sale-info-label">' . __('The label text shown above the name input field.', 'domain-for-sale') . '</div> <a class="tooltip_btn_primary" target="_blank" href="' . DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#form-builder">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'id'    => 'dfs-nameplaceholder',
                        'type'  => 'text',
                        'title' => esc_html__('Name Field Placeholder', 'domain-for-sale'),
                        'default'  => esc_html__('Your name', 'domain-for-sale'),
                        'title_help' => '<div class="domain-for-sale-info-label">' . __('The placeholder text inside the name field.', 'domain-for-sale') . '</div> <a class="tooltip_btn_primary" target="_blank" href="' . DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#form-builder">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'id'    => 'dfs-emaillabel',
                        'type'  => 'text',
                        'title' => esc_html__('Email Field Label', 'domain-for-sale'),
                        'default'  => esc_html__('Email*', 'domain-for-sale'),
                        'title_help' => '<div class="domain-for-sale-info-label">' . __('The label text shown above the email input field.', 'domain-for-sale') . '</div> <a class="tooltip_btn_primary" target="_blank" href="' . DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#form-builder">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'id'    => 'dfs-emailplaceholder',
                        'type'  => 'text',
                        'title' => esc_html__('Email Field Placeholder', 'domain-for-sale'),
                        'default'  => esc_html__('Your email address*', 'domain-for-sale'),
                        'title_help' => '<div class="domain-for-sale-info-label">' . __('The placeholder text inside the email field.', 'domain-for-sale') . '</div> <a class="tooltip_btn_primary" target="_blank" href="' . DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#form-builder">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'id'    => 'dfs-phone_label',
                        'type'  => 'text',
                        'title' => esc_html__('Phone Number Field Label', 'domain-for-sale'),
                        'default'  => esc_html__('Phone Number*', 'domain-for-sale'),
                        'title_help' => '<div class="domain-for-sale-info-label">' . __('The label text shown above the phone number field.', 'domain-for-sale') . '</div> <a class="tooltip_btn_primary" target="_blank" href="' . DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#form-builder">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'id'    => 'dfs-phone_placeholder',
                        'type'  => 'text',
                        'title' => esc_html__('Phone Number Field Placeholder', 'domain-for-sale'),
                        'default'  => esc_html__('Write your phone number', 'domain-for-sale'),
                        'title_help' => '<div class="domain-for-sale-info-label">' . __('The placeholder text inside the phone number field.', 'domain-for-sale') . '</div> <a class="tooltip_btn_primary" target="_blank" href="' . DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#form-builder">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),
                    array(
                        'id'    => 'dfs-offerlabel',
                        'type'  => 'text',
                        'class' => 'pro_only',
                        'title' => esc_html__('Offer Field Label', 'domain-for-sale'),
                        'default'  => esc_html__('Offer*', 'domain-for-sale'),
                        'title_help' => '<div class="domain-for-sale-info-label">' . esc_html__('The label text shown above the offer field.', 'domain-for-sale') . '</div> <a class="tooltip_btn_primary" target="_blank" href="' . DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#form-builder">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'id'    => 'dfs-offerplaceholder',
                        'type'  => 'text',
                        'class' => 'pro_only',
                        'title' => esc_html__('Offer Field Placeholder', 'domain-for-sale'),
                        'default'  => esc_html__('Your offer', 'domain-for-sale'),
                        'title_help' => '<div class="domain-for-sale-info-label">' . esc_html__('The placeholder text inside the offer field.', 'domain-for-sale') . '</div> <a class="tooltip_btn_primary" target="_blank" href="' . DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#form-builder">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'id'    => 'dfs-proposallabel',
                        'type'  => 'text',
                        'title' => esc_html__('Message Field Label', 'domain-for-sale'),
                        'default'  => esc_html__('Proposal*', 'domain-for-sale'),
                        'title_help' => '<div class="domain-for-sale-info-label">' . esc_html__('The label text shown above the proposal field.', 'domain-for-sale') . '</div> <a class="tooltip_btn_primary" target="_blank" href="' . DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#form-builder">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'id'    => 'dfs-proposalplaceholder',
                        'type'  => 'text',
                        'title' => esc_html__('Message Field Placeholder', 'domain-for-sale'),
                        'default'  => esc_html__('Write your proposal', 'domain-for-sale'),
                        'title_help' => '<div class="domain-for-sale-info-label">' . esc_html__('The placeholder text inside the proposal field.', 'domain-for-sale') . '</div> <a class="tooltip_btn_primary" target="_blank" href="' . DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#form-builder">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'id'    => 'dfs-buttonlabel',
                        'type'  => 'text',
                        'title' => esc_html__('Button Label', 'domain-for-sale'),
                        'default'  => esc_html__('Send proposal', 'domain-for-sale'),
                        'title_help' => '<div class="domain-for-sale-info-label">' . esc_html__('The text shown on the form submit button.', 'domain-for-sale') . '</div> <a class="tooltip_btn_primary" target="_blank" href="' . DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#form-builder">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                        'desc'      => __('<b>Use placeholders:</b> {{price}}, {{startingPrice}}, {{highestPrice}}.', 'domain-for-sale')
                    ),

                    array(
                        'type'    => 'submessage',
                        'style'   => 'info',
                        'content' => '<a href="https://www.google.com/recaptcha" target="_blank">' . esc_html__('reCAPTCHA', 'domain-for-sale') . '</a> ' . esc_html__('is a free anti-spam service of Google that protects your website from spam and abuse.', 'domain-for-sale') . ' <a href="https://www.google.com/recaptcha/admin#list" target="_blank"> ' . esc_html__('Get your API Keys', 'domain-for-sale') . '</a>.',
                    ),

                    array(
                        'id' => 'dfs-enable-recaptcha',
                        'type'  => 'switcher',
                        'class'  => 'switcher_pro_only',
                        'title' => esc_html__('Enable Google reCAPTCHA', 'domain-for-sale'),
                        'title_help' => '<div class="domain-for-sale-info-label"> ' . esc_html__('Turn on reCAPTCHA to protect your form from spam and bots.', 'domain-for-sale') . '</div> <a class="tooltip_btn_primary" target="_blank" href="' . DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#recaptcha-form-messages">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                        'default'   => true,
                    ),

                    array(
                        'id'         => 'dfs_recaptcha_version',
                        'type'       => 'select',
                        'title'      => esc_html__('reCAPTCHA Type', 'domain-for-sale'),
                        'options'    => array(
                            'v3' => esc_html__('reCAPTCHA v3 (Pro)', 'domain-for-sale'),
                            'v2' => esc_html__('reCAPTCHA v2 (I\'m not a robot Checkbox) (Pro)', 'domain-for-sale'),
                        ),
                        'default'    => 'v3',
                        'dependency' => array('dfs-enable-recaptcha', '==', 'true'),
                        'title_help' => '<div class="domain-for-sale-info-label"> ' . esc_html__('Choose between reCAPTCHA v3 (invisible) or v2 (I’m not a robot checkbox).', 'domain-for-sale') . '</div> <a class="tooltip_btn_primary" target="_blank" href="' . DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#recaptcha-form-messages">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'id' => 'dfs-recaptcha-sitekey',
                        'type'  => 'text',
                        'class'  => 'pro_only',
                        'title' => esc_html__('reCAPTCHA Site Key (v2)', 'domain-for-sale'),
                        'dependency' => array('dfs-enable-recaptcha|dfs_recaptcha_version', '==|==', 'true|v2'),
                        'title_help' => '<div class="domain-for-sale-info-label"> ' . esc_html__('Enter your Google reCAPTCHA v2 Site Key here.', 'domain-for-sale') . '</div> <a class="tooltip_btn_primary" target="_blank" href="' . DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#recaptcha-form-messages">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'id' => 'dfs-recaptcha-secretkey',
                        'type'  => 'text',
                        'class'  => 'pro_only',
                        'title' => esc_html__('reCAPTCHA Secret Key (v2)', 'domain-for-sale'),
                        'dependency' => array('dfs-enable-recaptcha|dfs_recaptcha_version', '==|==', 'true|v2'),
                        'title_help' => '<div class="domain-for-sale-info-label"> ' . esc_html__('Enter your Google reCAPTCHA v2 Secret Key here.', 'domain-for-sale') . '</div> <a class="tooltip_btn_primary" target="_blank" href="' . DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#recaptcha-form-messages">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'id' => 'dfs-recaptcha-sitekey_v3',
                        'type'  => 'text',
                        'class'  => 'pro_only',
                        'title' => esc_html__('reCAPTCHA Site Key (v3)', 'domain-for-sale'),
                        'dependency' => array('dfs-enable-recaptcha|dfs_recaptcha_version', '==|==', 'true|v3'),
                        'title_help' => '<div class="domain-for-sale-info-label"> ' . esc_html__('Enter your Google reCAPTCHA v3 Site Key here.', 'domain-for-sale') . '</div> <a class="tooltip_btn_primary" target="_blank" href="' . DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#recaptcha-form-messages">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'id' => 'dfs-recaptcha-secretkey_v3',
                        'type'  => 'text',
                        'class'  => 'pro_only',
                        'title' => esc_html__('reCAPTCHA Secret Key (v3)', 'domain-for-sale'),
                        'dependency' => array('dfs-enable-recaptcha|dfs_recaptcha_version', '==|==', 'true|v3'),
                        'title_help' => '<div class="domain-for-sale-info-label"> ' . esc_html__('Enter your Google reCAPTCHA v3 Secret Key here.', 'domain-for-sale') . '</div> <a class="tooltip_btn_primary" target="_blank" href="' . DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#recaptcha-form-messages">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'id'    => 'dfs-recaptcha-error-title',
                        'type'  => 'text',
                        'class'  => 'pro_only',
                        'title' => esc_html__('Form reCAPTCHA Error Title', 'domain-for-sale'),
                        'default' => esc_html__('Email not submitted.', 'domain-for-sale'),
                        'dependency' => array('dfs-enable-recaptcha', '==', 'true'),
                        'title_help' => '<div class="domain-for-sale-info-label"> ' . esc_html__('This message is shown when the form fails due to reCAPTCHA error.', 'domain-for-sale') . '</div> <a class="tooltip_btn_primary" target="_blank" href="' . DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#recaptcha-form-messages">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'id'    => 'dfs-recaptcha-error-description',
                        'type'  => 'text',
                        'class'  => 'pro_only',
                        'title' => esc_html__('Form reCAPTCHA Error Description', 'domain-for-sale'),
                        'default' => esc_html__('Please tick and verify the recaptcha.', 'domain-for-sale'),
                        'dependency' => array('dfs-enable-recaptcha', '==', 'true'),
                        'title_help' => '<div class="domain-for-sale-info-label"> ' . esc_html__('A description message that explains the reCAPTCHA error to the user.', 'domain-for-sale') . '</div> <a class="tooltip_btn_primary" target="_blank" href="' . DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#recaptcha-form-messages">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'id'    => 'dfs-recaptcha-error-okay',
                        'type'  => 'text',
                        'class'  => 'pro_only',
                        'title' => esc_html__('Form reCAPTCHA Okay Button Value', 'domain-for-sale'),
                        'default' => esc_html__('Okay', 'domain-for-sale'),
                        'dependency' => array('dfs-enable-recaptcha', '==', 'true'),
                        'title_help' => '<div class="domain-for-sale-info-label"> ' . esc_html__('The text shown on the confirmation button in case of reCAPTCHA errors.', 'domain-for-sale') . '</div> <a class="tooltip_btn_primary" target="_blank" href="' . DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#recaptcha-form-messages">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),
                )

            )
        );


        DOMAIN_FOR_SALE::createSection(
            $prefix,
            array(
                'parent'      => 'proposal',
                'title'       => esc_html__('Notifications', 'domain-for-sale'),
                'icon'        => 'icofont-notification',
                'fields' => array(
                    array(
                        'type' => 'heading',
                        'content' => esc_html__('Admin Notifications', 'domain-for-sale'),
                    ),

                    array(
                        'id'    => 'email_notification',
                        'type'  => 'switcher',
                        'title' => esc_html__('Get Email Notification', 'domain-for-sale'),
                        'text_on' => esc_html__('Enabled', 'domain-for-sale'),
                        'text_off' => esc_html__('Disabled', 'domain-for-sale'),
                        'text_width' => 100,
                        'default' => true,
                        'title_help' =>
                        '<div class="domain-for-sale-info-label">'
                            . esc_html__('Enable this option to receive notifications when someone submits an offer form.', 'domain-for-sale') .
                            '</div> <a class="tooltip_btn_primary" target="_blank" href="' . esc_url(DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#notifications') . '">'
                            . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'id'    => 'dfs-targetemail',
                        'type'  => 'text',
                        'title' => esc_html__('Target Email Addresses', 'domain-for-sale'),
                        'default' => esc_html__("{adminEmail}", 'domain-for-sale'),
                        'desc' => '<span><b>' . esc_html__('Available tags:', 'domain-for-sale') . '</b> ' . esc_html__('{adminEmail}', 'domain-for-sale') . '</span>' . esc_html__('Can use multiple emails, e.g., info@domain.com, hi@domain.com.', 'domain-for-sale'),
                        'dependency' => array('email_notification', '==', 'true'),
                        'title_help' =>
                        '<div class="domain-for-sale-info-label">'
                            . esc_html__('Write your email addresses to get email. Multiple emails can be separated by commas, e.g., info@domain.com, hi@domain.com.', 'domain-for-sale') .
                            '</div> <a class="tooltip_btn_primary" target="_blank" href="' . esc_url(DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#notifications') . '">'
                            . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'id'    => 'email_subject',
                        'type'  => 'text',
                        'title' => esc_html__('Email Subject', 'domain-for-sale'),
                        'default' => esc_html__('New Domain Offer Received - {domain}', 'domain-for-sale'),
                        'dependency' => array('email_notification', '==', 'true'),
                        'desc' => '<span><b>' . esc_html__('Available tags:', 'domain-for-sale') . '</b> ' . esc_html__('{domain}, {name}, {offer}, {{offer}}, {date}, {siteTitle}, {currentTitle}', 'domain-for-sale') . '</span>',
                        'title_help' =>
                        '<div class="domain-for-sale-info-label">'
                            . esc_html__('Define the subject line of the email.', 'domain-for-sale') .
                            '</div> <a class="tooltip_btn_primary" target="_blank" href="' . esc_url(DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#notifications') . '">'
                            . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'id'    => 'email_template',
                        'type'  => 'textarea',
                        'class'  => 'pro_only',
                        'title' => esc_html__('Email Template', 'domain-for-sale'),
                        'default' => esc_html__("Hello Admin,\n\nA new offer has been submitted through your Domain for Sale form.\n\n📌 Domain: {domain}\n💰 Offer: {{offer}}\n👤 Name: {name}\n📧 Email: {email}\n📱 Phone: {phone}\n📝 Proposal: {proposal}\n📅 Date: {date}\n🌐 Page: {currentTitle} ({currentURL})\n📍 IP Address: {ip}\n\nPlease log in to your dashboard to review and respond.", 'domain-for-sale'),
                        'dependency' => array('email_notification', '==', 'true'),
                        'desc' => '<span><b>' . esc_html__('Available tags:', 'domain-for-sale') . '</b> ' . esc_html__('{name}, {email}, {phone}, {offer}, {{offer}}, {proposal}, {domain}, {date}, {currentURL}, {siteTitle}, {currentTitle}, {ip}', 'domain-for-sale') . '</span>',
                        'title_help' =>
                        '<div class="domain-for-sale-info-label">'
                            . esc_html__('Customize the body of the email. Use available tags to insert user details.', 'domain-for-sale') .
                            '</div> <a class="tooltip_btn_primary" target="_blank" href="' . esc_url(DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#notifications') . '">'
                            . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'type' => 'heading',
                        'content' => esc_html__('Bidder Confirmation & Verification', 'domain-for-sale'),
                    ),

                    array(
                        'id'         => 'bidder_confirmations',
                        'type'       => 'checkbox',
                        'class'      => 'verification_pro_only',
                        'title'      => esc_html__('Features', 'domain-for-sale'),
                        'title_help' =>
                        '<div class="domain-for-sale-info-label">'
                            . esc_html__('Enable automatic bidder confirmation emails and/or email verification.', 'domain-for-sale') .
                            '</div>'
                            . esc_html__('Confirmation sends an acknowledgment, verification requires user email confirmation.', 'domain-for-sale') .
                            '<br> <a class="tooltip_btn_primary" target="_blank" href="' . esc_url(DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#notifications') . '">'
                            . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                        'inline'   => true,
                        'options'  => array(
                            'confirmation' => esc_html__('Confirmation', 'domain-for-sale'),
                            'verification' => esc_html__('Verification', 'domain-for-sale'),
                        ),
                        'default' => array('confirmation')
                    ),

                    array(
                        'id'    => 'bidder_confirmation_form_name',
                        'type'  => 'text',
                        'title' => esc_html__('Email From Name', 'domain-for-sale'),
                        'default' => esc_html__("{siteTitle}", 'domain-for-sale'),
                        'dependency' => array('bidder_confirmations', 'any', 'confirmation,verification'),
                        'desc' => '<span><b>' . esc_html__('Available tags:', 'domain-for-sale') . '</b> ' . esc_html__('{domain}, {siteTitle}, {currentTitle}', 'domain-for-sale') . '</span>',
                        'title_help' =>
                        '<div class="domain-for-sale-info-label">'
                            . esc_html__('Set the “From Name” shown in bidder confirmation emails.', 'domain-for-sale') .
                            '</div> <a class="tooltip_btn_primary" target="_blank" href="' . esc_url(DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#notifications') . '">'
                            . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'id'    => 'bidder_confirmation_form_email',
                        'type'  => 'text',
                        'title' => esc_html__('Email From Email', 'domain-for-sale'),
                        'dependency' => array('bidder_confirmations', 'any', 'confirmation,verification'),
                        'default' => esc_html__("{adminEmail}", 'domain-for-sale'),
                        'desc' => '<span><b>' . esc_html__('Available tags:', 'domain-for-sale') . '</b> ' . esc_html__('{adminEmail}', 'domain-for-sale') . '</span>',
                        'title_help' =>
                        '<div class="domain-for-sale-info-label">'
                            . esc_html__('Set the “From Email” address for confirmation emails.', 'domain-for-sale') .
                            '</div> <a class="tooltip_btn_primary" target="_blank" href="' . esc_url(DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#notifications') . '">'
                            . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'id'    => 'bidder_confirmation_subject',
                        'type'  => 'text',
                        'title' => esc_html__('Bidder Confirmation Subject', 'domain-for-sale'),
                        'default' => esc_html__("We Received Your Offer for {domain}", 'domain-for-sale'),
                        'dependency' => array('bidder_confirmations', 'any', 'confirmation'),
                        'desc' => '<span><b>' . esc_html__('Available tags:', 'domain-for-sale') . '</b> ' . esc_html__('{domain}, {name}, {offer}, {{offer}}, {date}, {siteTitle}, {currentTitle}', 'domain-for-sale') . '</span>',
                        'title_help' =>
                        '<div class="domain-for-sale-info-label">'
                            . esc_html__('Customize the subject line for bidder confirmation email.', 'domain-for-sale') .
                            '</div> <a class="tooltip_btn_primary" target="_blank" href="' . esc_url(DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#notifications') . '">'
                            . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'id'    => 'bidder_confirmation_message',
                        'type'  => 'textarea',
                        'class'  => 'pro_only',
                        'title' => esc_html__('Bidder Confirmation Template', 'domain-for-sale'),
                        'default' => esc_html__("Hello {name},\n\nThank you for your offer for {domain}.\nWe received your details and will review soon.\n\nDomain: {domain}\nOffer: {{offer}}\nName: {name}\nEmail: {email}\nPhone: {phone}\nProposal: {proposal}\nDate: {date}\nPage: {currentTitle} ({currentURL})\n\nIf you did not request this, please ignore this message.\n\nBest regards,\n{siteTitle} Team", 'domain-for-sale'),
                        'dependency' => array('bidder_confirmations', 'any', 'confirmation'),
                        'desc' => '<span><b>' . esc_html__('Available tags:', 'domain-for-sale') . '</b> ' . esc_html__('{name}, {email}, {phone}, {offer}, {{offer}}, {proposal}, {domain}', 'domain-for-sale') . '</span>',
                        'title_help' =>
                        '<div class="domain-for-sale-info-label">'
                            . esc_html__('Customize the bidder confirmation email content.', 'domain-for-sale') .
                            '</div> <a class="tooltip_btn_primary" target="_blank" href="' . esc_url(DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#notifications') . '">'
                            . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                )
            )
        );
        DOMAIN_FOR_SALE::createSection(
            $prefix,
            array(
                'parent'      => 'proposal',
                'title'       => esc_html__('Messages & Errors', 'domain-for-sale'),
                'icon'        => 'icofont-check-circled',
                'fields' => array(

                    array(
                        'type'  => 'heading',
                        'title' => esc_html__('Form Notice', 'domain-for-sale'),
                    ),

                    array(
                        'id'    => 'dfs-success-title',
                        'type'  => 'text',
                        'title' => esc_html__('Form Success Title', 'domain-for-sale'),
                        'default' => esc_html__("Thank You for your proposal!", 'domain-for-sale'),
                        'title_help' => '<div class="domain-for-sale-info-label">' . esc_html__('Set the title shown after a form is submitted successfully.', 'domain-for-sale') . '</div> <a class="tooltip_btn_primary" target="_blank" href="' . esc_url(DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#messages-errors') . '">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'id'    => 'dfs-success-description',
                        'type'  => 'text',
                        'title' => esc_html__('Form Success Description', 'domain-for-sale'),
                        'default' => esc_html__("Your message has already arrived! We will contact you shortly.", 'domain-for-sale'),
                        'title_help' => '<div class="domain-for-sale-info-label">' . esc_html__('Set the description shown after successful form submission.', 'domain-for-sale') . '</div> <a class="tooltip_btn_primary" target="_blank" href="' . esc_url(DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#messages-errors') . '">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'id'    => 'dfs-error-title',
                        'type'  => 'text',
                        'title' => esc_html__('Form Error Title', 'domain-for-sale'),
                        'default' => esc_html__("Email not submitted.", 'domain-for-sale'),
                        'title_help' => '<div class="domain-for-sale-info-label">' . esc_html__('Set the title shown when the form fails to submit.', 'domain-for-sale') . '</div> <a class="tooltip_btn_primary" target="_blank" href="' . esc_url(DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#messages-errors') . '">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'id'    => 'dfs-error-description',
                        'type'  => 'text',
                        'title' => esc_html__('Form Error Description', 'domain-for-sale'),
                        'default' => esc_html__("There might be an error with server instead please send us a direct message at: info@yourdomain.com", 'domain-for-sale'),
                        'title_help' => '<div class="domain-for-sale-info-label">' . esc_html__('Set the description message shown when a submission error occurs.', 'domain-for-sale') . '</div> <a class="tooltip_btn_primary" target="_blank" href="' . esc_url(DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#messages-errors') . '">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                    array(
                        'id'    => 'dfs-error-okay',
                        'type'  => 'text',
                        'title' => esc_html__('Form Okay Button Value', 'domain-for-sale'),
                        'default' => esc_html__("Okay", 'domain-for-sale'),
                        'title_help' => '<div class="domain-for-sale-info-label">' . esc_html__('Set the text for the “Okay” button displayed in error messages.', 'domain-for-sale') . '</div> <a class="tooltip_btn_primary" target="_blank" href="' . esc_url(DOMAIN_FOR_SALE_DEMO_URL . 'docs/offers/#messages-errors') . '">' . esc_html__('Open Docs', 'domain-for-sale') . '</a>',
                    ),

                )
            )
        );
    }
}
