<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Variables in scope (injected via mbs_get_template_part from imp-exp-ui.php).
 * @var bool   $is_registered
 * @var bool   $is_pro
 * @var string $nonce
 * @var string $template_url
 */
?>

		<!-- Panel: Export Catalog + Media (PRO/PUB) -->
		<div id="mbs-panel-export-zip"
		     class="mbs-imp-exp-panel"
		     role="tabpanel"
		     hidden>
			<h3><?php esc_html_e( 'Export Catalog + Media', 'my-book-showroom' ); ?></h3>

			<?php if ( $is_pro ) : ?>

				<p class="mbs-panel-lead"><?php esc_html_e( 'Download your entire book catalog and all media as a single ZIP archive. The ZIP contains a catalog.xlsx file (7-tab catalog) and subfolders: covers/, banners/, trailers/, spinning-videos/, audio/, and author-headshots/.', 'my-book-showroom' ); ?></p>

				<div class="mbs-export-actions" id="mbs-export-zip-actions">
					<button type="button"
					        id="mbs-export-covers-zip-btn"
					        class="button button-primary"
					        data-nonce="<?php echo esc_attr( $nonce ); ?>">
						<?php esc_html_e( 'Export Catalog + Media as ZIP', 'my-book-showroom' ); ?>
					</button>
				</div>

			<?php else : ?>
				<?php MBS_Pro_Gate::comment( 'Export Catalog + Media' ); ?>
				<div class="mbs-imp-exp-soon">
					<span class="dashicons dashicons-lock"></span>
					<p><?php esc_html_e( 'Catalog + Covers export requires a PRO license.', 'my-book-showroom' ); ?></p>
				</div>
			<?php endif; ?>
		</div><!-- #mbs-panel-export-zip -->
