<?php
if (!defined('ABSPATH')) {
    exit;
}
$ui_labels = isset($ui_labels) && is_array($ui_labels) ? $ui_labels : [];
$submit_add_title = sanitize_text_field((string) ($ui_labels['submit_add_title'] ?? __('Add Event', 'nexdirectory')));
$singular_lower = sanitize_text_field((string) ($ui_labels['singular_lower'] ?? __('event', 'nexdirectory')));
echo $this->render_notice();
echo $this->render_platform_breadcrumbs($submit_add_title); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
?>
<section class="eep-page-banner">
    <p class="eep-page-kicker"><?php echo esc_html($this->get_white_label_brand_name()); ?></p>
    <h1><?php echo esc_html($submit_add_title); ?></h1>
    <p><?php echo esc_html(sprintf(__('Verify your account first, then continue with %s submission.', 'nexdirectory'), $singular_lower)); ?></p>
</section>
<div class="eep-event-details">
    <h3><?php esc_html_e('Email Verification Required', 'nexdirectory'); ?></h3>
    <p><?php echo esc_html(sprintf(__('Verify your email before your first %s submission.', 'nexdirectory'), $singular_lower)); ?></p>
    <form method="post" action="<?php echo esc_url(admin_url('admin-post.php')); ?>" class="eep-form">
        <input type="hidden" name="action" value="eep_resend_verification">
        <?php wp_nonce_field('eep_resend_verification_nonce', 'eep_resend_nonce'); ?>
        <button type="submit"><?php esc_html_e('Resend Verification Email', 'nexdirectory'); ?></button>
    </form>
</div>
