numero_commande = $order->ref; $this->date_commande = $order->created_at->format('d/m/Y H:i'); $this->montant = number_format($order->total_shipped, 2, ',', ' ').' €'; $this->client_nom = $order->customer ? $order->customer->last_name.' '.$order->customer->first_name : 'Client supprimé'; $this->client_email = $order->customer->email ?? 'inconnu'; $this->reference_paiement = $reference; } public function envelope() { return new Envelope( from: new Address('boutique@jardinenvie.com', 'Jardin\'en\'Vie'), subject: $this->subject, ); } }