<?php
/**
 * Provide a admin area view for the plugin
 *
 * This file is used to markup the admin-facing aspects of the plugin.
 *
 * @link       https://mementor.no
 * @since      1.0.0
 *
 * @package    TTSWP
 * @subpackage Mementor_TTS/admin/partials/pages
 */

if (!defined('ABSPATH')) {
    exit; // Exit if accessed directly
}

if (!current_user_can('manage_options')) {
    wp_die(esc_html__('You do not have sufficient permissions to access this page.', 'text-to-speech-tts'));
}

?>

<h2><?php echo esc_html__('Text to Speech Help', 'text-to-speech-tts'); ?></h2>

<h3><?php echo esc_html__('Getting Started', 'text-to-speech-tts'); ?></h3>

<ul>
    <li><?php echo esc_html__('Go to the Settings page and enter your API key.', 'text-to-speech-tts'); ?></li>
    <li><?php echo esc_html__('Select your preferred voice on the Voices page.', 'text-to-speech-tts'); ?></li>
    <li><?php echo esc_html__('Customize the audio player on the Player page.', 'text-to-speech-tts'); ?></li>
    <li><?php echo esc_html__('Generate audio for your content on the Content page.', 'text-to-speech-tts'); ?></li>
</ul>

<h3><?php echo esc_html__('Shortcodes', 'text-to-speech-tts'); ?></h3>

<code>[tts_player id="123"]</code> - <?php echo esc_html__('Display the audio player for a specific post.', 'text-to-speech-tts'); ?>

<code>[tts_text]Your text here[/tts_text]</code> - <?php echo esc_html__('Convert specific text to speech.', 'text-to-speech-tts'); ?>

<h3><?php echo esc_html__('Troubleshooting', 'text-to-speech-tts'); ?></h3>

<ul>
    <li><strong><?php echo esc_html__('Audio not generating:', 'text-to-speech-tts'); ?></strong> <?php echo esc_html__('Check your API key and ensure your account has sufficient credits.', 'text-to-speech-tts'); ?></li>
    <li><strong><?php echo esc_html__('Player not displaying:', 'text-to-speech-tts'); ?></strong> <?php echo esc_html__('Ensure the shortcode is correctly placed in your content.', 'text-to-speech-tts'); ?></li>
</ul>

<h3><?php echo esc_html__('Support', 'text-to-speech-tts'); ?></h3>

<p><?php echo esc_html__('For additional support, please visit our website or contact our support team.', 'text-to-speech-tts'); ?></p> 