<?php
/**
 * Import Wizard - Step 7 (Review).
 *
 * @package PrimeLink
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

$import_id = isset( $_GET['import_id'] ) ? absint( $_GET['import_id'] ) : 0;
?>

<div class="mt_primelink-step mt_primelink-import-step-7" data-import-id="<?php echo esc_attr( $import_id ); ?>">

    <section class="mt_primelink-card mt_primelink-card--glass">
        <div class="mt_primelink-card-header">
            <h3><?php esc_html_e( 'Review Import', 'primelink' ); ?></h3>
        </div>
        <div class="mt_primelink-card-body">

            <div id="mt_primelink-summary-loading" class="mt_primelink-loading">
                <?php esc_html_e( 'Building summary...', 'primelink' ); ?>
            </div>

            <div id="mt_primelink-summary-content" style="display:none;">
                <div class="mt_primelink-summary-accordion">
                    <details class="mt_primelink-summary-panel" open>
                        <summary>
                            <span class="mt_primelink-summary-step">1</span>
                            <span><?php esc_html_e( 'File', 'primelink' ); ?></span>
                        </summary>
                        <div class="mt_primelink-summary-panel__body" id="mt_primelink-summary-file"></div>
                    </details>

                    <details class="mt_primelink-summary-panel" open>
                        <summary>
                            <span class="mt_primelink-summary-step">2</span>
                            <span><?php esc_html_e( 'Import Options', 'primelink' ); ?></span>
                        </summary>
                        <div class="mt_primelink-summary-panel__body" id="mt_primelink-summary-options"></div>
                    </details>

                    <details class="mt_primelink-summary-panel" open>
                        <summary>
                            <span class="mt_primelink-summary-step">3</span>
                            <span><?php esc_html_e( 'Category Mapping', 'primelink' ); ?></span>
                        </summary>
                        <div class="mt_primelink-summary-panel__body" id="mt_primelink-summary-mapping"></div>
                    </details>
                </div>

            </div>

        </div>
    </section>

    <section class="mt_primelink-card mt_primelink-card--glass">
        <div class="mt_primelink-card-body">
            <p style="margin:0;">
                <?php esc_html_e( 'If everything looks correct, click Next to start the import.', 'primelink' ); ?>
            </p>
        </div>
    </section>

</div>

