countsSince(1); return $this->render('dashboard', [ 'toolCount' => service('finder')->countTools(), 'guideCount' => $this->guidesModel()->countPublished(), 'queued' => $jobs->countQueued(), 'processing' => $jobs->countProcessing(), 'failedToday' => $jobs->where('status', 'failed')->where('created_at >=', gmdate('Y-m-d H:i:s', time() - 86400))->countAllResults(), 'viewsToday' => $day['tool_view'] ?? 0, 'startsToday' => $day['tool_start'] ?? 0, 'searches' => model(AnalyticsEventModel::class)->recentSearches(8), 'recentJobs' => $jobs->orderBy('created_at', 'DESC')->limit(8)->findAll(), ]); } }