costUnit->name, ); } /** * Get the message content definition. */ public function content(): Content { return new Content( view: 'emails.invoices.new_invoice', with: [ 'costUnitName' => $this->costUnit->name, 'invoiceAmount' => Amount::fromString($this->invoice->amount)->toString(), 'invoiceType' => $this->invoice->invoiceType()->name, ], ); } /** * Get the attachments for the message. * * @return array */ public function attachments(): array { return []; } }