order = $order; } /** * Build the message. * * @return $this */ public function build() { return $this->subject(trans('checkout::mail.new_order_subject')) ->view("emails.{$this->getViewName()}", [ 'logo' => File::findOrNew(setting('storefront_mail_logo'))->path, ]); } private function getViewName() { return 'new_order' . (is_rtl() ? '_rtl' : ''); } }