<?php
if (!defined('ABSPATH')) {
    exit; // Exit if accessed directly
}
$faqs = array(
    array(
        'question' => 'Where do I find the API key to activate the Plugin?',
        'answer' => 'You can access this by logging into your Doobert organization account and navigating to the Chatbot Plugin tab. Copy and paste your individual API key into the <b>Doobert API Key</b> field.'
    ),
    array(
        'question' => 'The Chatbot isn’t recognizing my commands. What can I do?',
        'answer' => '<ul><li><b>Use Simple Language:</b> Try rephrasing into a question format, like you would ask a person a question. Avoid one word quick prompts.</li><li><b>Avoid Abbreviations:</b> Make sure to avoid slang or shorthand that the chatbot may not understand or be able to reference from your site. </li></ul>'
    ),
    array(
        'question' => 'What types of questions can I ask the chatbot?',
        'answer' => '<b>General Inquiries:</b> Feel free to ask about pet adoption, volunteer opportunities, and more. Chatbot will reference your existing website content to provide the answers.'
    ),
    array(
        'question' => 'Will the Chatbot show on all of my website pages?',
        'answer' => 'By default, yes, however you can choose which pages the Chatbot will be shown on. Navigate to the <b> General Settings Tab > Display chatbot ONLY on a specific page(s).</b>'
    ),
    array(
        'question' => 'Can the Chatbot be directed to exclude information and links from certain pages?',
        'answer' => 'Yes it can. You just need to unlock the premium features by upgrading your plan and navigating to the <b> Premium Settings Tab > Exclude Pages from Responses.</b> This will allow you to select pages that the Chatbot will not provide information from.'
    ),
    array(
        'question' => 'Can I view a log of all Chatbot interactions from my website?',
        'answer' => 'Yes, You will receive an e-mail with an <b>audit log</b> report containing all Chatbot interactions and responses every month.'
    ),
    array(
        'question' => 'If I make changes to my website, will the Chatbot automatically pull new information for replies?',
        'answer' => 'The chatbot will automatically scan for new information added to your site every two weeks.. However, you click <b>Update Data</b> under the general settings tab of the Chatbot Plugin to run an immediate scan of new information.'
    ),
    array(
        'question' => 'How will the Premium Chatbot plan benefit my organization?',
        'answer' => '<ul><li><b>Expand your reach:</b> The premium plan offers multilingual capabilities to support outreach in your community.</li><li><b>Upload offline content:</b> Upload items such as PDFs and other content to be included in the designated Chatbot responses. 
</li><li></li><b>Exclude pages:</b> Choose the pages you’d like the Chatbot to skip over when providing responses. This allows you to make fewer changes to your website.<li></li><b>PetCo LoveLost and Adopt a Pet integration:</b> Make it easy for your community to report lost and found pets—and provide 24/7 help with adoption matching inquiries.</ul>'
    ),

    array(
        'question' => 'The chatbot isn`t displaying the correct language. How can I change this?',
        'answer' => 'Go to the Premium settings and look for the language options. Ensure that the language setting matches your desired language. If needed, you can also add translations. '
    ),
    array(
        'question' => 'The chatbot is overlapping with other elements on my webpage. How can I fix this?',
        'answer' => 'Under the Design Settings Tab, navigate to the Chat Bubble Position option. Choose your desired placement that best fits your website.'
    ),
    array(
        'question' => 'How do I uninstall the Doobert Chatbot plugin safely?',
        'answer' => 'First, deactivate the plugin from the WordPress admin dashboard. Then, you can delete it from the "Plugins" section. Ensure you save any data or settings you may want to retain before uninstalling.'
    ),
    array(
        'question' => 'Why does the chatbot sometimes provide duplicate responses?',
        'answer' => 'This may be due to overlapping triggers or keywords. Review the configured responses and adjust the conditions or website data to prevent duplication. On the Chatbot Premium plan, you can exclude information on certain pages without making changes to your website.'
    ),
    array(
        'question' => 'How can I analyze the interactions users have with the chatbot?',
        'answer' => '<b>Access Analytics Insights:</b> Opt in for monthly performance reports to gain insights on your Chatbot user metrics. For a more detailed report, an Audit Log is available on Premium Chatbot to view a list of all questions asked and the responses given by Chatbot.'
    ),
    array(
        'question' => 'How can I provide feedback or report a bug with the Doobert Chatbot?',
        'answer' => 'For any support or feedback related questions, please reach out to the Doobert team at <a href = "mailto:Help@doobert.com">Help@doobert.com.</a>'
    ),
);
?>
<div class="outmost">
    <div class="wrap">
        <div><?php echo esc_html__('The Doobert Chatbot Library is intended to provide comprehensive support for', 'doobert-chatbot'); ?></div>
        <div><?php echo esc_html__('users, helping troubleshoot common issues and answers frequently asked questions.', 'doobert-chatbot'); ?></div>
        <form method="post" action="">
            <div class="faq_area">
                <?php
                foreach ($faqs as $faq) {
                ?>
                    <div class="single_faq">
                        <div class="rl_accordion"><?php echo esc_html($faq['question']); ?></div>
                        <div class="rl_panel">
                            <?php echo wp_kses_post($faq['answer']); ?>
                        </div>
                    </div>
                <?php
                }
                ?>
            </div>
        </form>
    </div>
</div>