txaction = $txaction; $this->shopping_order = $shopping_order; $this->shopping_payment = $shopping_payment; $this->subject = __('Deine Bestellung auf mivita.care'); if($shopping_order->user_shop){ $this->subject = __('Deine Bestellung auf '.$shopping_order->user_shop->slug.'.mivita.care'); } } public function build() { $salutation = __('Dear customer').","; if($this->shopping_order->shopping_user){ $salutation = __('Hallo')." ".$this->shopping_order->shopping_user->billing_firstname." ".$this->shopping_order->shopping_user->billing_lastname.","; //make Adresse } if($this->txaction == 'paid'){ return $this->view('emails.checkout')->with([ 'salutation' => $salutation, 'copy1line' => __('vielen Dank für Deine Bestellung bei mivita.care.

Nachfolgend haben wir zur Kontrolle Deine Bestellung noch einmal aufgelistet.'), 'shopping_order' => $this->shopping_order, 'shopping_payment' => $this->shopping_payment, 'copy3line' => __('Bei Fragen sind wir jederzeit für Dich da.'), 'greetings' => __('Best regards'), 'sender' => __('your mivita.care team'), ]); }else{ return $this->view('emails.checkout_status')->with([ 'salutation' => $salutation, 'copy1line' => "Status zu Deiner Bestellung bei mivita.care", 'txactionn' => $this->txaction, 'shopping_order' => $this->shopping_order, 'shopping_payment' => $this->shopping_payment, 'copy3line' => __('Bei Fragen sind wir jederzeit für Dich da.'), 'greetings' => __('Best regards'), 'sender' => __('your mivita.care team'), ]); } } }