company = $company; $this->user = $user; $this->created_user = $created_user; } /** * Build the message. * * @return $this */ public function build() { App::setLocale($this->company->getLocale()); return $this->from(config('mail.from.address'), config('mail.from.name')) ->subject(ctrans('texts.created_user')) ->text('email.admin.user_added_text') ->view('email.admin.user_added') ->with([ 'settings' => $this->company->settings, 'logo' => $this->company->present()->logo(), 'title' => ctrans('texts.created_user'), 'body' => ctrans('texts.user_created_user', ['user' => $this->user->present()->name(), 'created_user' => $this->created_user->present()->name(), 'time' => now()]), 'whitelabel' => $this->company->account->isPaid(), ]); } }