FontAwesome->getClass('minus'); } elseif ($variation > 0) { $variationIcon = 'trends-arrow-up-white fs-6'; $variationClass = 'bg-success'; } else { $variationIcon = 'trends-arrow-up-white fs-6 fa-rotate-180 fa-flip-vertical'; $variationClass = 'bg-danger'; } } $series = []; $statistics_day_number = ''; if (!empty($timeline['created']['timeline'])) { $statistics_day_number = $timeline['created']['days']; $i = count($series); $series[$i]['name'] = __('Created'); $series[$i]['type'] = !empty($chartType) ? $chartType : 'column'; foreach ($timeline['created']['timeline'] as $entry) { $series[$i]['data'][] = ['x' => $entry['time'], 'y' => $entry['count']]; } } if (!empty($timeline['modified']['timeline'])) { $statistics_day_number = empty($statistics_day_number) ? $timeline['modified']['days'] : $statistics_day_number; $i = count($series); $series[$i]['name'] = __('Modified'); $series[$i]['type'] = !empty($chartType) ? $chartType : 'line'; foreach ($timeline['modified']['timeline'] as $entry) { $series[$i]['data'][] = ['x' => $entry['time'], 'y' => $entry['count']]; } } $variationHtml = ''; if (!is_null($variation)) { $variationHtml = sprintf( '