protected function getAdminStatsMarkupAttribute()
    {
        if (!$stats = $this->getStatsAttribute()) {
            return '';
        }

        return '<div class="stats">'
            .implode('', array_map(function ($val, $key) {
                return sprintf('<span class="label">
                    <span>%s</span>
                    <span class="badge">%s</span>
                    </span>',
                    $key, $val);
            }, $stats, array_keys($stats)))
            .'</div>';
    }