<?php
defined('ABSPATH') || exit;
$iv1wpt_has_pro = iv1wpt_has_pro();
?>
<h2><span class="dashicons dashicons-backup"></span>&nbsp;<?php esc_html_e('Manual Backup', 'iv1-wp-tools'); ?></h2>
<div id="backup-result" style="margin:20px 0;"></div>
<form id="backup-form">
    <?php wp_nonce_field('iv1wpt_ajax', 'iv1wpt_nonce'); ?>
    <p style="display:flex;gap:16px;flex-wrap:wrap;">
        <button type="button" class="backup-btn button button-primary button-hero" data-type="full"><?php esc_html_e('All (Files + DB)', 'iv1-wp-tools'); ?></button>
        <button type="button" class="backup-btn button button-secondary button-hero" data-type="files"><?php esc_html_e('Files only', 'iv1-wp-tools'); ?></button>
        <button type="button" class="backup-btn button button-secondary button-hero" data-type="db"><?php esc_html_e('Database only', 'iv1-wp-tools'); ?></button>
    </p>
</form>

<h2><?php esc_html_e('Recent Backups', 'iv1-wp-tools'); ?> <button type="button" id="iv1wpt-refresh-list" class="button button-small" title="<?php esc_attr_e('Refresh', 'iv1-wp-tools'); ?>" style="vertical-align:middle;">&#x21bb; <?php esc_html_e('Refresh', 'iv1-wp-tools'); ?></button></h2>
<div id="iv1wpt-backup-list"><p class="description"><?php esc_html_e('Loading list...', 'iv1-wp-tools'); ?></p></div>

