<tr id="moderator-<?php echo $moderator['user_id']; ?>">
    <td>
        <span class="d-flex align-items-center">
            <span class="icms-user-avatar mr-2 <?php echo ($moderator['is_online'] ? 'peer_online' : 'peer_no_online'); ?>">
                <?php echo html_avatar_image($moderator['user_avatar'], 'micro', $moderator['user_nickname']); ?>
            </span>
            <a href="<?php echo href_to_profile($moderator['user']); ?>">
                <?php html($moderator['user_nickname']); ?>
            </a>
        </span>
    </td>
    <td class="d-none d-lg-table-cell"><?php echo html_date($moderator['date_assigned']);?></td>
    <?php if(empty($not_use_trash)){ ?>
        <td>
            <a title="<?php echo LANG_MODERATOR_TRASH_LEFT_TIME; ?>" class="ajax-modal ajaxlink btn btn-warning trash_left_time_num" href="<?php echo href_to('admin', 'controllers', ['edit', 'moderation', 'edit_trash_left_time', $moderator['id']]); ?>" data-toggle="tooltip" data-placement="top">
            <?php if($moderator['trash_left_time'] !== null){ ?>
                <?php if($moderator['trash_left_time']){ ?>
                    <?php echo html_spellcount($moderator['trash_left_time'], LANG_HOUR1, LANG_HOUR2, LANG_HOUR10);?>
                <?php } else { ?>
                    <?php echo LANG_MODERATION_TRASH_NO_REMOVE; ?>
                <?php } ?>
            <?php } else { ?>
                <?php echo LANG_BY_DEFAULT; ?>
            <?php } ?>
            </a>
        </td>
    <?php } ?>
    <td class="d-none d-lg-table-cell"><?php echo $moderator['count_approved'];?></td>
    <td class="d-none d-lg-table-cell"><?php echo $moderator['count_deleted'];?></td>
    <td><?php echo $moderator['count_idle'];?></td>
    <td>
        <div class="actions">
            <a href="<?php echo href_to('admin', 'controllers', ['edit', 'moderation', 'logs', ($ctype['controller'] ?? 'content'), $ctype['name'], 0, $moderator['user_id']]); ?>" title="<?php echo LANG_VIEW; ?>" data-toggle="tooltip" data-placement="top">
                <span>
                    <?php html_svg_icon('solid', 'eye'); ?>
                </span>
            </a>
            <a class="text-danger moderator-cancel" href="#" data-user_id="<?php echo $moderator['user_id']; ?>" title="<?php echo LANG_CANCEL; ?>" data-toggle="tooltip" data-placement="top">
                <span>
                    <?php html_svg_icon('solid', 'times'); ?>
                </span>
            </a>
            <div class="loading-icon" style="display:none"><div class="spinner"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div></div>
        </div>
    </td>
</tr>