update
This commit is contained in:
@@ -527,8 +527,9 @@ class CustomerController extends Controller
|
||||
if (isset($request->email_id)) {
|
||||
$template = $this->mailRepository->find($request->get('email_id'));
|
||||
if ($template) {
|
||||
$title = $template->subject;
|
||||
return view("emails.render", compact('title', 'template'));
|
||||
// Blade emails.render đã bị xoá cùng toàn bộ view email — nội dung mail đã là
|
||||
// HTML hoàn chỉnh render từ tbl.template, trả thẳng ra là đủ.
|
||||
return response($template->message ?? '', 200, ['Content-Type' => 'text/html; charset=UTF-8']);
|
||||
}
|
||||
}
|
||||
return view('administrator.pages.customer.mail', compact('userid', 'title', 'emails'));
|
||||
|
||||
Reference in New Issue
Block a user