mailer(MailCatalogue::mailer('service-ending-soon')); } public function envelope(): Envelope { return $this->mailboxEnvelope( MailPurpose::PROVISIONING, __('service_ending.subject', ['date' => $this->instance->service_ends_at->local()->isoFormat('LL')]), 'service-ending-soon', ); } public function content(): Content { return new Content(view: 'mail.service-ending-soon', with: [ 'name' => (string) ($this->instance->customer?->name ?? ''), // ->local() (R19): das Datum, das dem Kunden genannt wird, muss // seine eigene Wanduhr zeigen, nicht die Speicherzone UTC. 'date' => $this->instance->service_ends_at->local()->isoFormat('LL'), // https:// davor, wie überall sonst, wo Instance::address() zu // einer klickbaren Adresse wird (z. B. App\Livewire\ // Dashboard::domain()) — die eine Stelle, die eigene Domain vor // Subdomain entscheidet, statt das hier zu wiederholen. 'url' => 'https://'.$this->instance->address(ProvisioningSettings::dnsZone()), 'exportWish' => $this->instance->export_wish, ]); } }