One Hat Cyber Team
Your IP :
162.158.63.128
Server IP :
188.114.97.7
Server :
Linux advantage-project 5.14.0-503.26.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 19 16:28:19 UTC 2025 x86_64
Server Software :
Apache/2.4.62 (Rocky Linux) OpenSSL/3.2.2
PHP Version :
8.3.17
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
htmlOld
/
storage
/
framework
/
views
/
View File Name :
8ce81fbdd820b39972cb515e4f11bd7d.php
<?php $__env->startSection('plugins.Sweetalert2', true); ?> <?php $__env->startSection('content_header'); ?> <h1>Edit Content</h1> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="card card-primary"> <div class="card-header"> <h3 class="card-title">Content Information</h3> </div> <!-- /.card-header --> <!-- form start --> <div class="card-body"> <form role="form" id="page-form" method="POST" accept-charset="UTF-8" enctype="multipart/form-data" > <?php echo csrf_field(); ?> <?php $filehandler = 'fh'.time();?> <?php echo Html::hidden('id',$row->id ); ?> <?php echo e(Html::hidden('file_handler',$filehandler)); ?> <div class="row mt-2"> <div class="col-2"> <label for="name">Title</label> </div> <div class="col-10"> <?php echo Html::text('title',$row->title ?? null)->class('form-control m-input'); ?> </div> </div> <div class="row mt-2"> <div class="col-2"> <label for="name">Category</label> </div> <div class="col-10"> <?php echo Html::select('category_id',$categories, $row->category_id ?? null)->class('form-control m-input'); ?> </div> </div> <div class="row mt-2"> <div class="col-2"> <label for="name">Description</label> </div> <div class="col-10"> <?php echo Html::textarea('description',$row->description ?? null) ->class('form-control required editor') ->rows(10); ?> </div> </div> <div class="row mt-2"> <div class="col-2"> <label for="name">Content</label> </div> <div class="col-10"> <?php echo Html::textarea('content',$row->content ?? null) ->class('form-control required editor') ->rows(10); ?> </div> </div> <div class="row mt-2"> <div class="col-2"> <label for="name">Current Page Image</label> </div> <div class="col-10"> <img style="width: 80px;" src="/<?php echo e($row->image); ?>"> </div> </div> <div class="row mt-2"> <div class="col-2"> <label for="name">News Image</label> </div> <div class="col-10"> <?php echo html()->file('image'); ?> </div> </div> <?php if($row->gallery): ?> <div id="handle" class="row mt-2"> <div class="col-2"> <label for="name">Current Gallery Images</label> </div> <div class="col-10"> <ul id="sortable" class="list-group col-4 "> <?php $__currentLoopData = $row->gallery; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $gallery): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li class="list-group-item" image="<?php echo e($gallery->image); ?>" id="<?php echo e($gallery->id); ?>"> <div class="row"> <div class="col-6"> <i class="fas fa-arrows-alt handle"></i> <img src="<?php echo e(asset('/uploads/gallery/'.$gallery->image)); ?>" alt="" width="100"> </div> <div class="col-3"> <button class="delete btn btn-outline-danger">Delete</button> </div> </div> </li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> </div> </div> <?php endif; ?> </form> <div class="row mt-2"> <div class="col-2"> <label for="name">Photo Gallery Images</label> </div> <div class="col-10"> <form method="post" action="<?php echo e(route('dropzone-store')); ?>" enctype="multipart/form-data" class="dropzone" id="dropzonewidget"> <?php echo csrf_field(); ?> </form> </div> </div> </div> <!-- /.card-body --> <div class="card-footer"> <button id="submit-form" type="submit" class="btn btn-primary ">Submit</button> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('js'); ?> <script src="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-lite.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/summernote-cleaner@1.0.0/summernote-cleaner.min.js"></script> <script src="/vendor/jquery-validate/jquery.validate.min.js"></script> <script src="/vendor/jquery-validate/additional-methods.min.js"></script> <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script> <script src="/vendor/dropzone/dropzone.js"></script> <script type="text/javascript"> Dropzone.autoDiscover = false; //Dropzone.prototype.defaultOptions.dictRemoveFile = "Delete image"; //Dropzone.prototype.defaultOptions.dictDefaultMessage = Drop files here to upload"; //Dropzone.prototype.defaultOptions.dictCancelUpload = "Cancel upload"; </script> <script> $(function () { Dropzone.autoDiscover = false; $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); $("#dropzonewidget").dropzone ( { renameFile: function (file) { var dt = new Date(); var time = dt.getTime(); return time + file.name; }, // uploadMultiple: true, acceptedFiles: 'image/*', addRemoveLinks: true, timeout: 60000, success: function (file, response) { $(file.previewTemplate).append('<span class="server_file" style="display: none;">'+response+'</span>'); console.log(response); }, sending: function(file, xhr, formData){ formData.append('filehandler', '<?php echo e($filehandler); ?>'); formData.append('content_type', 'content'); }, error: function (file, response) { return false; }, removedfile: function(file) { var name = $(file.previewTemplate).children('.server_file').text(); // alert(name); $.ajax({ type: 'POST', url: '<?php echo e(route('dropzone-remove')); ?>', data: {name: name,request: 2}, sucess: function(data){ console.log('success: ' + data); } }); var _ref; return (_ref = file.previewElement) != null ? _ref.parentNode.removeChild(file.previewElement) : void 0; } } ); $("#submit-form").click(function () { $("#page-form").submit(); }); $('.editor').summernote({ height: 300, toolbar: [ ['style', ['style']], ['font', ['bold', 'underline', 'clear']], ['color', ['color']], ['para', ['ul', 'ol', 'paragraph']], ['table', ['table']], ['insert', ['link', 'picture', 'video']], ['view', ['fullscreen', 'codeview', ]] ], callbacks: { onChange: function (contents, $editable) { $(this).val(contents); } } }); $("#page-form").validate({ rules: { name: { required: !0, }, page_content: { required: !0, minlength: 10 } }, submitHandler: function (form) { form.submit(); } }); $( "#sortable" ).sortable({ axis: 'y', update: function (event, ui) { var data = $( "#sortable" ).sortable('toArray').toString(); $.ajax({ data: {'order':data, 'content_type': 'content', 'content_id': <?php echo $row->id; ?> }, type: 'POST', url: '<?php echo e(route('image-sort')); ?>' }); } }); $( "#sortable" ).disableSelection(); $("#sortable .delete").click(function() { var answer = confirm('This image will be deleted. Are you sure?'); if (answer) { var row = $(this).parent().parent().parent(); var removedId = row.attr('image'); row.remove(); $( "#sortable" ).sortable('refresh'); $.ajax({ data: {'name':removedId,'filehandler':''}, type: 'POST', url: '<?php echo e(route('image-delete')); ?>' }); } }); }); </script> <?php $__env->stopSection(); ?> <?php $__env->startSection('css'); ?> <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-lite.min.css" rel="stylesheet"> <link href="/vendor/dropzone/dropzone.min.css" rel="stylesheet"> <?php $__env->stopSection(); ?> <?php echo $__env->make('adminlte::page', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/advantage-project.com/resources/views/admin/contents/edit.blade.php ENDPATH**/ ?>