classes/Models/Encoding.php
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>';
    }
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>';
    }
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>' ; }
Get stats as labels with badges

@return string html
Get stats as labels with badges