One Hat Cyber Team
Your IP :
216.73.216.93
Server IP :
178.63.234.5
Server :
Linux whm01.ins-jo.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Server Software :
Apache
PHP Version :
8.1.32
Buat File
|
Buat Folder
Dir :
~
/
home
/
business
/
www
/
storage
/
framework
/
views
/
Edit File Name :
d5b26d9894498c4798c55281f48635c45f1f31b4.php
<?php $__env->startSection('content'); ?> <div class="page-header"> <h4 class="page-title">vCard Services</h4> <ul class="breadcrumbs"> <li class="nav-home"> <a href="<?php echo e(route('user.vcard')); ?>"> <i class="flaticon-home"></i> </a> </li> <li class="separator"> <i class="flaticon-right-arrow"></i> </li> <li class="nav-item"> <a href="#">vCards</a> </li> <li class="separator"> <i class="flaticon-right-arrow"></i> </li> <li class="nav-item"> <a href="#"><?php echo e($vcard->vcard_name); ?></a> </li> <li class="separator"> <i class="flaticon-right-arrow"></i> </li> <li class="nav-item"> <a href="#">Services</a> </li> </ul> </div> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <div class="row"> <div class="col-lg-4"> <div class="card-title d-inline-block">vCard Services</div> </div> <div class="col-lg-4 offset-lg-4 mt-2 mt-lg-0"> <a href="<?php echo e(route('user.vcard')); ?>" class="btn btn-secondary float-right btn-sm ml-2"><i class="fas fa-chevron-left"></i> Back</a> <a href="#" class="btn btn-primary float-right btn-sm" data-toggle="modal" data-target="#createModal"><i class="fas fa-plus"></i> Add Service</a> <button class="btn btn-danger float-right btn-sm mr-2 d-none bulk-delete" data-href="<?php echo e(route('user.vcard.bulkServiceDelete')); ?>"><i class="flaticon-interface-5"></i> Delete</button> </div> </div> </div> <div class="card-body"> <div class="row"> <div class="col-lg-12"> <?php if(count($services) == 0): ?> <h3 class="text-center">NO SERVICE FOUND</h3> <?php else: ?> <div class="table-responsive"> <table class="table table-striped mt-3" id="basic-datatables"> <thead> <tr> <th scope="col"> <input type="checkbox" class="bulk-check" data-val="all"> </th> <th scope="col">Image</th> <th scope="col">Title</th> <th scope="col">Serial Number</th> <th scope="col">Actions</th> </tr> </thead> <tbody> <?php $__currentLoopData = $services; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $service): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td> <input type="checkbox" class="bulk-check" data-val="<?php echo e($service->id); ?>"> </td> <td><img src="<?php echo e(asset('assets/front/img/user/services/'.$service->image)); ?>" alt="" width="80"></td> <td><?php echo e(strlen($service->title) > 30 ? mb_substr($service->title, 0, 30, 'UTF-8') . '...' : $service->title); ?></td> <td> <?php echo e($service->serial_number); ?> </td> <td> <a href="#" class="btn btn-warning btn-sm editbtn" data-toggle="modal" data-target="#editModal" data-service_id="<?php echo e($service->id); ?>" data-title="<?php echo e($service->title); ?>" data-external_link_status="<?php echo e($service->external_link_status); ?>" data-external_link="<?php echo e($service->external_link); ?>" data-short_details="<?php echo e($service->short_details); ?>" data-serial_number="<?php echo e($service->serial_number); ?>" data-image="<?php echo e(asset('assets/front/img/user/services/' . $service->image)); ?>"> <span class="btn-label"> <i class="fas fa-edit"></i> </span> Edit </a> <form class="deleteform d-inline-block" action="<?php echo e(route('user.vcard.serviceDelete')); ?>" method="post"> <?php echo csrf_field(); ?> <input type="hidden" name="service_id" value="<?php echo e($service->id); ?>"> <button type="submit" class="btn btn-danger btn-sm deletebtn"> <span class="btn-label"> <i class="fas fa-trash"></i> </span> Delete </button> </form> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> <?php endif; ?> </div> </div> </div> </div> </div> </div> <?php if ($__env->exists('user.vcard.services.create')) echo $__env->make('user.vcard.services.create', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php if ($__env->exists('user.vcard.services.edit')) echo $__env->make('user.vcard.services.edit', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> <script> function toggleDetails(val, shortDetailsId, extLinkId) { if (val == 1) { $("#" + shortDetailsId).hide(); $("#" + extLinkId).show(); } else { $("#" + extLinkId).hide(); $("#" + shortDetailsId).show(); } } $(document).ready(function() { $(".editbtn").on('click', function() { setTimeout(() => { let $elstatus = $('#ajaxEditForm .elstatus:checked'); let val = $elstatus.val(); let shortDetailsId = $elstatus.data('short_details_id'); let extLinkId = $elstatus.data('ext_link_id'); toggleDetails(val, shortDetailsId, extLinkId); }, 300); }); $(".elstatus").on('change', function() { let val = $(this).val(); let shortDetailsId = $(this).data('short_details_id'); let extLinkId = $(this).data('ext_link_id'); toggleDetails(val, shortDetailsId, extLinkId); }); }); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('user.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/business/public_html/resources/views/user/vcard/services/index.blade.php ENDPATH**/ ?>
Save