diff --git a/app/Http/Controllers/SettingController.php b/app/Http/Controllers/SettingController.php
index 3c821b7..d767659 100644
--- a/app/Http/Controllers/SettingController.php
+++ b/app/Http/Controllers/SettingController.php
@@ -672,11 +672,11 @@ class SettingController extends Controller
Setting::insert(['type' => 'certificate_template_details', 'description' => $path]);
}
- $certificate_builder_content = get_settings('certificate_builder_content');
- if ($certificate_builder_content) {
+ $certificate_builder_content_details = get_settings('certificate_builder_content_details');
+ if ($certificate_builder_content_details) {
// Use regular expression to replace the image source
- $modifiedHtml = preg_replace('/(
]+src=")([^"]+)(")/', '$1' . get_image($path) . '$3', $certificate_builder_content);
- Setting::where('type', 'certificate_builder_content')->update(['description' => $modifiedHtml]);
+ $modifiedHtml = preg_replace('/(
]+src=")([^"]+)(")/', '$1' . get_image($path) . '$3', $certificate_builder_content_details);
+ Setting::where('type', 'certificate_builder_content_details')->update(['description' => $modifiedHtml]);
}
return redirect(route('admin.certificate.settings'))->with('success', get_phrase('Certificate template has been updated'));