add email invoice

parent 74078318
...@@ -208,6 +208,8 @@ public function store(Request $request) { ...@@ -208,6 +208,8 @@ public function store(Request $request) {
'totalHarga' => $totalHarga 'totalHarga' => $totalHarga
]; ];
SendMail::dispatch($data, 'email.invoice', $data['registrasi']->email, 'registrasi', 'email_regis_sent_at');
return view('invoice', $data)->with('success', 'Data saved successfully'); return view('invoice', $data)->with('success', 'Data saved successfully');
} }
...@@ -264,6 +266,8 @@ public function updatePembayaran(Request $request, $va) ...@@ -264,6 +266,8 @@ public function updatePembayaran(Request $request, $va)
'tanggal_bayar' => Carbon::now() 'tanggal_bayar' => Carbon::now()
]); ]);
//SendMail::dispatch($data, 'email.invoice', $data['registrasi']->email, 'registrasi', 'email_regis_sent_at');
return response([ return response([
'status' => 200, 'status' => 200,
'message' => 'success' 'message' => 'success'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment