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
/
View File Name :
2169ffc7f2a7fb4ca56e72afdda304d9.php
<?php $__env->startSection('content'); ?> <div class="page-heading"> <div class="page-title"> <div class="row"> <div class="col-12 col-md-6 order-md-1 order-last"> <h3>Settings</h3> </div> <div class="col-12 col-md-6 order-md-2 order-first"> <nav aria-label="breadcrumb" class="breadcrumb-header float-start float-lg-end"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="">Settings</a></li> </ol> </nav> </div> </div> </div> <section class="section"> <div class="row"> <div class="col-12 col-lg-4"> <div class="card"> <div class="card-body"> <div class="d-flex justify-content-center align-items-center flex-column"> <div class="avatar avatar-2xl"> <img src="<?php echo e(isset($data) ? asset('storage/images/' . $data->images) : url('assets/static/images/blank.png')); ?>" style="width: 100px; height: 100px;"> </div> <h3 class="mt-3"><?php echo e(isset($data) ? $data->name : 'Isi Nama Perusahaan'); ?></h3> </div> </div> </div> </div> <div class="col-12 col-lg-8"> <div class="card"> <div class="card-body"> <form action="<?php echo e(isset($data) ? route('setting.update', $data->id) : route('setting.store')); ?>" method="POST" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <?php if(isset($data)): ?> <?php echo method_field('PUT'); ?> <?php endif; ?> <div class="form-group"> <label for="name" class="form-label">Nama Perusahaan</label> <input type="text" name="name" id="name" class="form-control" placeholder="Your Name" value="<?php echo e(old('Nama Perusahaan', isset($data) ? $data->name : '')); ?>"> </div> <div class="form-group"> <label for="address" class="form-label">Alamat Perusahaan</label> <input type="text" name="address" id="address" class="form-control" placeholder="Alamat Perusahaan" value="<?php echo e(old('Alamat Perusahaan', isset($data) ? $data->address : '')); ?>"> </div> <div class="form-group"> <label for="phone" class="form-label">Phone</label> <input type="text" name="phone" id="phone" class="form-control" placeholder="Nomor HP Perusahaan" value="<?php echo e(old('Nomor HP Perusahaan', isset($data) ? $data->phone : '')); ?>"> </div> <div class="form-group"> <label for="email" class="form-label">Email Perusahaan</label> <input type="text" name="email" id="email" class="form-control" placeholder="Email Perusahaan" value="<?php echo e(old('email Perusahaan', isset($data) ? $data->email : '')); ?>"> </div> <div class="col-md-4"> <label>Images</label> </div> <div class="col-md-8 form-group"> <input class="form-control" type="file" id="images" name="images" onchange="previewImage()"> <!-- Preview Image --> </div> <div class="col-md-4"> <label>Preview Images</label> </div> <div class="col-md-8 form-group"> <!-- Preview Image --> <div class="mt-2"> <img id="image-preview" src="" alt="Image Preview" style="display:none; width: 200px; height: auto;"> </div> <div class="form-group"> <button type="submit" class="btn btn-primary" style="margin-top: 10px;"><?php echo e(isset($data) ? 'Save Changes' : 'Add Setting'); ?></button> <?php if(isset($data)): ?> <button type="button" class="btn btn-danger" style="margin-top:10px;" onclick="deleteSetting(<?php echo e($data->id); ?>)"> Delete Setting </button> <?php endif; ?> </div> </form> </div> </div> </div> </div> </section> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('script'); ?> <script> // Preview image before upload function previewImage() { const file = document.getElementById('images').files[0]; const reader = new FileReader(); reader.onloadend = function() { const preview = document.getElementById('image-preview'); preview.src = reader.result; preview.style.display = 'block'; // Show the preview image } if (file) { reader.readAsDataURL(file); } } </script> <script> function deleteSetting(id) { if (!confirm("Yakin ingin menghapus data ini?")) return; fetch("<?php echo e(url('setting')); ?>/" + id, { method: "DELETE", headers: { "X-CSRF-TOKEN": "<?php echo e(csrf_token()); ?>", "Accept": "application/json", }, }) .then(response => { if (response.ok) { alert("Data berhasil dihapus!"); window.location.href = "<?php echo e(route('setting.index')); ?>"; // redirect setelah hapus } else { return response.json().then(err => { console.error(err); alert("Gagal menghapus data!"); }); } }) .catch(error => { console.error(error); alert("Terjadi kesalahan saat menghapus data."); }); } </script> <?php $__env->stopPush(); ?> <?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/setting/index.blade.php ENDPATH**/ ?>