@extends('layouts.admin') @push('title', get_phrase('Certificate')) @push('meta')@endpush @push('css') @endpush @section('content')

{{ get_phrase('Certificate') }}

{{ get_phrase('Certificate template') }}

@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') }}

{{ get_phrase('Certificate template') }}

@csrf
@endsection @push('js') @endpush