company = $company; } public function envelope(): Envelope { $titles = ['itp' => 'Reminder ITP', 'oil' => 'Reminder schimb ulei', 'general' => 'Reminder revizie']; $title = $titles[$this->reminderType] ?? 'Reminder'; return new Envelope( subject: "[{$this->company->name}] {$title} — " . trim(($this->vehicle->make ?? '') . ' ' . ($this->vehicle->model ?? '')), from: new \Illuminate\Mail\Mailables\Address( config('mail.from.address'), $this->company->display_name ?? $this->company->name, ), ); } public function content(): Content { return new Content( view: 'emails.service-reminder', with: array_merge($this->buildBrandingContext(), [ 'vehicle' => $this->vehicle, 'client' => $this->vehicle->client, 'reminderType' => $this->reminderType, 'note' => $this->note, ]), ); } }