fixed pricing controller

This commit is contained in:
Mark Gregory
2026-06-12 07:15:43 +01:00
parent 254810b90a
commit 8391ece55a
7 changed files with 100 additions and 13 deletions
@@ -36,7 +36,10 @@ class PlatformDashboardController extends Controller
'paymentsTotal' => Payment::where('status', 'paid')->sum('amount'),
'warehousesCount' => $warehousesCount,
'pricesCount' => $pricesCount,
'prices' => PlatformPrice::query()->ordered()->limit(3)->get(),
'prices' => PlatformPrice::query()
->where('is_active', true)
->ordered()
->get(),
'companies' => $companies,
'companyUsageChartLabels' => $companies->isNotEmpty()