<?php
/**
 * Information modal partial.
 *
 * @package NNAXFUF_Plugin
 */
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}
?>
<!-- INFO-MODAL -->
<div id="nnaxfuf-info-modal" class="nnaxfuf-modal uk-flex-top" uk-modal>
    <div class="uk-modal-dialog uk-modal-body uk-margin-auto-vertical uk-width-1-1 uk-width-2-3@m">
        <button class="uk-modal-close-default" type="button" uk-close></button>

        <h3 class="uk-modal-title"><?php esc_html_e( 'Information', 'nnax-frontend-user-files' ); ?></h3>

        <table class="uk-table uk-table-small uk-table-striped uk-table-divider uk-margin-small-top nnaxfuf-info">
            <tbody>
                <tr>
                    <th class="uk-width-medium"><?php esc_html_e( 'View', 'nnax-frontend-user-files' ); ?></th>
                    <td><?php echo esc_html( $info_view_label ); ?></td>
                </tr>
                <tr>
                    <th><?php esc_html_e( 'Filter', 'nnax-frontend-user-files' ); ?></th>
                    <td><?php echo esc_html( $info_filter_label ); ?></td>
                </tr>
                <tr>
                    <th><?php esc_html_e( 'Current path', 'nnax-frontend-user-files' ); ?></th>
                    <td><?php echo esc_html( $info_current_path ); ?></td>
                </tr>
                <tr>
                    <th><?php esc_html_e( 'Stored files', 'nnax-frontend-user-files' ); ?></th>
                    <td><?php echo esc_html( (string) $usage['file_count'] ); ?></td>
                </tr>
                <tr>
                    <th><?php esc_html_e( 'Storage used', 'nnax-frontend-user-files' ); ?></th>
                    <td><?php echo esc_html( $used_mb_display ); ?> MB</td>
                </tr>
                <tr>
                    <th><?php esc_html_e( 'File limit', 'nnax-frontend-user-files' ); ?></th>
                    <td>
                        <?php echo ( $quota['max_files'] > 0 ) ? esc_html( (string) $quota['max_files'] ) : esc_html__( 'Unlimited', 'nnax-frontend-user-files' ); ?>
                    </td>
                </tr>
                <tr>
                    <th><?php esc_html_e( 'Remaining files', 'nnax-frontend-user-files' ); ?></th>
                    <td>
                        <?php echo ( $quota['max_files'] > 0 && null !== $remaining_files ) ? esc_html( (string) $remaining_files ) : esc_html__( 'Unlimited', 'nnax-frontend-user-files' ); ?>
                    </td>
                </tr>
                <tr>
                    <th><?php esc_html_e( 'Storage limit', 'nnax-frontend-user-files' ); ?></th>
                    <td>
                        <?php echo ( $quota['max_mb'] > 0 ) ? esc_html( $quota_max_mb_display ) . ' MB' : esc_html__( 'Unlimited', 'nnax-frontend-user-files' ); ?>
                    </td>
                </tr>
                <tr>
                    <th><?php esc_html_e( 'Remaining storage', 'nnax-frontend-user-files' ); ?></th>
                    <td>
                        <?php echo ( $quota['max_mb'] > 0 && '' !== $remaining_mb_display ) ? esc_html( $remaining_mb_display ) . ' MB' : esc_html__( 'Unlimited', 'nnax-frontend-user-files' ); ?>
                    </td>
                </tr>
                <tr>
                    <th><?php esc_html_e( 'Allowed file types', 'nnax-frontend-user-files' ); ?></th>
                    <td><?php echo esc_html( $allowed_types_display ); ?></td>
                </tr>
            </tbody>
        </table>

        <div class="uk-margin-top uk-text-right">
            <button class="uk-button uk-button-default uk-button-small uk-modal-close" type="button">
                <?php esc_html_e( 'Close', 'nnax-frontend-user-files' ); ?>
            </button>
        </div>
    </div>
</div>
