subject('Hosting suspended: '.($this->account->primary_domain ?: $this->account->username)) ->view('mail.notifications.hosting-suspended', [ 'account' => $this->account, 'reason' => $this->reason, 'dashboardUrl' => route('hosting.accounts.show', $this->account), ]); } public function toArray($notifiable): array { $label = $this->account->primary_domain ?: $this->account->username; return [ 'title' => 'Hosting suspended', 'message' => "Hosting for {$label} has been suspended. {$this->reason}", 'icon' => 'hosting', 'url' => route('hosting.accounts.show', $this->account), ]; } }