voucher->amount, 2); return new Envelope( subject: $this->forRecipient ? __('emails.gift_voucher.recipient.subject', ['amount' => $amount, 'currency' => $this->voucher->currency]) : __('emails.gift_voucher.purchaser.subject', ['amount' => $amount, 'currency' => $this->voucher->currency]), ); } public function content(): Content { $amount = number_format((float) $this->voucher->amount, 2); $printUrl = URL::signedRoute('marketing.gift-vouchers.print', [ 'locale' => app()->getLocale(), 'voucher' => $this->voucher->id, 'code' => $this->voucher->code, ]); return new Content( view: 'emails.gift-voucher', with: [ 'voucher' => $this->voucher, 'amount' => $amount, 'currency' => $this->voucher->currency, 'forRecipient' => $this->forRecipient, 'printUrl' => $printUrl, ], ); } public function attachments(): array { return []; } }