Gửi email thông báo cho admin khi tạo đơn, trả email thông báo đơn được …
This commit is contained in:
parent
c4803c5c96
commit
d53a60382d
|
|
@ -238,9 +238,6 @@ class TicketController extends Controller
|
||||||
// Send notification email to admin (list)
|
// Send notification email to admin (list)
|
||||||
$admins = Admin::where('permission', 'admin')->get();
|
$admins = Admin::where('permission', 'admin')->get();
|
||||||
foreach ($admins as $key => $value) {
|
foreach ($admins as $key => $value) {
|
||||||
if ($value->email == "admin@apactech.io") {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
$data = array(
|
$data = array(
|
||||||
"email_template" => "email.notification_tickets",
|
"email_template" => "email.notification_tickets",
|
||||||
"email" => $user->email,
|
"email" => $user->email,
|
||||||
|
|
@ -383,12 +380,6 @@ class TicketController extends Controller
|
||||||
$this->createOrUpdateRecordForCurrentMonth($month, $year);
|
$this->createOrUpdateRecordForCurrentMonth($month, $year);
|
||||||
|
|
||||||
// $admins = Admin::where('permission', 'admin')->get();
|
// $admins = Admin::where('permission', 'admin')->get();
|
||||||
// foreach ($admins as $key => $value) {
|
|
||||||
// if ($value->email == "admin@apactech.io") {
|
|
||||||
// continue;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// }
|
|
||||||
// Send notification email to users
|
// Send notification email to users
|
||||||
$data = array(
|
$data = array(
|
||||||
"email_template" => "email.notification_tickets_user",
|
"email_template" => "email.notification_tickets_user",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue