post->workspace->name}", ); } public function content(): Content { $publishedPlatforms = $this->post->postPlatforms() ->with('socialAccount') ->enabled() ->get() ->filter(fn ($pp) => $pp->status === Status::Published) ->map(fn ($pp) => [ 'name' => $pp->notificationLabel(), 'url' => $pp->platform_url, ]) ->values() ->all(); return new Content( view: 'mail.post-published', with: [ 'title' => 'Your post was published', 'previewText' => 'Your post has been published successfully.', 'body' => "Your post in the {$this->post->workspace->name} workspace has been published successfully.", 'publishedPlatforms' => $publishedPlatforms, 'url' => route('app.posts.edit', $this->post), ], ); } public function attachments(): array { return []; } }