whoami7 - Manager
:
/
home
/
kckglobal
/
public_html
/
portal
/
storage
/
framework
/
views
/
Upload File:
files >> /home/kckglobal/public_html/portal/storage/framework/views/461014276c8db9ea7eeb2a55b8768897.php
<div class="content-wrapper border-top-0 client-detail-wrapper"> <div class="card bg-white rounded"> <h4 class="mb-0 p-20 f-21 font-weight-normal border-bottom"> <?php echo app('translator')->get('letter::app.letterDetails'); ?> <span class="float-right"> <button id="downloadButton" class="btn btn-primary py-1 px-2 f-14"> <?php echo app('translator')->get('letter::app.download'); ?> </button> <button id="printButton" class="btn btn-success py-1 px-2 f-14"> <?php echo app('translator')->get('letter::app.print'); ?> </button> </span> </h4> <div class="col-md-12 p-0 text-wrap ql-editor" id="descriptionPreviewArea" style="overflow-y: auto; overflow-x: hidden;"> <div style="<?php echo \Illuminate\Support\Arr::toCssStyles(['padding-top:' . $letter->top . 'px', 'padding-bottom:' . $letter->bottom . 'px', 'padding-left:' . $letter->left . 'px', 'padding-right:' . $letter->right . 'px']) ?>" id="descriptionPreview"><?php echo $description; ?></div> </div> </div> </div> <script> $(document).ready(function() { $('#downloadButton').on('click', function() { window.location.href = "<?php echo e(route('letter.download', $letter->id)); ?>"; }); $('#printButton').on('click', function() { let printFrame = document.createElement('iframe'); let html = '<html><head><title>Print</title><link type="text/css" rel="stylesheet" media="all" href="<?php echo e(asset('css/main.css')); ?>"></'; html += 'head><body class="text-wrap ql-editor">'; html += $('#descriptionPreviewArea').html(); html += '</body></html>'; printFrame.style.display = 'none'; document.body.appendChild(printFrame); printFrame.contentDocument.open(); printFrame.contentDocument.write(html); printFrame.contentDocument.close(); printFrame.onload = function() { printFrame.contentWindow.print(); printFrame.contentWindow.onafterprint = function() { document.body.removeChild(printFrame); }; }; }); init(RIGHT_MODAL); }); </script> <?php /**PATH /home/kckglobal/public_html/portal/Modules/Letter/Resources/views/letter/ajax/show.blade.php ENDPATH**/ ?>
Copyright ©2021 || Defacer Indonesia