<?php 
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
$props = $this->props;
?>
<section class="wbw-body-options">
	<?php include_once 'adminPostsCreateTabs.php'; ?>
	<div class="wbw-tabs-content">
		<form id="waicPostsCreateForm">
		<?php foreach ($props['tabs'] as $key => $data) { ?>
			<div class="wbw-tab-content" id="content-tab-<?php echo esc_attr($key); ?>">
				<?php include_once 'adminPostsCreateTab' . waicStrFirstUp($key) . '.php'; ?>
				<div class="wbw-clear"></div>
			</div>
		<?php } ?>
		<?php if (!$props['read_only']) { ?>
			<div class="wbw-settings-form row<?php echo esc_attr($sHidden); ?>" data-parent-select="common[mode]" data-select-value="single bulk">
				<div class="col-12">
					<button class="wbw-button wbw-button-form wbw-button-main" id="waicStartGeneration" data-mod="postscreate">
						<?php esc_html_e('Start generation', 'ai-copilot-content-generator'); ?>
					</button>
					<button class="wbw-button wbw-button-form wbw-button-minor wbw-button-back"><?php esc_html_e('Back', 'ai-copilot-content-generator'); ?></button>
				</div>
			</div>
			<?php 
			WaicHtml::hidden('task_title', array('value' => $props['task_title'], 'attrs' => 'id="waicTaskTitle"'));
		} 
		?>
		</form>
		<?php 
			WaicHtml::hidden('', array('value' => WaicUtils::jsonEncode($props['lang']), 'attrs' => 'id="waicLangSettingsJson" class="wbw-nosave"'));
			WaicHtml::hidden('task_id', array('value' => $props['task_id'], 'attrs' => 'id="waicPCId"'));
		?>
	</div>
</section>
<?php 
// phpcs:enable
