Days since today wip

This commit is contained in:
salam committed 2026-05-28 10:32:26 +02:00
1 parent bf2aa801fc
commit 894b910eed
3 files changed
+15 -1

No files matched your search

+3 -1
View File
@@ -6,6 +6,7 @@ use App\Models\StatisticFixtures;
use App\Models\StatistikoDetail;
use App\Models\StatistikoEvent;
use App\Models\StatistikoPlayer;
use Illuminate\Support\Carbon;
class LoadEvents
{
@@ -151,7 +152,8 @@ class LoadEvents
foreach ($res as $value) {
$labels[] = $value['starttime']->format('d.M.Y H:i');
// $labels[] = $value['starttime']->format('d.M.Y H:i');
$labels[] = round($value['starttime']->diffInDays(Carbon::now())).'';
$results_per_event[] = $value['gls_h'].' : '.$value['gls_a'];