<div class="install-container">
    <h3>Requirements</h3>

    <table class="table">
        <tbody>
        <tr>
            <td>Your IPs Address</td>
            <td style="text-align:right">
                <span class=""><?= join(',', $ips) ?></span>
            </td>
        </tr>
        <tr>
            <td>PHP Version</td>
            <td style="text-align:right">
                <?php if (version_compare(PHP_VERSION, '7.4.0', '>=')): ?>
                    <span class="ok">OK</span>
                <?php else: ?>
                    <span class="error">Required PHP Version 7.4+</span>
                <?php endif ?>
            </td>
        </tr>

        <tr>
            <td>ionCube</td>
            <td style="text-align:right">
                <?php if (extension_loaded('ionCube Loader')): ?>
                    <span class="ok">OK</span>
                <?php else: ?>
                    <span class="error">Not installed</span>
                <?php endif ?>
            </td>
        </tr>

        <tr>
            <td>CURL</td>
            <td style="text-align:right">
                <?php if (extension_loaded('curl')): ?>
                    <span class="ok">OK</span>
                <?php else: ?>
                    <span class="error">Not installed</span>
                <?php endif ?>
            </td>
        </tr>

        <tr>
            <td>ZIP extension</td>
            <td style="text-align:right">
                <?php if (function_exists('zip_open')): ?>
                    <span class="ok">OK</span>
                <?php else: ?>
                    <span class="error">Not installed</span>
                <?php endif ?>
            </td>
        </tr>

        <tr>
            <td>iconv extension</td>
            <td style="text-align:right">
                <?php if (extension_loaded('iconv')): ?>
                    <span class="ok">OK</span>
                <?php else: ?>
                    <span class="error">Not installed</span>
                <?php endif ?>
            </td>
        </tr>

        <tr>
            <td>intl extension</td>
            <td style="text-align:right">
                <?php if (extension_loaded('intl')): ?>
                    <span class="ok">OK</span>
                <?php else: ?>
                    <span class="error">Not installed</span>
                <?php endif ?>
            </td>
        </tr>

        <tr>
            <td>allow_url_fopen</td>
            <td style="text-align:right">
                <?php if (ini_get('allow_url_fopen')): ?>
                    <span class="ok">OK</span>
                <?php else: ?>
                    <span class="error">Not installed</span>
                <?php endif ?>
            </td>
        </tr>

        <tr>
            <td>PDO</td>
            <td style="text-align:right">
                <?php if (!empty($drivers)): ?>
                    <span class="ok"><?= join(', ', $drivers) ?></span>
                <?php else: ?>
                    <span class="error">Unavailable</span>
                <?php endif ?>
            </td>
        </tr>

        </tbody>
    </table>

    <a href="<?= base_path() ?>index.php/settup" class="btn btn-block btn-primary">Let&#8217;s go!</a>
</div>