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
|
|
@ -2,20 +2,22 @@
|
|||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Carbon;
|
||||
use Request;
|
||||
use Response;
|
||||
use App\Services\Util;
|
||||
use App\Models\Booking;
|
||||
use App\Models\Customer;
|
||||
use App\Models\CustomerFewoMail;
|
||||
use App\Models\CustomerFile;
|
||||
use App\Models\CustomerMail;
|
||||
use App\Models\EmailTemplate;
|
||||
use App\Repositories\CustomerFewoMailRepository;
|
||||
use App\Repositories\CustomerMailRepository;
|
||||
use App\Repositories\CustomerFileRepository;
|
||||
use App\Services\Util;
|
||||
use Carbon;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
use App\Services\Placeholder;
|
||||
use App\Models\CustomerFewoMail;
|
||||
use Illuminate\Support\Facades\URL;
|
||||
use Request;
|
||||
use Response;
|
||||
use App\Repositories\CustomerFileRepository;
|
||||
use App\Repositories\CustomerMailRepository;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
use App\Repositories\CustomerFewoMailRepository;
|
||||
|
||||
class CustomerMailController extends Controller
|
||||
{
|
||||
|
|
@ -216,7 +218,13 @@ class CustomerMailController extends Controller
|
|||
$data = Request::all();
|
||||
$ret = "";
|
||||
$status = false;
|
||||
if(Request::ajax()){
|
||||
if(Request::ajax() && isset($data['action'])){
|
||||
if($data['action'] === 'load_preview_mail'){
|
||||
$booking = Booking::findOrFail($data['booking_id']);
|
||||
$ret = Placeholder::replaceBooking($booking, $data['content']);
|
||||
$data['subject'] = Placeholder::replaceBooking($booking, $data['subject']);
|
||||
$status = 'success';
|
||||
}
|
||||
if($data['action'] === 'toggle_important'){
|
||||
$customer_mail = CustomerMail::find($data['id']);
|
||||
$customer_mail->important = ($customer_mail->important ? false : true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue