io = $o; $this->queue = 'admin'; } /** * Get the message envelope. */ public function envelope(): Envelope { return new Envelope( subject: sprintf('Invoice %d generated for %s, due %s', $this->io->lid, $this->io->account->name, $this->io->due_at->format('Y-m-d')), ); } /** * Get the message content definition. */ public function content(): Content { return new Content( markdown: 'mail.admin.invoice.generated', with: [ 'io'=>$this->io, 'site'=>$this->io->site, ] ); } }