membership register
This commit is contained in:
parent
3711fcc8d0
commit
37cb2b06c7
38 changed files with 1261 additions and 463 deletions
|
|
@ -15,16 +15,18 @@ class MailCheckout extends Mailable
|
|||
public $txaction;
|
||||
public $shopping_order;
|
||||
public $shopping_payment;
|
||||
protected $send_link;
|
||||
|
||||
public $subject;
|
||||
public $data;
|
||||
|
||||
|
||||
public function __construct($txaction, $shopping_order, $shopping_payment)
|
||||
public function __construct($txaction, $shopping_order, $shopping_payment, $send_link)
|
||||
{
|
||||
$this->txaction = $txaction;
|
||||
$this->shopping_order = $shopping_order;
|
||||
$this->shopping_payment = $shopping_payment;
|
||||
$this->send_link = $send_link;
|
||||
|
||||
$this->subject = __('email.checkout_subject')." mivita.care";
|
||||
if($shopping_order->user_shop){
|
||||
|
|
@ -42,6 +44,11 @@ class MailCheckout extends Mailable
|
|||
//make Adresse
|
||||
}
|
||||
if($this->txaction === 'paid'){
|
||||
|
||||
|
||||
if($this->send_link){
|
||||
|
||||
}
|
||||
return $this->view('emails.checkout')->with([
|
||||
'salutation' => $salutation,
|
||||
'copy1line' => __('email.checkout_copy1line'),
|
||||
|
|
@ -50,6 +57,9 @@ class MailCheckout extends Mailable
|
|||
'copy3line' => __('email.checkout_copy3line'),
|
||||
'greetings' => __('email.greetings'),
|
||||
'sender' => __('email.sender'),
|
||||
'send_link' => $this->send_link,
|
||||
'url' => Util::getMyMivitaUrl(),
|
||||
'button' => Util::getMyMivitaUrl(false),
|
||||
]);
|
||||
}else{
|
||||
return $this->view('emails.checkout_status')->with([
|
||||
|
|
@ -61,6 +71,7 @@ class MailCheckout extends Mailable
|
|||
'copy3line' => __('email.checkout_copy3line'),
|
||||
'greetings' => __('email.greetings'),
|
||||
'sender' => __('email.sender'),
|
||||
'send_link' => false,
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue