File manager - Edit - /var/www/payraty/lms_main/storage/framework/views/c7751ad39b0a985fd32ad7776779af3d.php
Back
<?php $__env->startPush('title', get_phrase('Certificate')); ?> <?php $__env->startPush('meta'); ?><?php $__env->stopPush(); ?> <?php $__env->startPush('css'); ?> <style> .remove-item, .ui-resizable-handle { display: none !important; } .certificate-layout-module { left: unset !important; top: unset !important; margin-left: auto !important; margin-right: auto !important; } </style> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <div class="ol-card radius-8px"> <div class="ol-card-body my-3 py-4 px-20px"> <div class="d-flex align-items-center justify-content-between gap-3 flex-wrap flex-md-nowrap"> <h4 class="title fs-16px"> <i class="fi-rr-settings-sliders me-2"></i> <?php echo e(get_phrase('Certificate')); ?> </h4> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="ol-card p-4"> <p class="title text-14px mb-3"><?php echo e(get_phrase('Certificate template')); ?></p> <div class="ol-card-body certificate_builder_view" id="certificate_builder_view"> <?php $doc = new DOMDocument(); // Load the HTML into the DOMDocument object // Suppress errors due to malformed HTML using '@' @$doc->loadHTML(get_settings('certificate_builder_content')); // Get the DOMDocument's body element $body = $doc->getElementsByTagName('body')->item(0); // Find the <img> element with the class 'certificate-template' $xpath = new DOMXPath($doc); $img = $xpath->query('//img[contains(@class, "certificate-template")]')->item(0); if ($img) { // Update the src attribute $newSrc = ''; // New URL $img->setAttribute('src', get_image(get_settings('certificate_template'))); } // Save the updated HTML $certificate_builder_content = $doc->saveHTML(); ?> <?php echo $certificate_builder_content; ?> <a class="btn ol-btn-primary mt-3" href="<?php echo e(route('admin.certificate.builder')); ?>"><?php echo e(get_phrase('Build your certificate')); ?></a> </div> </div> </div> <div class="col-md-6"> <div class="ol-card p-4"> <p class="title text-14px mb-3"><?php echo e(get_phrase('Certificate template')); ?></p> <div class="ol-card-body"> <form action="<?php echo e(route('admin.certificate.update.template')); ?>" method="post" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <div class="form-group text-start mb-3"> <img class="my-2" height="200px" src="<?php echo e(get_image(get_settings('certificate_template'))); ?>" alt=""> </div> <div class="form-group mb-3"> <label class="form-label ol-form-label" for="certificate_template"><?php echo e(get_phrase('Upload your certificate template')); ?></label> <input type="file" class="form-control" name="certificate_template" id="certificate_template"rows="4"> </div> <div class="form-group"> <button class="btn ol-btn-primary" type="submit"><?php echo e(get_phrase('Upload')); ?></button> </div> </form> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('js'); ?> <script> "use strict"; $(function() { var certificate_builder_view_width = $('.certificate_builder_view').width(); var certificate_layout_module = $('.certificate_builder_view .certificate-layout-module').width(); var zoomScaleValue = ((certificate_builder_view_width / certificate_layout_module) * 100) - 8; $('.certificate_builder_view .certificate-layout-module').css('zoom', zoomScaleValue + '%'); }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/payraty/lms_main/resources/views/admin/certificate/index.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings