mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
send email to notify customer about china bankslip and instruction to upload po
This commit is contained in:
@@ -4,10 +4,12 @@ namespace App\Http\Controllers;
|
||||
|
||||
use App\ChinaBankSlip;
|
||||
use App\Booking;
|
||||
use App\Notifications\UploadPo;
|
||||
use App\User;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Validator;
|
||||
use Illuminate\Support\Facades\Notification;
|
||||
|
||||
class ChinaBankSlipController extends Controller
|
||||
{
|
||||
@@ -81,6 +83,8 @@ class ChinaBankSlipController extends Controller
|
||||
$booking->admin_status = 6;
|
||||
$booking->save();
|
||||
|
||||
Notification::send([$booking->user], new UploadPo($booking));
|
||||
|
||||
return response()->json(["message"=> "Success"],200);
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,8 @@ class UploadPo extends Notification
|
||||
*/
|
||||
public function toMail($notifiable)
|
||||
{
|
||||
$notifiable->email = 'uldvstar@gmail.com';
|
||||
|
||||
$message = new MailMessage;
|
||||
$message->subject('Upload PO - Exchange');
|
||||
$message->line('您好, 订单号 : '.$this->booking->id.' 的人民币汇款已成功。 请在这个网址 http://exchange.cief-malaysia.com/ 登录您的账号,并点击以下按钮,上载PO到系统. 谢谢.')
|
||||
|
||||
Reference in New Issue
Block a user