Closed lee-to closed 2 days ago
protected function metrics(): array { return [ ValueMetric::make('Articles')->value(fn() => Article::count())->columnSpan(6), ValueMetric::make('Comments')->value(fn() => Comment::count())->columnSpan(6), ValueMetric::make('Comments')->value(fn() => Comment::count())->columnSpan(12), ValueMetric::make('Comments')->value(fn() => Comment::count())->columnSpan(12), ValueMetric::make('Comments')->value(fn() => Comment::count())->columnSpan(4), ValueMetric::make('Comments')->value(fn() => Comment::count())->columnSpan(4), ValueMetric::make('Comments')->value(fn() => Comment::count())->columnSpan(4), ]; } protected function fragmentMetrics(): ?Closure { return static fn($components) => Fragment::make($components)->name('metrics'); }