recipient === 'member' ? 'Payment Submitted Successfully - Awaiting Verification' : 'New Payment Submitted for Verification - ' . $this->payment->member->full_name; // Set subject property for assertion compatibility $this->subject($subject); } public function envelope(): Envelope { $subject = $this->recipient === 'member' ? 'Payment Submitted Successfully - Awaiting Verification' : 'New Payment Submitted for Verification - ' . $this->payment->member->full_name; return new Envelope(subject: $subject); } public function content(): Content { return new Content( markdown: 'emails.payments.submitted-' . $this->recipient, ); } public function attachments(): array { return []; } }