settings = $settings; $this->answers = $answers; $this->columns = $columns; } /** * Get the message envelope. */ public function envelope(): Envelope { return new Envelope( subject: $this->settings['topic'], // Используем тему из настроек ); } /** * Get the message content definition. */ public function content(): Content { return new Content( view: 'emails.custom-form-response', // Укажите путь к вашему шаблону with: [ 'data' => $this->settings['data'], 'answers' => $this->answers, 'columns' => $this->columns, ], ); } /** * Get the attachments for the message. * * @return array */ public function attachments(): array { return []; } }