order->store; return new Envelope( // Sent from our address (so it is delivered), but under the store's name, with replies going to the store. from: new Address((string) config('mail.from.address'), $store->name), replyTo: $store->contact_email !== null ? [new Address($store->contact_email, $store->name)] : [], subject: $store->language->value === 'ms' ? "Pesanan #{$this->order->number} disahkan - {$store->name}" : "Order #{$this->order->number} confirmed - {$store->name}", ); } public function content(): Content { $store = $this->order->store; $brand = StoreBrand::for($store); return new Content( // In the store's own colours, fonts and corners, so shoppers see the shop they bought from. view: 'mail.orders.confirmation', text: 'mail.orders.confirmation-text', with: [ 'order' => $this->order->loadMissing('items'), 'store' => $store, 'brand' => $brand, 'orderUrl' => $brand->orderUrl($this->order), 'whatsappUrl' => $brand->whatsappUrl($this->order), ], ); } }