This commit is contained in:
baodev0
2026-09-23 15:17:18 +07:00
parent cd38c5d6d0
commit 82a71244ca
107 changed files with 3332 additions and 3306 deletions
@@ -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'));