event->name ); return new Envelope( subject: $subject, ); } /** * Get the message content definition. */ public function content(): Content { $event = $this->event->toResource()->toArray(new Request()); $participants = []; foreach ($this->participants as $participant) { $_t = $participant->toResource()->toArray(new Request()); $participants[$_t['participationType']][] = $_t; } return new Content( view: 'emails.events.participant_report_localgroups', with: [ 'participantGroups' => $participants, 'eventTitle' => $event['name'], 'eventEmail' => $event['email'], ], ); } /** * Get the attachments for the message. * * @return array */ public function attachments(): array { return []; } }