add email invoice

parent 74078318
......@@ -208,6 +208,8 @@ public function store(Request $request) {
'totalHarga' => $totalHarga
];
SendMail::dispatch($data, 'email.invoice', $data['registrasi']->email, 'registrasi', 'email_regis_sent_at');
return view('invoice', $data)->with('success', 'Data saved successfully');
}
......@@ -264,6 +266,8 @@ public function updatePembayaran(Request $request, $va)
'tanggal_bayar' => Carbon::now()
]);
//SendMail::dispatch($data, 'email.invoice', $data['registrasi']->email, 'registrasi', 'email_regis_sent_at');
return response([
'status' => 200,
'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