<?php
/**
 * Focused onboarding flow introduced in 3.3.19.
 */
if ( !defined( 'ABSPATH' ) ) {
    exit;
}

$yatoon_wizard_step = filter_input( INPUT_GET, 'wizard_step', FILTER_VALIDATE_INT );
$yatoon_wizard_step = $yatoon_wizard_step ? max( 1, min( 5, $yatoon_wizard_step ) ) : 1;
$yatoon_is_pro_package = defined( 'YATOON_PACKAGE_TIER' ) && 'pro' === YATOON_PACKAGE_TIER;
$yatoon_platform = sanitize_key( (string) get_option( 'yatoon_active_platform', 'local' ) );
$yatoon_pages = get_pages( array( 'sort_column' => 'post_title', 'post_status' => 'publish' ) );
$yatoon_booking_page_id = absint( get_option( 'yatoon_booking_page_id', 0 ) );
$yatoon_booking_page_url = $yatoon_booking_page_id ? get_permalink( $yatoon_booking_page_id ) : '';
?>
<div class="wrap yatoon-setup-wizard-page">
<style>
.yatoon-setup-wizard-page{max-width:760px;margin:28px auto 48px;color:#172033;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.yw-launch-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}
.yw-launch-head h1{margin:0 0 6px;font-size:26px;line-height:1.2;color:#111827}
.yw-launch-head p{margin:0;color:#64748b;font-size:14px}
.yw-launch-tier{display:inline-flex;padding:6px 10px;border:1px solid #dbe2ea;border-radius:999px;background:#fff;color:#475569;font-size:12px;font-weight:700}
.yw-launch-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:16px}
.yw-launch-progress span{height:5px;border-radius:999px;background:#dbe2ea}
.yw-launch-progress span.is-done{background:#2563eb}
.yw-launch-card{padding:26px;background:#fff;border:1px solid #dbe2ea;border-radius:8px;box-shadow:0 8px 28px rgba(15,23,42,.06)}
.yw-launch-card h2{margin:0 0 5px;font-size:20px;color:#111827}
.yw-launch-sub{margin:0 0 22px;color:#64748b;font-size:14px;line-height:1.5}
.yw-launch-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.yw-launch-field{margin-bottom:16px}.yw-launch-field label,.yw-launch-label{display:block;margin-bottom:6px;color:#334155;font-size:13px;font-weight:700}
.yw-launch-field input[type=text],.yw-launch-field input[type=email],.yw-launch-field input[type=tel],.yw-launch-field input[type=password],.yw-launch-field input[type=number],.yw-launch-field input[type=url],.yw-launch-field select{width:100%;min-height:42px;border:1px solid #cbd5e1;border-radius:6px;padding:8px 10px;color:#111827}
.yw-launch-field input:focus,.yw-launch-field select:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12);outline:none}
.yw-launch-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:20px}
.yw-launch-choice{display:flex;gap:10px;align-items:flex-start;padding:15px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;cursor:pointer}
.yw-launch-choice:has(input:checked){border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 1px #2563eb inset}
.yw-launch-choice input{margin-top:3px}.yw-launch-choice strong{display:block;color:#111827;font-size:14px}.yw-launch-choice small{display:block;margin-top:3px;color:#64748b;line-height:1.4}
.yw-launch-callout{margin:14px 0;padding:13px 14px;border-left:3px solid #2563eb;background:#f8fafc;color:#475569;font-size:13px;line-height:1.5}
.yw-launch-hours{display:grid;grid-template-columns:110px 1fr auto;gap:10px;align-items:center;margin-bottom:9px}.yw-launch-hours label{font-weight:700;text-transform:capitalize}.yw-launch-hours input[type=text]{min-height:38px;border:1px solid #cbd5e1;border-radius:6px;padding:6px 9px}
.yw-launch-check{display:flex;align-items:flex-start;gap:9px;margin:12px 0;color:#334155}.yw-launch-check input{margin-top:3px}
.yw-launch-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}.yw-launch-actions-right{display:flex;align-items:center;gap:10px}
.yw-launch-btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 16px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#334155;text-decoration:none;font-weight:700;cursor:pointer}
.yw-launch-btn-primary{border-color:#2563eb;background:#2563eb;color:#fff}.yw-launch-btn-primary:hover{background:#1d4ed8;color:#fff}.yw-launch-skip{border:0;background:transparent;color:#64748b;cursor:pointer}
.yw-launch-ready{display:grid;gap:10px;margin:18px 0}.yw-launch-ready-row{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #dbe2ea;border-radius:7px}.yw-launch-status{display:inline-flex;width:22px;height:22px;align-items:center;justify-content:center;border-radius:50%;background:#dcfce7;color:#166534;font-weight:900}.yw-launch-status.is-missing{background:#fef3c7;color:#92400e}
.yw-launch-footer{text-align:center;margin-top:14px}.yw-launch-footer a{color:#64748b;text-decoration:none}
@media(max-width:640px){.yatoon-setup-wizard-page{margin:18px 10px 40px}.yw-launch-grid,.yw-launch-choice-grid{grid-template-columns:1fr}.yw-launch-card{padding:19px}.yw-launch-head{display:block}.yw-launch-tier{margin-top:10px}.yw-launch-hours{grid-template-columns:86px 1fr}.yw-launch-hours .yw-launch-closed{grid-column:2}.yw-launch-actions{align-items:stretch}.yw-launch-actions-right{flex-direction:column;align-items:stretch}.yw-launch-btn{width:100%;box-sizing:border-box}}
</style>

<div class="yw-launch-head">
    <div>
        <h1><?php esc_html_e( "Let's get your booking page live", 'yatoon-booking-system' ); ?></h1>
        <p><?php esc_html_e( 'A few quick steps, and clients can start booking with you today.', 'yatoon-booking-system' ); ?></p>
    </div>
    <span class="yw-launch-tier"><?php echo esc_html( $yatoon_is_pro_package ? __( 'Pro package', 'yatoon-booking-system' ) : __( 'Free local booking', 'yatoon-booking-system' ) ); ?></span>
</div>

<div class="yw-launch-progress" aria-label="<?php esc_attr_e( 'Setup progress', 'yatoon-booking-system' ); ?>">
    <?php for ( $yatoon_progress_index = 1; $yatoon_progress_index <= 4; $yatoon_progress_index++ ) : ?>
        <span class="<?php echo $yatoon_progress_index <= min( $yatoon_wizard_step, 4 ) ? 'is-done' : ''; ?>"></span>
    <?php endfor; ?>
</div>

<?php if ( 5 === $yatoon_wizard_step ) : ?>
    <?php
    global $wpdb;
    $yatoon_service_count = (int) yatoon_db_get_var( "SELECT COUNT(*) FROM {$wpdb->prefix}yatoon_services WHERE is_active = 1" );
    $yatoon_staff_count = (int) yatoon_db_get_var( "SELECT COUNT(*) FROM {$wpdb->prefix}yatoon_staff WHERE is_active = 1 AND is_bookable = 1" );
    $yatoon_booking_page_id = absint( get_option( 'yatoon_booking_page_id', 0 ) );
    $yatoon_booking_page_url = $yatoon_booking_page_id ? get_permalink( $yatoon_booking_page_id ) : '';
    $yatoon_launch_ready = $yatoon_service_count > 0 && $yatoon_staff_count > 0 && $yatoon_booking_page_url;
    ?>
    <section class="yw-launch-card">
        <h2><?php echo esc_html( $yatoon_launch_ready ? __( 'Your booking flow is ready to test', 'yatoon-booking-system' ) : __( 'Complete the last launch items', 'yatoon-booking-system' ) ); ?></h2>
        <p class="yw-launch-sub"><?php echo esc_html( $yatoon_launch_ready ? __( 'Open the customer page and place one test booking before sharing the link.', 'yatoon-booking-system' ) : __( 'Add at least one service and one bookable staff member, then return to the launch center.', 'yatoon-booking-system' ) ); ?></p>
        <div class="yw-launch-ready">
            <div class="yw-launch-ready-row"><span class="yw-launch-status <?php echo esc_attr( $yatoon_service_count ? '' : 'is-missing' ); ?>"><?php if ( $yatoon_service_count ) : ?>&#10003;<?php else : ?>!<?php endif; ?></span><strong><?php
                /* translators: %d: number of active services. */
                echo esc_html( sprintf( _n( '%d active service', '%d active services', $yatoon_service_count, 'yatoon-booking-system' ), $yatoon_service_count ) );
            ?></strong></div>
            <div class="yw-launch-ready-row"><span class="yw-launch-status <?php echo esc_attr( $yatoon_staff_count ? '' : 'is-missing' ); ?>"><?php if ( $yatoon_staff_count ) : ?>&#10003;<?php else : ?>!<?php endif; ?></span><strong><?php
                /* translators: %d: number of bookable staff members. */
                echo esc_html( sprintf( _n( '%d bookable staff member', '%d bookable staff members', $yatoon_staff_count, 'yatoon-booking-system' ), $yatoon_staff_count ) );
            ?></strong></div>
            <div class="yw-launch-ready-row"><span class="yw-launch-status <?php echo esc_attr( $yatoon_booking_page_url ? '' : 'is-missing' ); ?>"><?php if ( $yatoon_booking_page_url ) : ?>&#10003;<?php else : ?>!<?php endif; ?></span><strong><?php echo esc_html( $yatoon_booking_page_url ? __( 'Booking page created', 'yatoon-booking-system' ) : __( 'Booking page needs attention', 'yatoon-booking-system' ) ); ?></strong></div>
        </div>
        <div class="yw-launch-actions">
            <a class="yw-launch-btn" href="<?php echo esc_url( admin_url( 'admin.php?page=yatoon-dashboard' ) ); ?>"><?php esc_html_e( 'Open launch center', 'yatoon-booking-system' ); ?></a>
            <div class="yw-launch-actions-right">
                <?php if ( !$yatoon_service_count ) : ?><a class="yw-launch-btn" href="<?php echo esc_url( admin_url( 'admin.php?page=sbs-services' ) ); ?>"><?php esc_html_e( 'Add services', 'yatoon-booking-system' ); ?></a><?php endif; ?>
                <?php if ( !$yatoon_staff_count ) : ?><a class="yw-launch-btn" href="<?php echo esc_url( admin_url( 'admin.php?page=sbs-staff' ) ); ?>"><?php esc_html_e( 'Add staff', 'yatoon-booking-system' ); ?></a><?php endif; ?>
                <?php if ( $yatoon_launch_ready ) : ?><a class="yw-launch-btn yw-launch-btn-primary" href="<?php echo esc_url( wp_nonce_url( admin_url( 'admin-post.php?action=yatoon_start_test_booking' ), 'yatoon_start_test_booking' ) ); ?>"><?php esc_html_e( 'Start test booking', 'yatoon-booking-system' ); ?></a><?php endif; ?>
            </div>
        </div>
    </section>
<?php else : ?>
<form method="post" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>">
    <?php wp_nonce_field( 'yatoon_wizard_save', 'yatoon_wizard_nonce' ); ?>
    <input type="hidden" name="action" value="yatoon_wizard_save">
    <input type="hidden" name="wizard_step" value="<?php echo esc_attr( $yatoon_wizard_step ); ?>">

    <section class="yw-launch-card">
    <?php if ( 1 === $yatoon_wizard_step ) : ?>
        <h2><?php esc_html_e( 'Business details', 'yatoon-booking-system' ); ?></h2>
        <p class="yw-launch-sub"><?php esc_html_e( 'Used on booking confirmations and customer-facing pages.', 'yatoon-booking-system' ); ?></p>
        <div class="yw-launch-field"><label for="yw-launch-name"><?php esc_html_e( 'Business name', 'yatoon-booking-system' ); ?></label><input id="yw-launch-name" type="text" name="yatoon_business_name" value="<?php echo esc_attr( get_option( 'yatoon_business_name', get_bloginfo( 'name' ) ) ); ?>" required></div>
        <div class="yw-launch-grid">
            <div class="yw-launch-field"><label for="yw-launch-phone"><?php esc_html_e( 'Phone', 'yatoon-booking-system' ); ?></label><input id="yw-launch-phone" type="tel" name="yatoon_business_phone" value="<?php echo esc_attr( get_option( 'yatoon_business_phone', '' ) ); ?>"></div>
            <div class="yw-launch-field"><label for="yw-launch-email"><?php esc_html_e( 'Booking email', 'yatoon-booking-system' ); ?></label><input id="yw-launch-email" type="email" name="yatoon_contact_email" value="<?php echo esc_attr( get_option( 'yatoon_contact_email', get_option( 'admin_email' ) ) ); ?>"></div>
        </div>
        <div class="yw-launch-field"><label for="yw-launch-address"><?php esc_html_e( 'Address', 'yatoon-booking-system' ); ?></label><input id="yw-launch-address" type="text" name="yatoon_business_address" value="<?php echo esc_attr( get_option( 'yatoon_business_address', '' ) ); ?>"></div>
        <div class="yw-launch-field"><label for="yw-launch-site"><?php esc_html_e( 'Website', 'yatoon-booking-system' ); ?></label><input id="yw-launch-site" type="url" name="yatoon_business_website" value="<?php echo esc_attr( get_option( 'yatoon_business_website', home_url( '/' ) ) ); ?>"></div>

    <?php elseif ( 2 === $yatoon_wizard_step ) : ?>
        <h2><?php esc_html_e( 'Choose how to start', 'yatoon-booking-system' ); ?></h2>
        <p class="yw-launch-sub"><?php esc_html_e( 'Nothing is added to your service or staff lists unless you choose demo content.', 'yatoon-booking-system' ); ?></p>
        <span class="yw-launch-label"><?php esc_html_e( 'Starter content', 'yatoon-booking-system' ); ?></span>
        <div class="yw-launch-choice-grid">
            <label class="yw-launch-choice"><input type="radio" name="yatoon_starter_mode" value="blank" checked><span><strong><?php esc_html_e( 'Start with my own data', 'yatoon-booking-system' ); ?></strong><small><?php esc_html_e( 'Best for a live business. Your lists stay empty until you add or sync data.', 'yatoon-booking-system' ); ?></small></span></label>
            <label class="yw-launch-choice"><input type="radio" name="yatoon_starter_mode" value="demo"><span><strong><?php esc_html_e( 'Add demo services', 'yatoon-booking-system' ); ?></strong><small><?php esc_html_e( 'Adds two sample staff members and three services for a quick test.', 'yatoon-booking-system' ); ?></small></span></label>
        </div>
        <?php if ( $yatoon_is_pro_package ) : ?>
            <span class="yw-launch-label"><?php esc_html_e( 'Booking data source', 'yatoon-booking-system' ); ?></span>
            <div class="yw-launch-choice-grid">
                <?php foreach ( array( 'local' => __( 'Local WordPress', 'yatoon-booking-system' ), 'square' => __( 'Square Appointments', 'yatoon-booking-system' ), 'vagaro' => __( 'Vagaro (Experimental)', 'yatoon-booking-system' ) ) as $yatoon_platform_key => $yatoon_platform_label ) : ?>
                    <label class="yw-launch-choice"><input type="radio" name="yatoon_active_platform" value="<?php echo esc_attr( $yatoon_platform_key ); ?>" <?php checked( $yatoon_platform, $yatoon_platform_key ); ?>><span><strong><?php echo esc_html( $yatoon_platform_label ); ?></strong><small><?php echo esc_html( 'local' === $yatoon_platform_key ? __( 'Manage availability inside WordPress.', 'yatoon-booking-system' ) : __( 'Connect and sync live availability.', 'yatoon-booking-system' ) ); ?></small></span></label>
                <?php endforeach; ?>
            </div>
            <div class="yw-launch-grid">
                <div class="yw-launch-field"><label for="yw-launch-square-token"><?php esc_html_e( 'Square access token', 'yatoon-booking-system' ); ?></label><input id="yw-launch-square-token" type="password" name="yatoon_square_access_token" autocomplete="new-password" placeholder="<?php echo esc_attr( yatoon_secret_placeholder( 'yatoon_square_access_token', __( 'Leave blank if using local or Vagaro', 'yatoon-booking-system' ) ) ); ?>"></div>
                <div class="yw-launch-field"><label for="yw-launch-square-location"><?php esc_html_e( 'Square location ID', 'yatoon-booking-system' ); ?></label><input id="yw-launch-square-location" type="text" name="yatoon_square_location_id" value="<?php echo esc_attr( get_option( 'yatoon_square_location_id', '' ) ); ?>"></div>
                <div class="yw-launch-field"><label for="yw-launch-vagaro-key"><?php esc_html_e( 'Vagaro API key', 'yatoon-booking-system' ); ?></label><input id="yw-launch-vagaro-key" type="password" name="yatoon_vagaro_api_key" autocomplete="new-password"></div>
                <div class="yw-launch-field"><label for="yw-launch-vagaro-business"><?php esc_html_e( 'Vagaro business ID', 'yatoon-booking-system' ); ?></label><input id="yw-launch-vagaro-business" type="text" name="yatoon_vagaro_business_id" value="<?php echo esc_attr( get_option( 'yatoon_vagaro_business_id', '' ) ); ?>"></div>
            </div>
        <?php else : ?>
            <div class="yw-launch-callout"><strong><?php esc_html_e( 'Free uses local WordPress booking.', 'yatoon-booking-system' ); ?></strong> <?php esc_html_e( 'Square and Vagaro live sync are available in Pro; no integration credentials are requested in Free.', 'yatoon-booking-system' ); ?></div>
        <?php endif; ?>

    <?php elseif ( 3 === $yatoon_wizard_step ) : ?>
        <h2><?php esc_html_e( 'Hours and notifications', 'yatoon-booking-system' ); ?></h2>
        <p class="yw-launch-sub"><?php esc_html_e( 'Set a simple weekly schedule now. You can add breaks and staff-specific hours later.', 'yatoon-booking-system' ); ?></p>
        <?php
        $yatoon_day_defaults = array( 'monday'=>'09:00-18:00','tuesday'=>'09:00-18:00','wednesday'=>'09:00-18:00','thursday'=>'09:00-18:00','friday'=>'09:00-18:00','saturday'=>'09:00-17:00','sunday'=>'closed' );
        foreach ( $yatoon_day_defaults as $yatoon_day => $yatoon_default_hours ) :
            $yatoon_day_value = (string) get_option( "yatoon_hours_{$yatoon_day}", $yatoon_default_hours );
        ?>
            <div class="yw-launch-hours"><label for="yw-launch-<?php echo esc_attr( $yatoon_day ); ?>"><?php echo esc_html( $yatoon_day ); ?></label><input id="yw-launch-<?php echo esc_attr( $yatoon_day ); ?>" type="text" name="yatoon_hours_<?php echo esc_attr( $yatoon_day ); ?>" value="<?php echo esc_attr( 'closed' === $yatoon_day_value ? '' : $yatoon_day_value ); ?>" placeholder="09:00-18:00"><label class="yw-launch-closed"><input type="checkbox" name="yatoon_closed_<?php echo esc_attr( $yatoon_day ); ?>" value="1" <?php checked( $yatoon_day_value, 'closed' ); ?>> <?php esc_html_e( 'Closed', 'yatoon-booking-system' ); ?></label></div>
        <?php endforeach; ?>
        <hr>
        <label class="yw-launch-check"><input type="checkbox" name="yatoon_send_confirmation_email" value="1" <?php checked( get_option( 'yatoon_send_confirmation_email', '1' ), '1' ); ?>><span><?php esc_html_e( 'Send customers a booking confirmation email', 'yatoon-booking-system' ); ?></span></label>
        <label class="yw-launch-check"><input type="checkbox" name="yatoon_email_notify_admin" value="1" <?php checked( get_option( 'yatoon_email_notify_admin', '1' ), '1' ); ?>><span><?php esc_html_e( 'Notify the business email about new bookings', 'yatoon-booking-system' ); ?></span></label>
        <label class="yw-launch-check"><input type="checkbox" name="yatoon_reminder_enabled" value="1" <?php checked( get_option( 'yatoon_reminder_enabled', '0' ), '1' ); ?>><span><?php esc_html_e( 'Send an email reminder before the appointment', 'yatoon-booking-system' ); ?></span></label>
        <div class="yw-launch-field" style="max-width:220px"><label for="yw-launch-reminder-hours"><?php esc_html_e( 'Reminder hours before', 'yatoon-booking-system' ); ?></label><input id="yw-launch-reminder-hours" type="number" name="yatoon_reminder_hours_before" min="1" max="72" value="<?php echo esc_attr( get_option( 'yatoon_reminder_hours_before', 24 ) ); ?>"></div>

    <?php elseif ( 4 === $yatoon_wizard_step ) : ?>
        <h2><?php esc_html_e( 'Create your booking pages', 'yatoon-booking-system' ); ?></h2>
        <p class="yw-launch-sub"><?php esc_html_e( 'Yatoon can create the pages and add the correct shortcodes automatically.', 'yatoon-booking-system' ); ?></p>
        <div class="yw-launch-field"><label for="yw-launch-booking-page"><?php esc_html_e( 'Customer booking page', 'yatoon-booking-system' ); ?></label><select id="yw-launch-booking-page" name="yatoon_booking_page_id"><option value="0"><?php esc_html_e( 'Create a new Book an Appointment page', 'yatoon-booking-system' ); ?></option><?php foreach ( $yatoon_pages as $yatoon_page ) : ?><option value="<?php echo esc_attr( $yatoon_page->ID ); ?>" <?php selected( $yatoon_booking_page_id, $yatoon_page->ID ); ?>><?php echo esc_html( $yatoon_page->post_title ); ?></option><?php endforeach; ?></select><p class="description"><?php esc_html_e( 'If you select an existing page, Yatoon appends [yatoon_booking] only when it is missing.', 'yatoon-booking-system' ); ?></p></div>
        <label class="yw-launch-check"><input type="checkbox" name="yatoon_create_support_pages" value="1" checked><span><strong><?php esc_html_e( 'Also create customer self-service pages', 'yatoon-booking-system' ); ?></strong><br><?php esc_html_e( 'Creates Manage Your Appointment and My Appointments pages.', 'yatoon-booking-system' ); ?></span></label>
        <div class="yw-launch-grid"><div class="yw-launch-field"><label for="yw-launch-color"><?php esc_html_e( 'Primary color', 'yatoon-booking-system' ); ?></label><input id="yw-launch-color" type="color" name="yatoon_primary_color" value="<?php echo esc_attr( get_option( 'yatoon_primary_color', '#ec4899' ) ); ?>" style="width:72px;height:42px;padding:3px"></div><div class="yw-launch-field"><label for="yw-launch-advance"><?php esc_html_e( 'Minimum advance notice (hours)', 'yatoon-booking-system' ); ?></label><input id="yw-launch-advance" type="number" name="yatoon_min_advance_hours" min="0" max="72" value="<?php echo esc_attr( get_option( 'yatoon_min_advance_hours', 2 ) ); ?>"></div></div>
    <?php endif; ?>
    </section>

    <div class="yw-launch-actions">
        <div><?php if ( $yatoon_wizard_step > 1 ) : ?><a class="yw-launch-btn" href="<?php echo esc_url( add_query_arg( 'wizard_step', $yatoon_wizard_step - 1 ) ); ?>"><?php esc_html_e( 'Back', 'yatoon-booking-system' ); ?></a><?php endif; ?></div>
        <div class="yw-launch-actions-right"><button class="yw-launch-skip" type="submit" name="skip_step" value="1"><?php esc_html_e( 'Skip for now', 'yatoon-booking-system' ); ?></button><button class="yw-launch-btn yw-launch-btn-primary" type="submit"><?php echo esc_html( 4 === $yatoon_wizard_step ? __( 'Create pages and finish', 'yatoon-booking-system' ) : __( 'Save and continue', 'yatoon-booking-system' ) ); ?></button></div>
    </div>
</form>
<?php endif; ?>

<div class="yw-launch-footer"><a href="<?php echo esc_url( wp_nonce_url( admin_url( 'admin-post.php?action=yatoon_dismiss_wizard' ), 'yatoon_dismiss_wizard' ) ); ?>"><?php esc_html_e( 'Exit setup wizard', 'yatoon-booking-system' ); ?></a></div>
</div>
