@php
$htmlContent = get_settings('certificate_builder_content');
// Use regex to update the src attribute of the
![]()
tag with the class 'certificate-template'.
$newSrc = get_image(get_settings('certificate_template'));
$certificate_builder_content = preg_replace('/(
![]()
]*class=["\']certificate-template["\'][^>]*src=["\'])([^"\']*)(["\'])/i', '${1}' . $newSrc . '${3}', $htmlContent);
@endphp
{!! $certificate_builder_content !!}
{{ get_phrase('Build your certificate') }}