{{ trans('update.certificate_template_box_hint') }}

@if (!empty($template) and !empty($template->body)) @php $body = $template->body; // Update styles for draggable elements $body = preg_replace_callback( '/]*class\s*=\s*["\'][^"\']*draggable-element[^"\']*["\'][^>]*)>/i', function ($matches) { $attributes = $matches[1]; $newStyle = 'transform: scale(.58); transform-origin: top left; position: absolute;'; if (strpos($attributes, 'style=') !== false) { $attributes = preg_replace('/style\s*=\s*(["\'])(.*?)\1/i', 'style=$1$2 ' . $newStyle . '$1', $attributes); } else { $attributes .= ' style="' . $newStyle . '"'; } return ""; }, $body ); @endphp {!! $body !!} @else
@endif