<?php defined('ABSPATH') or die('No script kiddies please!'); ?>
<div class="wrap wpwab-wrap">
    <div class="wpwab-content-wrap">
        <div class="wpwab-field-wrap">
            <label for='wpwab_enable_multi'><?php _e('Enable Multi', wpwab_TD); ?></label>
            <div class="wpwab-field">
                <div class="wpwab-checkbox-wrap">

                    <input type="checkbox" class="wpwab-multi wpwab-checkbox" id='wpwab_enable_multi' value="enable" name="wpwab_settings[enable_multi]" <?php if (isset($wpwab_settings['enable_multi']) && $wpwab_settings['enable_multi'] == 'enable') { ?> checked="checked" <?php } ?> />
                    
                    <label for="wpwab_enable_multi"></label>

                </div>
                <p class="description"><?php _e('Please enable to show in multi.', wpwab_TD) ?></p>
            </div>
        </div>
        <div class="wpwab-field-wrap">
            <label for='wpwab_enable_desktop'><?php _e('Enable In Desktop', wpwab_TD); ?></label>
            <div class="wpwab-field">
                <div class="wpwab-checkbox-wrap">
                    <input type="checkbox" class="wpwab-desktop wpwab-checkbox" id='wpwab_enable_desktop' value="<?php if (isset($wpwab_settings['multi']['enable_desktop'])) { echo esc_attr($wpwab_settings['multi']['enable_desktop']); } else { echo 'hide'; } ?>" name="wpwab_settings[multi][enable_desktop]" <?php if (isset($wpwab_settings['multi']['enable_desktop']) && $wpwab_settings['multi']['enable_desktop'] == 'show') { ?> checked="checked" <?php } ?> />
                    <label for="wpwab_enable_desktop"></label>
                </div>
                <p class="description"><?php _e('Please enable to show in desktop.', wpwab_TD) ?></p>
            </div>
        </div>

        <div class="wpwab-field-wrap">
            <label for='wpwab_enable_mobile'><?php _e('Enable In Mobile', wpwab_TD); ?></label>
            <div class="wpwab-field">
                <div class="wpwab-checkbox-wrap">
                    <input type="checkbox" class="wpwab-mobile wpwab-checkbox" id='wpwab_enable_mobile' name="wpwab_settings[multi][enable_mobile]" <?php echo (isset($wpwab_settings['multi']['enable_mobile'])) ? "checked='checked'" : ""; ?>  value="show" />
                    <label for="wpwab_enable_mobile"></label>
                </div>
                <p class="description"><?php _e('Please enable to show in mobile.', wpwab_TD) ?></p>
            </div>
        </div>

        <div class="wpwab-field-wrap">
            <label> <?php _e('WhatsApp Format', wpwab_TD); ?> </label>
            <div class="wpwab-field">

                <label> <input type="radio" name="wpwab_settings[multi][whatsapp_format]" id='wpwab_whatsapp_format_field' value="app" <?php echo ((isset($wpwab_settings['multi']['whatsapp_format'])) && $wpwab_settings['multi']['whatsapp_format'] === "app") ? "checked='checked'" : ""; ?> ><?php _e( 'WhatsApp App', wpwab_TD ); ?> 
                </label>

                <label> <input type="radio" name="wpwab_settings[multi][whatsapp_format]" id='wpwab_whatsapp_format_field' value="web" <?php echo ((isset($wpwab_settings['multi']['whatsapp_format'])) && $wpwab_settings['multi']['whatsapp_format'] === "web") ? "checked='checked'" : ""; ?> ><?php _e( 'WhatsApp Web', wpwab_TD ); ?> 
                </label>

                <p class="description"><?php _e('Note: For desktops, If you want WhatsApp App to be opened when clicked on the WhatsApp button, select "APP" else select "Web". Also, please be informed that WhatsApp can only be installed in window 8 and higher/MAC OS X 10.9 and higher.', wpwab_TD) ?></p>

            </div>
        </div>
           
        <div class="wpwab-field-wrap">
            <label for='wpwab_enable_sticky'><?php _e('Sticky Button', wpwab_TD); ?></label>
            <div class="wpwab-field">
                <div class="wpwab-checkbox-wrap">
                    <input type="checkbox" name="wpwab_settings[multi][enable_sticky]" id='wpwab_enable_sticky' <?php echo (isset($wpwab_settings['multi']['enable_sticky'])) ? "checked='checked'" : ""; ?>  value="show"/>
                    <label for="wpwab_enable_sticky"></label>
                </div>
                <p class="description"><?php _e('Please check to enable sticky.', wpwab_TD) ?></p>
            </div>
        </div>
        <?php /*?>
        <div class="wpwab-checkbox-outer-wrap">
            <div class="wpwab-field-wrap">
                <label for='wpwab_enable_tooltip'><?php _e('Tooltip', wpwab_TD); ?></label>
                <div class="wpwab-field">
                    <div class="wpwab-checkbox-wrap">
                        <input type="checkbox" class="wpwab-checkbox wpwab-checkbox-hide-show" name="wpwab_settings[multi][enable_tooltip]" id='wpwab_enable_tooltip' <?php echo (isset($wpwab_settings['multi']['enable_tooltip'])) ? "checked='checked'" : ""; ?>  value="show" />
                        <label for="wpwab_enable_tooltip"></label>
                    </div>
                    <p class="description"><?php _e('Please check to enable tooltip.', wpwab_TD) ?></p>
                </div>
            </div>

            <div class="wpwab-field-wrap wpwab-checkbox-hide-show-options-wrap" style="display:<?php if(isset($wpwab_settings['multi']['enable_tooltip']) && $wpwab_settings['multi']['enable_tooltip']!=''){ echo "block"; }else{ echo "none"; } ?>">
                <label for='wpwab_tooltip_text'><?php _e('Tooltip Text', wpwab_TD); ?></label>
                <div class="wpwab-field">
                    <input type="text" name="wpwab_settings[multi][tooltip_text]" id='wpwab_tooltip_text' value="<?php echo (isset($wpwab_settings['multi']['tooltip_text'])) ? esc_attr($wpwab_settings['multi']['tooltip_text']) : ''; ?>" id="wpwab_tooltip_text_value_contain"  placeholder="Insert Tooltip Text"/>
                    <p class="description"><?php _e('Please add tooltip text.', wpwab_TD) ?></p>
                </div>
            </div>
        </div>
        <?php */ ?>
        <div class="wpwab-field-wrap" >
            <label ><?php _e('Greeting Text', wpwab_TD); ?></label>
            <div class="wpwab-field">
                <input type="text" name="wpwab_settings[multi][greeting_text]" value="<?php echo (isset($wpwab_settings['multi']['greeting_text'])) ? esc_attr($wpwab_settings['multi']['greeting_text']) : ''; ?>" placeholder="Start A Conversation"/>
                <p class="description"><?php _e('Please add a greeting text to display at the top of the popup window.', wpwab_TD) ?></p>
            </div>
        </div>
        <div class="wpwab-field-wrap" >
            <label ><?php _e('Greeting Sub Text', wpwab_TD); ?></label>
            <div class="wpwab-field">
                <input type="text" name="wpwab_settings[multi][greeting_sub_text]" value="<?php echo (isset($wpwab_settings['multi']['greeting_sub_text'])) ? esc_attr($wpwab_settings['multi']['greeting_sub_text']) : ''; ?>" placeholder="Connect with any one of our support members"/>
                <p class="description"><?php _e('Please add a greeting sub text to display beneath the greeting text.', wpwab_TD) ?></p>
            </div>
        </div>
    </div>
</div>