participant->toResource()->toArray(new Request()); $subject = 'Dein erweitertes Führungszeugnis wurde bestätigt'; return new Envelope( subject: $subject, ); } /** * Get the message content definition. */ public function content(): Content { $event = $this->participant->event()->first()->toResource()->toArray(new Request()); $participant = $this->participant->toResource()->toArray(new Request()); return new Content( view: 'emails.cocCheck.coc_check_complete', with: [ 'name' => $participant['nicename'], 'eventTitle' => $event['name'], 'eventEmail' => $event['email'], 'cocFinalDate' => $event['registrationFinalEnd']['formatted'], ], ); } /** * Get the attachments for the message. * * @return array */ public function attachments(): array { return []; } }