Berater Register, Mitgliedschat live

https://dev.adametz.media:3000/cliquers/mivita.care/issues/3
This commit is contained in:
Kevin Adametz 2020-03-09 14:45:09 +01:00
parent 21abafb8db
commit 1ada368ed4
43 changed files with 286 additions and 114 deletions

View file

@ -12,21 +12,23 @@ class MailCheckout extends Mailable
{
use Queueable, SerializesModels;
public $txaction;
public $shopping_order;
public $shopping_payment;
protected $txaction;
protected $shopping_order;
protected $shopping_payment;
protected $send_link;
protected $mode;
public $subject;
public $data;
public function __construct($txaction, $shopping_order, $shopping_payment, $send_link)
public function __construct($txaction, $shopping_order, $shopping_payment, $send_link, $mode)
{
$this->txaction = $txaction;
$this->shopping_order = $shopping_order;
$this->shopping_payment = $shopping_payment;
$this->send_link = $send_link;
$this->mode = $mode;
$this->subject = __('email.checkout_subject')." mivita.care";
if($shopping_order->user_shop){
@ -45,7 +47,6 @@ class MailCheckout extends Mailable
}
if($this->txaction === 'paid'){
if($this->send_link){
}
@ -60,6 +61,7 @@ class MailCheckout extends Mailable
'send_link' => $this->send_link,
'url' => Util::getMyMivitaUrl(),
'button' => Util::getMyMivitaUrl(false),
'mode' => $this->mode
]);
}else{
return $this->view('emails.checkout_status')->with([
@ -72,6 +74,7 @@ class MailCheckout extends Mailable
'greetings' => __('email.greetings'),
'sender' => __('email.sender'),
'send_link' => false,
'mode' => $this->mode
]);
}