<?php

if (!defined('ABSPATH')) exit; // Exit if accessed directly

use WP_Statistics\Components\View;

?>

<div class="postbox-container wps-postbox-full">
    <div class="metabox-holder">
        <div class="meta-box-sortables">
            <div class="postbox">
                <?php
                $args = [
                    'data'       => $data['data'],
                    'pagination' => isset($pagination) ? $pagination : null
                ];
                View::load("components/tables/top-visitors", $args);
                ?>
            </div>
        </div>
    </div>
</div>