> */ private array $blocks = [ AgeGroupCountBlock::class, MemberPaymentBlock::class, TestersBlock::class, EfzPendingBlock::class, PsPendingBlock::class, ]; /** * @return array */ public function render(): array { return collect($this->blocks)->map(fn ($block): array => app($block)->render())->toArray(); } /** * @param class-string $block */ public function register(string $block): self { $this->blocks[] = $block; return $this; } public function purge(): self { $this->blocks = []; return $this; } }