$this->id, 'name' => $this->name, 'slug' => $this->slug, 'description' => $this->description, 'icon' => $this->icon, 'sort_order' => $this->sort_order, 'status' => $this->status, 'posts_count' => $this->whenCounted('posts'), 'created_at' => $this->created_at?->toISOString(), 'updated_at' => $this->updated_at?->toISOString(), ]; } }