<?php if (statusModule('users', 'clients') == 1) { ?>
    <?php $topClients = topClients($setting->top_clients_l);
    if ($topClients) {
        $countTop = 0; ?>
        <div class="mb-4 col-md-<?php echo $widget->col; ?>">
            <h2 class="title"><?php echo $_LANG['top-clients']; ?></h2>
            <?php foreach ($topClients as $topC) {
                $countTop++; ?>
                <div class="card top-client-card">
                    <div class="card-body">
                        <span class="num"><?php echo $countTop; ?></span>
                        <div class="avatar">
                            <img loading="lazy" src="<?php echo PATH_SYSTEM; ?>public/avatar/<?php echo $topC->avatar; ?>" class="rounded-circle" alt="<?php echo $topC->full_name; ?>">
                        </div>
                        <div class="info">
                            <span class="name"><?php echo $topC->full_name; ?></span>
                            <span class="points"><?php echo $topC->points . ' ' . $_LANG['points']; ?></span>
                        </div>
                    </div>
                </div>
            <?php } ?>
        </div>
    <?php } ?>
<?php } ?>
