Mehrere Tickets 49, 50, 51, 52, 53
This commit is contained in:
parent
ae70577289
commit
e3495be8b8
61 changed files with 1904 additions and 344 deletions
|
|
@ -250,8 +250,19 @@ class CustomerMailRepository extends BaseRepository {
|
|||
$value->customers[$key] = $val;
|
||||
}
|
||||
|
||||
}else{
|
||||
if(isset($value->replay_email)){
|
||||
if($value->customer_mail_dir < 10){ // && $value->lead_mail_subdir > 0
|
||||
$customer_mail_dir = \App\Services\Booking::getCustomerMailDir($value->customer_mail_dir);
|
||||
$contact_emails = \App\Services\Booking::getCustomerMailEmails($customer_mail_dir, $value->customer_mail_subdir);
|
||||
if($contact_emails && count($contact_emails) > 0) {
|
||||
$value->replay_email = array_shift($contact_emails);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return $value;
|
||||
return $value;
|
||||
}
|
||||
|
||||
public static function loadModal($data)
|
||||
|
|
@ -261,6 +272,7 @@ class CustomerMailRepository extends BaseRepository {
|
|||
$value->subtitle = "";
|
||||
$value->url = "";
|
||||
$value->recipient = "";
|
||||
$value->show_move_dirs = true;
|
||||
$value->cc = "";
|
||||
$value->bcc = "";
|
||||
$value->lead_title_id = "";
|
||||
|
|
@ -272,6 +284,9 @@ class CustomerMailRepository extends BaseRepository {
|
|||
if (isset($data['customer_mail_id']) && $customer_mail = CustomerMail::find($data['customer_mail_id'])) {
|
||||
$value->url = $data['url'];
|
||||
$value->title = "E-Mail Ansicht";
|
||||
if(isset($data['preview']) && $data['preview']){
|
||||
$value->show_move_dirs = false;
|
||||
}
|
||||
return view("customer.mail.modal-show-mail", compact('data', 'value', 'customer_mail'))->render();
|
||||
}
|
||||
}
|
||||
|
|
@ -377,12 +392,12 @@ class CustomerMailRepository extends BaseRepository {
|
|||
$value->subtitle = "Die E-Mail wird im System gespeichert.";
|
||||
if($data['id'] === 'reply-save'){
|
||||
$value->subtitle = "Die E-Mail wird im System als Antwort gespeichert.";
|
||||
|
||||
}
|
||||
$value->url = $data['url'];
|
||||
$value->show = 'reply';
|
||||
$value->customer_mail_dir = isset($data['customer_mail_dir']) ? $data['customer_mail_dir'] : 0;
|
||||
$value->customer_mail_subdir = isset($data['customer_mail_subdir']) ? $data['customer_mail_subdir'] : 0;
|
||||
$value->replay_email = $value->booking->customer->email;
|
||||
|
||||
$value = self::prepareContactMails($value);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue