Edit / PDF / Mail / ->Leads
This commit is contained in:
parent
5d55e5be3f
commit
66ca252bfa
43 changed files with 2915 additions and 76 deletions
|
|
@ -9,6 +9,7 @@ use App\Models\EmailTemplate;
|
|||
use App\Models\EmailTemplateDir;
|
||||
use App\Services\Booking;
|
||||
use App\Services\BookingFewo;
|
||||
use App\Services\Lead;
|
||||
use App\Services\Util;
|
||||
use Request;
|
||||
|
||||
|
|
@ -22,6 +23,8 @@ class EmailsController extends Controller
|
|||
{
|
||||
$this->identifier_booking_file = 'booking-email-file';
|
||||
$this->identifier_fewo_file = 'fewo-email-file';
|
||||
$this->identifier_lead_file = 'lead-email-file';
|
||||
|
||||
$this->middleware('admin');
|
||||
}
|
||||
|
||||
|
|
@ -36,8 +39,11 @@ class EmailsController extends Controller
|
|||
'customer_mail_dirs' => Booking::getCustomerMailDirs(),
|
||||
'identifier_booking_file' => $this->identifier_booking_file,
|
||||
'identifier_fewo_file' => $this->identifier_fewo_file,
|
||||
'identifier_lead_file' => $this->identifier_lead_file,
|
||||
'fewo_email_files' => CMSContent::where('identifier', '=', $this->identifier_fewo_file)->get()->sortByDesc('pos'),
|
||||
'customer_fewo_mail_dirs' => BookingFewo::getCustomerMailDirs(),
|
||||
'lead_email_files' => CMSContent::where('identifier', '=', $this->identifier_lead_file)->get()->sortByDesc('pos'),
|
||||
'customer_lead_mail_dirs' => Lead::getCustomerMailDirs(),
|
||||
'step' => $step
|
||||
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue