Mails previews, Lead Passolution, Lead Country Files, LeadParticipant
This commit is contained in:
parent
5e3bd3a1ba
commit
ae70577289
28 changed files with 596 additions and 97 deletions
|
|
@ -11,6 +11,7 @@ use App\Models\LeadFile;
|
|||
use App\Models\LeadMail;
|
||||
|
||||
use App\Models\EmailTemplate;
|
||||
use App\Services\Placeholder;
|
||||
use Illuminate\Support\Facades\URL;
|
||||
use App\Models\TravelUserBookingFewo;
|
||||
use App\Repositories\LeadFileRepository;
|
||||
|
|
@ -53,8 +54,6 @@ class LeadMailController extends Controller
|
|||
\Session()->flash('alert-success', __('E-Mail weitergeleitet'));
|
||||
|
||||
}
|
||||
|
||||
|
||||
return back();
|
||||
}
|
||||
|
||||
|
|
@ -68,7 +67,6 @@ class LeadMailController extends Controller
|
|||
return back();
|
||||
}
|
||||
|
||||
|
||||
public function loadModal(){
|
||||
$data = Request::all();
|
||||
$ret = "";
|
||||
|
|
@ -184,7 +182,13 @@ class LeadMailController extends Controller
|
|||
$data = Request::all();
|
||||
$ret = "";
|
||||
$status = false;
|
||||
if(Request::ajax()){
|
||||
if(Request::ajax() && isset($data['action'])){
|
||||
if($data['action'] === 'load_preview_mail'){
|
||||
$lead = Lead::findOrFail($data['lead_id']);
|
||||
$ret = Placeholder::replaceLead($lead, $data['content']);
|
||||
$data['subject'] = Placeholder::replaceLead($lead, $data['subject']);
|
||||
$status = 'success';
|
||||
}
|
||||
if($data['action'] === 'toggle_important'){
|
||||
$lead_mail = LeadMail::find($data['id']);
|
||||
$lead_mail->important = ($lead_mail->important ? false : true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue