src/Helpers/UI/Label.php
public static function count($count, array $options = []) {

        // TODO: Refactor the options to a dedicated config file.
        $classes = Arr::get($options, 'classes', [
            'positive' => 'label label-info',
            'zero'     => 'label label-default',
            'negative' => 'label label-danger',
        ]);

        return static::generate($count, [
            'class' => $count > 0 ? $classes['positive'] : ($count < 0 ? $classes['negative'] : $classes['zero'])
        ]);
    }
public static function count($count, array $options = []) {

        // TODO: Refactor the options to a dedicated config file.
        $classes = Arr::get($options, 'classes', [
            'positive' => 'label label-info',
            'zero'     => 'label label-default',
            'negative' => 'label label-danger',
        ]);

        return static::generate($count, [
            'class' => $count > 0 ? $classes['positive'] : ($count < 0 ? $classes['negative'] : $classes['zero'])
        ]);
    }
public static function count ( $ count , array $ options = [ ] ) { // TODO: Refactor the options to a dedicated config file. $ classes = Arr :: get ( $ options , 'classes' , [ 'positive' => 'label label-info' , 'zero' => 'label label-default' , 'negative' => 'label label-danger' , ] ) ; return static :: generate ( $ count , [ 'class' => $ count > 0 ? $ classes [ 'positive' ] : ( $ count < 0 ? $ classes [ 'negative' ] : $ classes [ 'zero' ] ) ] ) ; }
Generate count label.

@param  int|float  $count
@param  array      $options

@return \Illuminate\Support\HtmlString
Generate count label .