Cocker Setup
This commit is contained in:
parent
8fdaa0ba1d
commit
8c11130b5d
191 changed files with 8152 additions and 18186 deletions
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use App\User;
|
||||
|
|
@ -24,34 +25,34 @@ class MailAutoReleaseAccount extends Mailable
|
|||
|
||||
public function build()
|
||||
{
|
||||
$content = __(strtoupper($this->user->account->salutation))." ";
|
||||
$content .= $this->user->account->first_name." ".$this->user->account->last_name."\n";
|
||||
$content .= $this->user->account->address."\n";
|
||||
$content .= $this->user->account->zipcode." ".$this->user->account->city."\n";
|
||||
$content .= $this->user->account->country_id ? $this->user->account->country->de."\n\n" : "\n\n";
|
||||
if($this->user->account->phone){
|
||||
$content = __(strtoupper($this->user->account->salutation)) . " ";
|
||||
$content .= $this->user->account->first_name . " " . $this->user->account->last_name . "\n";
|
||||
$content .= $this->user->account->address . "\n";
|
||||
$content .= $this->user->account->zipcode . " " . $this->user->account->city . "\n";
|
||||
$content .= $this->user->account->country_id ? $this->user->account->country->de . "\n\n" : "\n\n";
|
||||
if ($this->user->account->phone) {
|
||||
$content .= "Telefon: ";
|
||||
$content .= $this->user->account->pre_phone_id ? $this->user->account->pre_phone->phone." " : " ";
|
||||
$content .= $this->user->account->pre_phone_id ? $this->user->account->pre_phone->phone . " " : " ";
|
||||
$content .= $this->user->account->phone;
|
||||
}
|
||||
if($this->user->account->mobil){
|
||||
if ($this->user->account->mobil) {
|
||||
$content .= "Mobil: ";
|
||||
$content .= $this->user->account->pre_mobil_id ? $this->user->account->pre_mobil->phone." " : " ";
|
||||
$content .= $this->user->account->pre_mobil_id ? $this->user->account->pre_mobil->phone . " " : " ";
|
||||
$content .= $this->user->account->mobil;
|
||||
}
|
||||
$content .= "E-Mail: ".$this->user->email;
|
||||
$content .= "E-Mail: " . $this->user->email;
|
||||
|
||||
|
||||
$copy1line = "Ein neuer Berater hat sich registriert und wurde automatisch freigeschaltet. Seine Daten müssen nachträglich Überprüfung werden:"."\n";
|
||||
$copy1line .= "+ Überprüfung der Ausweisdaten"."\n";
|
||||
$copy1line .= "+ Überprüfung des Gewerbenachweises"."\n";
|
||||
$copy1line .= "+ Eintrag Account ID"."\n";
|
||||
$copy1line .= "+ Überprüfung / Kenntnisnahme Sponsor"."\n";
|
||||
$copy1line .= "+ Überprüfung der Rechnungsdaten"."\n";
|
||||
$copy1line .= 'Sollte Daten nicht vollständig sein, bitte Kontakt zum Berater aufnehmen.'."\n";
|
||||
$copy1line = "Ein neuer Berater hat sich registriert und wurde automatisch freigeschaltet. Seine Daten müssen nachträglich Überprüfung werden:" . "\n";
|
||||
$copy1line .= "+ Überprüfung der Ausweisdaten" . "\n";
|
||||
$copy1line .= "+ Überprüfung des Gewerbenachweises" . "\n";
|
||||
$copy1line .= "+ Eintrag Account ID" . "\n";
|
||||
$copy1line .= "+ Überprüfung / Kenntnisnahme Sponsor" . "\n";
|
||||
$copy1line .= "+ Überprüfung der Rechnungsdaten" . "\n";
|
||||
$copy1line .= 'Sollte Daten nicht vollständig sein, bitte Kontakt zum Berater aufnehmen.' . "\n";
|
||||
|
||||
return $this->view('emails.info')->with([
|
||||
'url' => config('app.url_crm') . '/admin/lead/edit/' . $this->user->id . '?show=check_lead',
|
||||
'url' => \App\Services\Util::getMyMivitaUrl() . '/admin/lead/edit/' . $this->user->id . '?show=check_lead',
|
||||
'title' => 'Berater Registrierung prüfen',
|
||||
'button' => 'zur Berater Prüfung',
|
||||
'copy1line' => $copy1line,
|
||||
|
|
@ -59,4 +60,4 @@ class MailAutoReleaseAccount extends Mailable
|
|||
'content' => $content,
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use App\User;
|
||||
|
|
@ -24,13 +25,13 @@ class MailInfo extends Mailable
|
|||
$this->action = $action;
|
||||
$this->data = $data;
|
||||
|
||||
if($this->action === "delete_membership"){
|
||||
if ($this->action === "delete_membership") {
|
||||
$this->subject = 'Mitgliedschaft beenden - beantragt';
|
||||
}
|
||||
if($this->action === "check_is_like_customer"){
|
||||
if ($this->action === "check_is_like_customer") {
|
||||
$this->subject = 'Kunden überprüfen - Kundenhoheit';
|
||||
}
|
||||
if($this->action === "change_is_like_customer"){
|
||||
if ($this->action === "change_is_like_customer") {
|
||||
$this->subject = 'Kunden erneut überprüfen - Kundenhoheit';
|
||||
}
|
||||
}
|
||||
|
|
@ -40,68 +41,68 @@ class MailInfo extends Mailable
|
|||
{
|
||||
$content = "";
|
||||
|
||||
if($this->action === "delete_membership"){
|
||||
$content .= __(strtoupper($this->user->account->salutation))." ";
|
||||
$content .= $this->user->account->first_name." ".$this->user->account->last_name."\n";
|
||||
$content .= $this->user->account->address."\n";
|
||||
$content .= $this->user->account->zipcode." ".$this->user->account->city."\n";
|
||||
$content .= $this->user->account->country_id ? $this->user->account->country->de."\n\n" : "\n\n";
|
||||
if($this->user->account->phone){
|
||||
if ($this->action === "delete_membership") {
|
||||
$content .= __(strtoupper($this->user->account->salutation)) . " ";
|
||||
$content .= $this->user->account->first_name . " " . $this->user->account->last_name . "\n";
|
||||
$content .= $this->user->account->address . "\n";
|
||||
$content .= $this->user->account->zipcode . " " . $this->user->account->city . "\n";
|
||||
$content .= $this->user->account->country_id ? $this->user->account->country->de . "\n\n" : "\n\n";
|
||||
if ($this->user->account->phone) {
|
||||
$content .= "Telefon: ";
|
||||
$content .= $this->user->account->pre_phone_id ? $this->user->account->pre_phone->phone." " : " ";
|
||||
$content .= $this->user->account->pre_phone_id ? $this->user->account->pre_phone->phone . " " : " ";
|
||||
$content .= $this->user->account->phone;
|
||||
}
|
||||
if($this->user->account->mobil){
|
||||
if ($this->user->account->mobil) {
|
||||
$content .= "Mobil: ";
|
||||
$content .= $this->user->account->pre_mobil_id ? $this->user->account->pre_mobil->phone." " : " ";
|
||||
$content .= $this->user->account->pre_mobil_id ? $this->user->account->pre_mobil->phone . " " : " ";
|
||||
$content .= $this->user->account->mobil;
|
||||
}
|
||||
$content .= "E-Mail: ".$this->user->email;
|
||||
$content .= "E-Mail: " . $this->user->email;
|
||||
|
||||
$copy1line = "Infos zum Berater:"."\n";
|
||||
$copy1line = "Infos zum Berater:" . "\n";
|
||||
$button = "zum Berater";
|
||||
$title = "Ein Berater möchte seine Mitgliedschaft beenden.";
|
||||
$url = config('app.url_crm') . '/admin/lead/edit/' . $this->user->id . '?show=check_lead';
|
||||
$url = \App\Services\Util::getMyMivitaUrl() . '/admin/lead/edit/' . $this->user->id . '?show=check_lead';
|
||||
}
|
||||
|
||||
if($this->action === "check_is_like_customer") {
|
||||
$copy1line = "Hier geht es zum Kunden:"."\n";
|
||||
if ($this->action === "check_is_like_customer") {
|
||||
$copy1line = "Hier geht es zum Kunden:" . "\n";
|
||||
$button = "zum Kunden";
|
||||
$title = "Ein Kunden muss überprüft werden und einem Berater zugeordnet werden, da die Adresse nicht eindeutig ist.";
|
||||
$url = config('app.url_crm') . '/admin/customer/detail/' . $this->user->id;
|
||||
$content .= $this->user ? 'Firma: '.$this->user->billing_company."\n" : '';
|
||||
$content .= \App\Services\HTMLHelper::getSalutationLang($this->user->billing_salutation)." ";
|
||||
$content .= $this->user->billing_firstname." ";
|
||||
$content .= $this->user->billing_lastname."\n";
|
||||
$url = \App\Services\Util::getMyMivitaUrl() . '/admin/customer/detail/' . $this->user->id;
|
||||
$content .= $this->user ? 'Firma: ' . $this->user->billing_company . "\n" : '';
|
||||
$content .= \App\Services\HTMLHelper::getSalutationLang($this->user->billing_salutation) . " ";
|
||||
$content .= $this->user->billing_firstname . " ";
|
||||
$content .= $this->user->billing_lastname . "\n";
|
||||
$content .= $this->user->billing_address;
|
||||
$content .= $this->user->billing_address_2 ? '/ '.$this->user->billing_address_2."\n" : "\n";
|
||||
$content .= $this->user->billing_zipcode." ";
|
||||
$content .= $this->user->billing_city."\n";
|
||||
$content .= $this->user->billing_email."\n";
|
||||
$content .= $this->user->billing_phone."\n";
|
||||
$content .= $this->user->billing_address_2 ? '/ ' . $this->user->billing_address_2 . "\n" : "\n";
|
||||
$content .= $this->user->billing_zipcode . " ";
|
||||
$content .= $this->user->billing_city . "\n";
|
||||
$content .= $this->user->billing_email . "\n";
|
||||
$content .= $this->user->billing_phone . "\n";
|
||||
$content .= $this->user->billing_country->getLocated();
|
||||
}
|
||||
|
||||
if($this->action === "change_is_like_customer"){
|
||||
$copy1line = "Hier geht es zum Kunden:"."\n";
|
||||
if ($this->action === "change_is_like_customer") {
|
||||
$copy1line = "Hier geht es zum Kunden:" . "\n";
|
||||
$button = "zum Kunden";
|
||||
$title = "Ein Kunden muss erneut überprüft werden, da bei einer Änderung eine bestehende Kundenhoheit gefunden wurde.";
|
||||
$url = config('app.url_crm') . '/admin/customer/detail/' . $this->user->id;
|
||||
$content .= "Folgende Daten für die Kundenhoheit wurden geändert:"."\n";
|
||||
foreach ($this->data as $key=>$value){
|
||||
$content .= $this->user->{$key}." => ".$value."\n";
|
||||
$url = \App\Services\Util::getMyMivitaUrl() . '/admin/customer/detail/' . $this->user->id;
|
||||
$content .= "Folgende Daten für die Kundenhoheit wurden geändert:" . "\n";
|
||||
foreach ($this->data as $key => $value) {
|
||||
$content .= $this->user->{$key} . " => " . $value . "\n";
|
||||
}
|
||||
$content .= "\n"."\n"."Rechnungsadresse des Kunden vor der Änderung:"."\n";
|
||||
$content .= $this->user ? 'Firma: '.$this->user->billing_company."\n" : '';
|
||||
$content .= \App\Services\HTMLHelper::getSalutationLang($this->user->billing_salutation)." ";
|
||||
$content .= $this->user->billing_firstname." ";
|
||||
$content .= $this->user->billing_lastname."\n";
|
||||
$content .= "\n" . "\n" . "Rechnungsadresse des Kunden vor der Änderung:" . "\n";
|
||||
$content .= $this->user ? 'Firma: ' . $this->user->billing_company . "\n" : '';
|
||||
$content .= \App\Services\HTMLHelper::getSalutationLang($this->user->billing_salutation) . " ";
|
||||
$content .= $this->user->billing_firstname . " ";
|
||||
$content .= $this->user->billing_lastname . "\n";
|
||||
$content .= $this->user->billing_address;
|
||||
$content .= $this->user->billing_address_2 ? '/ '.$this->user->billing_address_2."\n" : "\n";
|
||||
$content .= $this->user->billing_zipcode." ";
|
||||
$content .= $this->user->billing_city."\n";
|
||||
$content .= $this->user->billing_email."\n";
|
||||
$content .= $this->user->billing_phone."\n";
|
||||
$content .= $this->user->billing_address_2 ? '/ ' . $this->user->billing_address_2 . "\n" : "\n";
|
||||
$content .= $this->user->billing_zipcode . " ";
|
||||
$content .= $this->user->billing_city . "\n";
|
||||
$content .= $this->user->billing_email . "\n";
|
||||
$content .= $this->user->billing_phone . "\n";
|
||||
$content .= $this->user->billing_country->getLocated();
|
||||
}
|
||||
return $this->view('emails.info')->with([
|
||||
|
|
@ -113,4 +114,4 @@ class MailInfo extends Mailable
|
|||
'content' => $content,
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use App\User;
|
||||
|
|
@ -24,35 +25,35 @@ class MailReleaseAccount extends Mailable
|
|||
|
||||
public function build()
|
||||
{
|
||||
$content = __(strtoupper($this->user->account->salutation))." ";
|
||||
$content .= $this->user->account->first_name." ".$this->user->account->last_name."\n";
|
||||
$content .= $this->user->account->address."\n";
|
||||
$content .= $this->user->account->zipcode." ".$this->user->account->city."\n";
|
||||
$content .= $this->user->account->country_id ? $this->user->account->country->de."\n\n" : "\n\n";
|
||||
if($this->user->account->phone){
|
||||
$content = __(strtoupper($this->user->account->salutation)) . " ";
|
||||
$content .= $this->user->account->first_name . " " . $this->user->account->last_name . "\n";
|
||||
$content .= $this->user->account->address . "\n";
|
||||
$content .= $this->user->account->zipcode . " " . $this->user->account->city . "\n";
|
||||
$content .= $this->user->account->country_id ? $this->user->account->country->de . "\n\n" : "\n\n";
|
||||
if ($this->user->account->phone) {
|
||||
$content .= "Telefon: ";
|
||||
$content .= $this->user->account->pre_phone_id ? $this->user->account->pre_phone->phone." " : " ";
|
||||
$content .= $this->user->account->pre_phone_id ? $this->user->account->pre_phone->phone . " " : " ";
|
||||
$content .= $this->user->account->phone;
|
||||
}
|
||||
if($this->user->account->mobil){
|
||||
if ($this->user->account->mobil) {
|
||||
$content .= "Mobil: ";
|
||||
$content .= $this->user->account->pre_mobil_id ? $this->user->account->pre_mobil->phone." " : " ";
|
||||
$content .= $this->user->account->pre_mobil_id ? $this->user->account->pre_mobil->phone . " " : " ";
|
||||
$content .= $this->user->account->mobil;
|
||||
}
|
||||
$content .= "E-Mail: ".$this->user->email;
|
||||
$content .= "E-Mail: " . $this->user->email;
|
||||
|
||||
|
||||
$copy1line = "Ein neuer Berater hat sich registriert und wartet auf die Überprüfung und Freigabe seiner Daten:"."\n";
|
||||
$copy1line .= "+ Überprüfung der Ausweisdaten"."\n";
|
||||
$copy1line .= "+ Überprüfung des Gewerbenachweises"."\n";
|
||||
$copy1line .= "+ Eintrag Account ID"."\n";
|
||||
$copy1line .= "+ Überprüfung / Kenntnisnahme Sponsor"."\n";
|
||||
$copy1line .= "+ Überprüfung der Rechnungsdaten"."\n";
|
||||
$copy1line .= 'Nach erfolgreicher Überprüfung mit dem Button „Daten vollständig => Berater freischalten“ den Berater freischalten.'."\n";
|
||||
$copy1line .= 'Der Berater erhält eine Mail, dass sein Account freigeschaltet wurde. Der Vertrag wird automatisch mit den Daten des Vertriebspartners erstellt.'."\n";
|
||||
$copy1line = "Ein neuer Berater hat sich registriert und wartet auf die Überprüfung und Freigabe seiner Daten:" . "\n";
|
||||
$copy1line .= "+ Überprüfung der Ausweisdaten" . "\n";
|
||||
$copy1line .= "+ Überprüfung des Gewerbenachweises" . "\n";
|
||||
$copy1line .= "+ Eintrag Account ID" . "\n";
|
||||
$copy1line .= "+ Überprüfung / Kenntnisnahme Sponsor" . "\n";
|
||||
$copy1line .= "+ Überprüfung der Rechnungsdaten" . "\n";
|
||||
$copy1line .= 'Nach erfolgreicher Überprüfung mit dem Button „Daten vollständig => Berater freischalten“ den Berater freischalten.' . "\n";
|
||||
$copy1line .= 'Der Berater erhält eine Mail, dass sein Account freigeschaltet wurde. Der Vertrag wird automatisch mit den Daten des Vertriebspartners erstellt.' . "\n";
|
||||
|
||||
return $this->view('emails.info')->with([
|
||||
'url' => config('app.url_crm') . '/admin/lead/edit/' . $this->user->id . '?show=check_lead',
|
||||
'url' => \App\Services\Util::getMyMivitaUrl() . '/admin/lead/edit/' . $this->user->id . '?show=check_lead',
|
||||
'title' => 'Berater Registrierung prüfen',
|
||||
'button' => 'zur Berater Prüfung',
|
||||
'copy1line' => $copy1line,
|
||||
|
|
@ -60,4 +61,4 @@ class MailReleaseAccount extends Mailable
|
|||
'content' => $content,
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use App\User;
|
||||
|
|
@ -23,32 +24,32 @@ class MailReleaseDocument extends Mailable
|
|||
|
||||
public function build()
|
||||
{
|
||||
$content = __(strtoupper($this->user->account->salutation))." ";
|
||||
$content .= $this->user->account->first_name." ".$this->user->account->last_name."\n";
|
||||
$content .= $this->user->account->address."\n";
|
||||
$content .= $this->user->account->zipcode." ".$this->user->account->city."\n";
|
||||
$content .= $this->user->account->country_id ? $this->user->account->country->de."\n\n" : "\n\n";
|
||||
$content .= "E-Mail: ".$this->user->email;
|
||||
$content = __(strtoupper($this->user->account->salutation)) . " ";
|
||||
$content .= $this->user->account->first_name . " " . $this->user->account->last_name . "\n";
|
||||
$content .= $this->user->account->address . "\n";
|
||||
$content .= $this->user->account->zipcode . " " . $this->user->account->city . "\n";
|
||||
$content .= $this->user->account->country_id ? $this->user->account->country->de . "\n\n" : "\n\n";
|
||||
$content .= "E-Mail: " . $this->user->email;
|
||||
|
||||
|
||||
$copy1line = "Ein Berater hat Daten zum Gewerbenachweis geändert, bitte um Prüfung:"."\n\n";
|
||||
$copy1line = "Ein Berater hat Daten zum Gewerbenachweis geändert, bitte um Prüfung:" . "\n\n";
|
||||
|
||||
$business_license_choose = $this->user->account->getNotice('business_license');
|
||||
if($business_license_choose === 'now'){
|
||||
$copy1line .= "+ Gewerbeschein jetzt zur Freigabe"."\n\n";
|
||||
if ($business_license_choose === 'now') {
|
||||
$copy1line .= "+ Gewerbeschein jetzt zur Freigabe" . "\n\n";
|
||||
}
|
||||
if($business_license_choose === 'later'){
|
||||
$copy1line .= "+ Ich reiche meinen Gewerbeschein innerhalb der nächsten 4 Wochen nach"."\n\n";
|
||||
if ($business_license_choose === 'later') {
|
||||
$copy1line .= "+ Ich reiche meinen Gewerbeschein innerhalb der nächsten 4 Wochen nach" . "\n\n";
|
||||
}
|
||||
if($business_license_choose === 'non'){
|
||||
$copy1line .= "+ Ich benötige keinen Gewerbeschein"."\n";
|
||||
$copy1line .= "+ Begründung: ".$this->user->account->getNotice('business_license_reason')."\n\n";
|
||||
if ($business_license_choose === 'non') {
|
||||
$copy1line .= "+ Ich benötige keinen Gewerbeschein" . "\n";
|
||||
$copy1line .= "+ Begründung: " . $this->user->account->getNotice('business_license_reason') . "\n\n";
|
||||
}
|
||||
|
||||
$copy1line .= 'Bei fehlerhafter Angabe nimm bitte kontakt mit dem Berater auf.'."\n";
|
||||
|
||||
$copy1line .= 'Bei fehlerhafter Angabe nimm bitte kontakt mit dem Berater auf.' . "\n";
|
||||
|
||||
return $this->view('emails.info')->with([
|
||||
'url' => config('app.url_crm') . '/admin/lead/edit/' . $this->user->id . '?show=check_lead',
|
||||
'url' => \App\Services\Util::getMyMivitaUrl() . '/admin/lead/edit/' . $this->user->id . '?show=check_lead',
|
||||
'title' => 'Berater Unterlagen prüfen',
|
||||
'button' => 'zur Berater Prüfung',
|
||||
'copy1line' => $copy1line,
|
||||
|
|
@ -56,4 +57,4 @@ class MailReleaseDocument extends Mailable
|
|||
'content' => $content,
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue