<?php
/**
 * WordAI Agent — Tabbed Admin
 * Tabs:
 *  - Contents Embedding (existing page)
 *  - AI Chat Settings
 *  - AI Chat Analytics
 *
 * Uses WP core jQuery + jQuery UI Tabs.
 */
if ( ! defined( 'ABSPATH' ) ) exit;

// Load the shared header bar
include_once SFTCY_WORDAI_PLUGIN_DIR . 'admin/views/settings-pages-header-template.php';
?>
<div id="sc-wordai-ai-agent-tabs" class="wrap">
  <div class="sc-wordai-agent-tabs-intro">
    <div class="sc-wordai-agent-tabs-intro-message">
      <span class="dashicons dashicons-format-status"></span>
      <span><?php esc_html_e('Configure your website knowledge base, front-end assistant, and chat analytics from one place. Index content first, tune how the agent answers, then review visitor questions and knowledge gaps.', 'wordai-pro'); ?></span>
    </div>
  </div>

  <h2 class="nav-tab-wrapper sc-wordai-agent-nav-tabs" style="margin-bottom:12px;">
    <a href="#tab-embedding" class="nav-tab nav-tab-active"><span class="dashicons dashicons-database-add"></span> <?php esc_html_e('Contents Embedding','wordai-pro'); ?></a>
    <a href="#tab-chat" class="nav-tab"><span class="dashicons dashicons-format-chat"></span> <?php esc_html_e('AI Chat Settings','wordai-pro'); ?></a>
    <a href="#tab-analytics" class="nav-tab"><span class="dashicons dashicons-chart-area"></span> <?php esc_html_e('AI Chat Analytics','wordai-pro'); ?></a>
  </h2>

  <!-- Global message area for this page -->
  <div id="sc-wordai-global-message" class="notice" style="display:none;margin:8px 0;padding:10px;"></div>

  <div id="tabs-body">
    <div id="tab-embedding" class="sc-wordai-tab-panel" style="display:block;">
      <?php include SFTCY_WORDAI_PLUGIN_DIR . 'admin/views/submenus-ai-agent-settings.php'; ?>
    </div>

    <div id="tab-chat" class="sc-wordai-tab-panel" style="display:none;">
      <?php include SFTCY_WORDAI_PLUGIN_DIR . 'admin/views/submenus-ai-agent-chat.php'; ?>
    </div>

    <div id="tab-analytics" class="sc-wordai-tab-panel" style="display:none;">
      <?php include SFTCY_WORDAI_PLUGIN_DIR . 'admin/views/submenus-ai-agent-analytics.php'; ?>
    </div>
  </div>
</div>
