code: public function totals($locale = null)
      {
          $this->setLocale($locale);
  
          $totals = Collection::make();
  
          foreach (Arr::except($this->footer(), 'all') as $level => $count) {
              $totals->put($level, [
                  'label'     => trans('dashboard::logs.'.$level),
                  'value'     => $count,
                  'color'     => $this->color($level),
                  'highlight' => $this->color($level),
              ]);
          }
  
          return $totals;
      }
docs: Get totals.
  
  @param string|null $locale
  
  @return \Illuminate\Support\Collection