order = $order; } /** * Build the message. * * @return $this */ public function build() { $order = $this->order; $magasin = Magasin::find($order->timeslot->magasin->id); return $this->subject( \sprintf( 'Nouvelle commande de %s %s - %s', $order->customer->salarie->prenom, Str::upper($order->customer->salarie->nom), config('theme.site_name') ) )->view('emails.order-confirm-admin', compact('order', 'magasin')); } }