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' ? "Lengkapkan bayaran untuk pesanan #{$this->order->number} - {$store->name}" : "Complete your payment for order #{$this->order->number} - {$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 ordered from. view: 'mail.orders.payment-reminder', text: 'mail.orders.payment-reminder-text', with: [ 'order' => $this->order->loadMissing('items'), 'store' => $store, 'brand' => $brand, 'payUrl' => $brand->payUrl($this->order), 'orderUrl' => $brand->orderUrl($this->order), 'deadline' => $this->order->payment_expires_at ?->timezone('Asia/Kuala_Lumpur') ->locale($brand->malay ? 'ms' : 'en') ->translatedFormat('j F, g:i a'), ], ); } }