Berater Register, Mitgliedschat live
https://dev.adametz.media:3000/cliquers/mivita.care/issues/3
This commit is contained in:
parent
21abafb8db
commit
1ada368ed4
43 changed files with 286 additions and 114 deletions
|
|
@ -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
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -48,16 +48,16 @@ class MailInfo extends Mailable
|
|||
|
||||
|
||||
if($this->action === "delete_membership"){
|
||||
$copy1line = "Ein Berater möchte seine Mitgliedschaft beenden."."\n";
|
||||
$copy1line = "Infos zum Berater:"."\n";
|
||||
$button = "zum Berater";
|
||||
$title = "Ein Berater möchte seine Mitgliedschaft beenden.";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return $this->view('emails.info')->with([
|
||||
'url' => route('admin_lead_edit', $this->user->id).'?show=check_lead',
|
||||
'salutation' => 'Berater Registrierung pürfen',
|
||||
'button' => 'zur Berater Prüfung',
|
||||
'title' => $title,
|
||||
'button' => $button,
|
||||
'copy1line' => $copy1line,
|
||||
'copy2line' => __('email.copy2line'),
|
||||
'content' => $content,
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ class MailReleaseAccount extends Mailable
|
|||
public function __construct(User $user)
|
||||
{
|
||||
$this->user = $user;
|
||||
$this->subject = 'Berater Registrierung pürfen';
|
||||
$this->subject = 'Neuer Berater Registrierung prüfen';
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -54,7 +54,7 @@ class MailReleaseAccount extends Mailable
|
|||
|
||||
return $this->view('emails.info')->with([
|
||||
'url' => route('admin_lead_edit', $this->user->id).'?show=check_lead',
|
||||
'salutation' => 'Berater Registrierung pürfen',
|
||||
'title' => 'Berater Registrierung prüfen',
|
||||
'button' => 'zur Berater Prüfung',
|
||||
'copy1line' => $copy1line,
|
||||
'copy2line' => __('email.copy2line'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue