Commit 25a28678 authored by Kevin Yumang's avatar Kevin Yumang

SERV-2286 - pdf viewer modal element WIP

parent 92bc159f
......@@ -4,7 +4,7 @@
@section('Limitless::Content')
@php
$pdfPath = secure_url("/ceetrox/sidekick/resource/public/Elements/pdfmodal/sample.pdf");
$pdfPath = secure_url("/ceetrox/sidekick/resource/public/Elements/pdfmodal/pdf-sample.pdf");
@endphp
@Limitless::CardStart(['title' => "Description", 'icon' => 'icon-info22'])
......
......@@ -16,7 +16,8 @@
</div>
<div class="modal-body">
<iframe class="pdfIframe"
src="https://cdn.backoffice.online/pdfjs/web/viewer.html?file={{ $url }}"
{{ header("Access-Control-Allow-Origin: *") }}
src="https://cdn.backoffice.online/pdfjs/web/viewer.html?file={{ urlencode($url) }}"
style="border:1px solid #999999;" width="100%">
</iframe>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment