<?php



defined('ABSPATH') || defined('DUPXABSPATH') || exit;

/**
 * Variables
 *
 * @var bool $isOk
 * @var int $freeSpace
 * @var int $requiredSpace
 */
?>
<div class="sub-title">STATUS</div>
<p>
    <?php if ($isOk) : ?>
        <span class="green">You have sufficient disk space on your machine to extract the archive.</span>
    <?php else : ?>
        <span class="maroon">You don’t have sufficient disk space on your machine to extract the archive.</span>
    <?php endif; ?>
</p>

<div class="sub-title">DETAILS</div>
<p>
    Duplicator needs at least enough disk space to be able to host the package file and the extracted files.<br>
    The available free disk space is <b><?php echo $freeSpace; ?></b>, the required disk space should at least be <b><?php echo $requiredSpace; ?></b>.
</p>

<div class="sub-title">TROUBLESHOOT</div>
<ul>
    <li>Ask your host to increase your disk space.</li>
    <li>Back-up and remove all unnecessary files you have in the install directory to free up space.</li>
</ul>