feat(dashboard): add price overview UI

This commit is contained in:
JustZoe101 committed 2026-08-01 22:29:45 +02:00
1 parent 0fa648f833
commit 8a0a94f26e
9 files changed
+143 -9

No files matched your search

@@ -20,7 +20,7 @@ class DashboardService
$eNow = $electricity->whereBetween('startDate', [$now->copy()->subHour(), $now])->first();
$eCheapest = $electricity->where('totalPriceTaxIncluded', $electricity->min('totalPriceTaxIncluded'))->first();
$eDurable = $electricity->where('sustainabilityScore', $electricity->min('sustainabilityScore'))->first();
$eDurable = $electricity->where('sustainabilityScore', $electricity->max('sustainabilityScore'))->first();
$ePriciest = $electricity->where('totalPriceTaxIncluded', $electricity->max('totalPriceTaxIncluded'))->first();
$gas = $this->repository->retrieveGas();