One Hat Cyber Team
Your IP :
10.30.1.1
Server IP :
103.148.201.5
Server :
Linux web-olt 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
Server Software :
Apache/2.4.52 (Ubuntu)
PHP Version :
8.1.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
html
/
Compro-ISP
/
storage
/
framework
/
views
/
Edit File:
714d298dedfd7f2cd444d4413b795833.php
<?php $__env->startSection('content'); ?> <section id="multiple-column-form"> <div class="row match-height"> <div class="col-12"> <div class="card"> <div class="card-header"> <h4 class="card-title">Edit Data Home</h4> </div> <div class="card-content"> <div class="card-body"> <form action="<?php echo e(route('homepages.home.update', $data->id)); ?>" method="POST" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?> <div class="row mb-4"> <div class="col-md-4"> <label for="description" class="form-label fw-semibold">Description</label> </div> <div class="col-md-8"> <textarea id="description" name="description" rows="6" class="form-control"><?php echo e($data->description); ?></textarea> </div> </div> <div class="row mb-4"> <div class="col-md-4"> <label class="form-label fw-semibold">Image 1</label> </div> <div class="col-md-8"> <?php if($data->images1): ?> <div class="mb-2"> <div class="text-muted small">Current</div> <img src="<?php echo e(asset('storage/images/' . $data->images1)); ?>" alt="Current Image 1" class="img-thumb"> </div> <?php endif; ?> <label for="images1" class="form-label">Change (optional)</label> <input class="form-control" type="file" id="images1" name="images1" accept="image/*" onchange="previewImage(this, 'image-preview1')"> <div id="preview-container1" class="preview-holder mt-3"> <div class="text-muted small">Preview</div> <img id="image-preview1" src="" alt="Preview Image 1" class="img-thumb"> </div> </div> </div> <div class="row mb-4"> <div class="col-md-4"> <label class="form-label fw-semibold">Image 2</label> </div> <div class="col-md-8"> <?php if($data->images2): ?> <div class="mb-2"> <div class="text-muted small">Current</div> <img src="<?php echo e(asset('storage/images/' . $data->images2)); ?>" alt="Current Image 2" class="img-thumb"> </div> <?php endif; ?> <label for="images2" class="form-label">Change (optional)</label> <input class="form-control" type="file" id="images2" name="images2" accept="image/*" onchange="previewImage(this, 'image-preview2')"> <div id="preview-container2" class="preview-holder mt-3"> <div class="text-muted small">Preview</div> <img id="image-preview2" src="" alt="Preview Image 2" class="img-thumb"> </div> </div> </div> <div class="row mb-4"> <div class="col-md-4"> <label class="form-label fw-semibold">Image 3</label> </div> <div class="col-md-8"> <?php if($data->images3): ?> <div class="mb-2"> <div class="text-muted small">Current</div> <img src="<?php echo e(asset('storage/images/' . $data->images3)); ?>" alt="Current Image 3" class="img-thumb"> </div> <?php endif; ?> <label for="images3" class="form-label">Change (optional)</label> <input class="form-control" type="file" id="images3" name="images3" accept="image/*" onchange="previewImage(this, 'image-preview3')"> <div id="preview-container3" class="preview-holder mt-3"> <div class="text-muted small">Preview</div> <img id="image-preview3" src="" alt="Preview Image 3" class="img-thumb"> </div> </div> </div> <div class="d-flex justify-content-end"> <button type="submit" class="btn btn-primary">Submit</button> </div> </form> </div> </div> </div> </div> </div> </section> <style> .img-thumb { width: 150px; height: 150px; object-fit: cover; border: 1px solid #ddd; border-radius: .5rem; } .preview-holder { display:none; } .preview-holder.show { display:block; } </style> <script> function previewImage(input, previewId) { const file = input.files?.[0]; if (!file) return; const reader = new FileReader(); reader.onloadend = function() { const preview = document.getElementById(previewId); const container = preview.closest('.preview-holder'); preview.src = reader.result; container.classList.add('show'); } reader.readAsDataURL(file); } </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/Compro-ISP/resources/views/v/homepages/home/edit.blade.php ENDPATH**/ ?>
Simpan