Файловый менеджер - Редактировать - /home/clickysoft/public_html/somni.clickysoft.net/resources/views/landlord/lease_single.blade.php
Назад
@extends('landlord.layouts.landlord') @section('title', 'Landlord Dashboard - SOMNI') @section('links') <link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" /> @endsection @section('content') <div class="db-backdrop"></div> <div class="main-section"> <x-landlord-side-nav /> <main class="layout-main"> <div class="content-wrapper"> <section class="profile-edit"> <div class="container-fluid custom-container"> <div class="row "> <div class="col-md-12"> <div class="main-db-layout"> <div class="row "> <div class="col-md-12 d-flex mod-heads"> <input type="hidden" id="document_path" value="{{env('APP_URL')}}/storage/{{ $document->document_path ?? '' }}" /> <div class="col-md-6"> <div class="backto-db-button"> <a href="{{route('landlord.lease')}}" class="backto-tb-btn"> <svg xmlns="http://www.w3.org/2000/svg" width="15" height="48" viewBox="0 0 15 48" fill="none"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4.06942 24L13 32.9617L11.9653 34L2 24L11.9653 14L13 15.0383L4.06942 24Z" fill="#0600C3"></path> </svg> Back to leases </a> </div> </div> {{-- <div class="col-md-6 text-right"> <button type="button" class="email-copy-btn">Save & Exit</button> </div> --}} </div> <div class="col-md-12 main_pdf_container chart-card"> <div class="heading_pdf d-flex"> <div class="col-md-6 name_container"> <input type="text" value="{{basename($document->document_path, '.pdf') ?? 'Document Name Here'}}" placeholder="{{basename($document->document_path, '.pdf') ?? ''}}" id="document_name" data-doc_id="{{basename($document->document_path, '.pdf') ?? ''}}" disabled/> <img src="{{asset('/images/edit-pen.svg')}}" alt="" class="img-fluid" /> </div> <div class="col-md-6 d-flex action_btn_container text-right"> {{-- <a href="#" class="d-flex"> <img src="{{asset('/images/bl-env.svg')}}" alt="" class="img-fluid" /> <span>Email</span> </a> --}} <a href="javascript:void(0)" class="d-flex" data-bs-toggle="modal" data-bs-target="#sendLeaseModal"> <img src="{{asset('/images/send.svg')}}" alt="" class="img-fluid" /> <span>Send</span> </a> <a href="#" class="d-flex" id="download_pdf_btn"> <img src="{{asset('/images/fle.svg')}}" alt="" class="img-fluid" /> <span>Download</span> </a> </div> </div> <div class="tst"><div id="pdf-viewer" class="w-100"></div></div> </div> </div> </div> </div> </div> </section> <!--MODAL--> <div class="modal fade" id="sendLeaseModal" tabindex="-1" aria-labelledby="sendLeaseModal" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered special-select-md-dialog"> <div class="modal-content amenities-md-content"> <div class="modal-body amenities-md-body"> <div class="row"> <div class="col-md-12"> <div class="md-amn-head-main justify-content-end"> <div class="md-header "> <button type="button" class="cs-button" data-bs-dismiss="modal" aria-label="Close"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14" fill="none"> <path fill-rule="evenodd" clip-rule="evenodd" d="M0.244075 11.9107C-0.0813583 12.2362 -0.0813583 12.7638 0.244075 13.0892C0.569517 13.4147 1.09715 13.4147 1.42259 13.0892L6.66667 7.84517L11.9107 13.0892C12.2362 13.4147 12.7638 13.4147 13.0892 13.0892C13.4147 12.7638 13.4147 12.2362 13.0892 11.9107L7.84517 6.66667L13.0892 1.42259C13.4147 1.09715 13.4147 0.569517 13.0892 0.244075C12.7638 -0.0813583 12.2362 -0.0813583 11.9107 0.244075L6.66667 5.48817L1.42259 0.244075C1.09715 -0.0813583 0.569517 -0.0813583 0.244075 0.244075C-0.0813583 0.569517 -0.0813583 1.09715 0.244075 1.42259L5.48817 6.66667L0.244075 11.9107Z" fill="black" /> </svg></button> </div> </div> </div> <form method="POST" action="#" id="send_lease_form"> @csrf <div class="col-md-12"> <div class="amenities-md-head inv-code-head d-flex justify-content-center flex-column align-items-center"> <h3>Send Lease To Sign</h3> <p>Vel dignissim dignissim euismod</p> </div> <div class="row justify-content-center"> <div class="col-md-7 col-sm-12"> {{-- <div class="slots-cont w-100"> <label>Properties</label> <select name="property_id" class="w-100" required=""> @foreach ($properties as $property) <option value="{{$property->id}}">{{$property->name}}</option> @endforeach </select> </div> <div class="slots-cont w-100"> <label>Units</label> <select name="unit_id" class="w-100" required=""> @foreach ($dd_units as $unit) <option value="{{$unit->id}}">{{$unit->number}}</option> @endforeach </select> </div> --}} <div class="recipient-field position-relative"> <input type="email" name="email" placeholder="Enter recepient email" id="lease_to_email" required> <input type="hidden" name="doc_id" id="doc_id" value="{{$document->id}}"/> <div class="rcp-user"> <img src="{{asset('/images/rcp-user.svg')}}" alt="" class="img-fluid"> </div> </div> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="send-canc d-flex justify-content-center"> <button class="snd-lease">Send</button> <button data-bs-dismiss="modal" class="canc-lease">Cancel</button> </div> </div> </div> </form> </div> </div> </div> </div> </div> </main> </div> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> <script src="https://www.gstatic.com/firebasejs/8.3.2/firebase.js"></script> <script src="https://www.gstatic.com/firebasejs/8.3.2/firebase-messaging.js"></script> <link href="https://cdn.jsdelivr.net/npm/sweetalert2@11.7.27/dist/sweetalert2.min.css" rel="stylesheet"> <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.7.27/dist/sweetalert2.all.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script> <script src="{{asset('/js/global.js')}}"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.4.456/pdf.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.4.456/pdf.worker.js"></script> <script src="{{asset('/js/pdfThumbnails.js')}}" data-pdfjs-src="pdf.js/build/pdf.js"></script> <script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.min.js"></script> <script src="{{asset('/js/lease.js')}}"></script> @if(!empty($verification)) <x-email-verification-popup :verification=$verification /> @endif <script> // URL to your PDF file var doc_path = $('#document_path').val(); var pdfUrl = ''; if(doc_path){ pdfUrl = doc_path; // Load and display the PDF using PDF.js // pdfjsLib.getDocument(pdfUrl).promise.then(function(pdf) { // // Fetch the first page // return pdf.getPage(1); // }).then(function(page) { // // Create a canvas to render the PDF page // var canvas = document.createElement('canvas'); // var context = canvas.getContext('2d'); // var viewport = page.getViewport({ scale: 1.5 }); // // Set canvas dimensions // canvas.width = viewport.width; // canvas.height = viewport.height; // // Render the PDF page on the canvas // page.render({ canvasContext: context, viewport: viewport }); // // Append the canvas to the PDF viewer container // document.getElementById('pdf-viewer').appendChild(canvas); // }); // Load and display the PDF using PDF.js pdfjsLib.getDocument(pdfUrl).promise.then(function(pdf) { var totalPages = pdf.numPages; // Loop through all pages for (var pageNumber = 1; pageNumber <= totalPages; pageNumber++) { // Fetch each page pdf.getPage(pageNumber).then(function(page) { // Create a canvas to render the PDF page var canvas = document.createElement('canvas'); var context = canvas.getContext('2d'); var viewport = page.getViewport({ scale: 2 }); // Set canvas dimensions canvas.width = viewport.width; canvas.height = viewport.height; // Render the PDF page on the canvas page.render({ canvasContext: context, viewport: viewport }); // Append the canvas to the PDF viewer container document.getElementById('pdf-viewer').appendChild(canvas); }); } }); }else{ document.getElementById('pdf-viewer').appendChild('<p>No Document</p>'); } $('#download_pdf_btn').on('click',function(){ // Get the PDF path from the input field var pdfPath = document.getElementById('document_path').value; // Create a hidden link element var link = document.createElement('a'); link.href = pdfPath; link.download = 'downloaded_file.pdf'; // You can set the desired file name here link.style.display = 'none'; // Append the link to the document document.body.appendChild(link); // Trigger a click on the link to start the download link.click(); // Remove the link from the document document.body.removeChild(link); }); </script> @if(\Session::has('success')) <script> toastr.options = { "closeButton": true, "debug": false, "newestOnTop": false, "progressBar": false, "positionClass": "toast-top-right", "preventDuplicates": false, "onclick": null, "showDuration": "300", "hideDuration": "1000", "timeOut": "5000", "extendedTimeOut": "1000", "showEasing": "swing", "hideEasing": "linear", "showMethod": "fadeIn", "hideMethod": "fadeOut" } toastr.success('{!! \Session::get("success") !!}'); </script> @endif @if(\Session::has('error')) <script> toastr.options = { "closeButton": true, "debug": false, "newestOnTop": false, "progressBar": false, "positionClass": "toast-top-right", "preventDuplicates": false, "onclick": null, "showDuration": "300", "hideDuration": "1000", "timeOut": "5000", "extendedTimeOut": "1000", "showEasing": "swing", "hideEasing": "linear", "showMethod": "fadeIn", "hideMethod": "fadeOut" } toastr.error('{!! \Session::get("error") !!}'); </script> @endif @endsection
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка