Viewing file: 4e08ea9f57b42c55b607a4ee4932492e9ff8a4a4.php (5.16 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> Inbound Webhook <?php $__env->stopSection(); ?>
<?php $__env->startSection('extra-css'); ?> <link rel="stylesheet" href="<?php echo e(asset('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css')); ?>"> <link rel="stylesheet" href="<?php echo e(asset('plugins/datatables-responsive/css/responsive.bootstrap4.min.css')); ?>"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css" />
<style> #toast-container .toast-success{ background: var(--primary) !important; } </style> <?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-header"> <h2 class="card-title"><?php echo app('translator')->get('customer.list'); ?></h2> </div> <!-- /.card-header --> <div class="card-body"> <table id="webhookLists" class="table table-striped table-bordered dt-responsive nowrap"> <thead> <tr> <th><?php echo app('translator')->get('customer.name'); ?></th> <th><?php echo app('translator')->get('customer.webhook'); ?></th> </tr> </thead> <tbody> <?php $counter=0; ?> <?php $__currentLoopData = $allGateways; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$gateway): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $counter++ ?> <tr> <td> <?php echo e(strtoupper(str_replace('_','-',$key))); ?>
</td> <td class="webhook-section" data-id="<?php echo e($counter); ?>"> <div class="row" > <div class="col-md-10"> <?php echo e($gateway); ?>
</div> <div class="col-md-2"> <input type="hidden" value="<?php echo e($gateway); ?>" id="webhook_<?php echo e($counter); ?>"> <i id="copy_btn_<?php echo e($counter); ?>" data-id="<?php echo e($counter); ?>" class="fa fa-copy text-success d-none copy c-pointer"></i> </div> </div> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody>
</table> </div> <!-- /.card-body --> </div> <!-- /.card --> </div> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.content --> <?php $__env->stopSection(); ?>
<?php $__env->startSection('extra-scripts'); ?> <script src="<?php echo e(asset('plugins/datatables/jquery.dataTables.min.js')); ?>"></script> <script src="<?php echo e(asset('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js')); ?>"></script> <script src="<?php echo e(asset('plugins/datatables-responsive/js/dataTables.responsive.min.js')); ?>"></script> <script src="<?php echo e(asset('plugins/datatables-responsive/js/responsive.bootstrap4.min.js')); ?>"></script> <script src="<?php echo e(asset('js/readmore.min.js')); ?>"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js" ></script> <script> "use strict"; $('#webhookLists').DataTable({ processing: true, serverSide: false, responsive:true,
});
$(document).on('mouseenter','.webhook-section', function (event) { const id=$(this).attr('data-id'); $('#copy_btn_'+id).removeClass('d-none'); }).on('mouseleave','.webhook-section', function(){ $('.copy').addClass('d-none'); });
$(document).on('click', '.copy', function(e){ const id=$(this).attr('data-id'); var copyText = document.getElementById("webhook_"+id); // Select the text field // Copy the text inside the text field navigator.clipboard.writeText(copyText.value);
toastr.success('Webhook successfully copied','Copied!', {timeOut: 2200}) })
</script> <?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.customer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/pcolfjqt/picotext.picotech.app/resources/views/customer/smsbox/inbound_webhook.blade.php ENDPATH**/ ?>
|