<?php

/**
 * Page: Help & Tutorials.
 *
 * @link    https://aiopodcasting.com
 * @since   1.0.0
 *
 * @package AiO_Podcast_Studio
 */

// Exit if accessed directly
if ( ! defined( 'WPINC' ) ) {
	die;
}
?>
<div id="aiopod-help-tutorials" class="aiopod aiopod-help-tutorials">
    <div class="aiopod-container">
        <div class="wrap about-wrap">
            <h3><?php esc_html_e( 'Frequently Asked Questions', 'aio-podcast-studio' ); ?></h3>

            <div class="aiopod-details">
                <details open>
                    <summary>
                        <?php esc_html_e( 'Does the plugin work with page builders like Elementor, Divi, WPBakery, and others?', 'aio-podcast-studio' ); ?>
                    </summary>

                    <div class="aiopod-details-content">
                        <?php
                        printf(
                            /* translators: %s: link to the Shortcode Builder admin page */
                            esc_html__( 'Absolutely! Simply use our %s to generate your shortcode, then insert it into your page builder. All popular page builders fully support shortcodes, so you\'re good to go.', 'aio-podcast-studio' ),
                            '<a href="' . esc_url( admin_url( 'admin.php?page=shortcode-builder' ) ) . '" target="_blank" rel="noopener noreferrer">' . esc_html__( 'Shortcode Builder', 'aio-podcast-studio' ) . '</a>'
                        );
                        ?>
                    </div>
                </details>

                <details>
                    <summary>
                        <?php esc_html_e( 'The plugin isn\'t working for me. What should I do?', 'aio-podcast-studio' ); ?>
                    </summary>

                    <div class="aiopod-details-content">
                        <?php
                        printf(
                            /* translators: %s: link to the support contact page */
                            esc_html__( 'No worries — we\'re just an email away! Please %s and share as many details as you can about the issue. If possible, also include a link to the page where we can see the problem directly. This helps us understand what\'s happening and get you the right solution faster.', 'aio-podcast-studio' ),
                            '<a href="' . esc_url( admin_url( 'admin.php?page=aio-podcast-studio-contact' ) ) . '" target="_blank" rel="noopener noreferrer">' . esc_html__( 'contact us here', 'aio-podcast-studio' ) . '</a>'
                        );
                        ?>
                    </div>
                </details>
            </div>

            <h3><?php esc_html_e( 'Tutorials', 'aio-podcast-studio' ); ?></h3>

            <div class="aiopod-details">
                <details open>
                    <summary>
                        <?php esc_html_e( 'Getting Started', 'aio-podcast-studio' ); ?>
                    </summary>

                    <ol class="aiopod-details-content">
                        <li>
                            <?php
                            echo '<a href="' . esc_url( 'https://aiopodcasting.com/docs/getting-started/' ) . '" target="_blank" rel="noopener noreferrer">'
                                . esc_html__( 'Quickstart Guide', 'aio-podcast-studio' )
                                . '</a>';
                            ?>
                        </li>
                        <li>
                            <?php
                            echo '<a href="' . esc_url( 'https://aiopodcasting.com/docs/installation-activation-and-updating/' ) . '" target="_blank" rel="noopener noreferrer">'
                                . esc_html__( 'Installation, Activation & Updates', 'aio-podcast-studio' )
                                . '</a>';
                            ?>
                        </li>
                    </ol>
                </details>
            </div>

            <h3><?php esc_html_e( 'Need More Help?', 'aio-podcast-studio' ); ?></h3>
            
            <p>
                <?php
                printf(
                    /* translators: %s: link to the support contact page */
                    esc_html__( 'If you couldn\'t find what you\'re looking for, %s — we\'re happy to help!', 'aio-podcast-studio' ),
                    '<a href="' . esc_url( admin_url( 'admin.php?page=aio-podcast-studio-contact' ) ) . '" target="_blank" rel="noopener noreferrer">' . esc_html__( 'contact our support team', 'aio-podcast-studio' ) . '</a>'
                );
                ?>
            </p>
        </div>        
    </div>
</div>
