Viewing file: 29afb658b801f539e2779cd85891fc4d.php (7.14 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title', trans('customer.purchase_numbers')); ?>
<?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="<?php echo e(asset('plugins/select2/css/select2.min.css')); ?>"> <style> .select2-container--default .select2-selection--single { min-height: 38px; border-radius: 4px 0 0 4px; } .capability-badge{ font-size: 11px !important; font-weight: 400; padding: 3px 6px !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 e(trans('customer.numbers_list')); ?></h2> <a class="btn btn-primary float-right" href="<?php echo e(route('customer.numbers.purchase')); ?>"><?php echo e(trans('customer.purchase')); ?></a> </div> <!-- /.card-header --> <div class="card-body"> <table id="numbers" class="table table-striped table-bordered dt-responsive nowrap"> <thead> <tr> <th><?php echo e(trans('customer.number')); ?></th> <th><?php echo e(trans('Capability')); ?></th> <th><?php echo e(trans('customer.cost')); ?></th> <th><?php echo e(trans('customer.forward_to')); ?></th> <th><?php echo e(trans('customer.purchase_date')); ?></th> <th><?php echo e(trans('customer.expire_date')); ?></th> <th><?php echo e(trans('customer.action')); ?></th> </tr> </thead>
</table> </div> <!-- /.card-body --> </div> <!-- /.card --> </div> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.content -->
<div class="modal fade" id="modal-forward-edit"> <div class="modal-dialog"> <form id="modal-forward-edit-form" method="post" action="<?php echo e(route('customer.numbers.update-forward')); ?>"> <?php echo csrf_field(); ?> <div class="modal-content"> <div class="modal-header p-2"> <h4 class="modal-title"><?php echo e(trans('customer.forward_to')); ?></h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <div class="form-group"> <input type="hidden" name="id" id="customer_number_id" > <label for="forward_to"><?php echo app('translator')->get('customer.forward_to'); ?></label> <div class="input-group mb-3"> <div class="input-group-prepend"> <select class="form-control" name="forward_to_dial_code" id="forward_to_dial_code"> <?php $__currentLoopData = getCountryCode(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$code): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="+<?php echo e($code['code']); ?>">+<?php echo e($code['code']); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <input type="text" name="forward_to" class="form-control" id="forward_to" placeholder="<?php echo app('translator')->get('customer.forward_to'); ?>"> </div> </div> </div> <div class="modal-footer p-2"> <button type="submit" class="btn btn-primary btn-sm"><?php echo e(trans('customer.update')); ?></button> <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal"><?php echo e(trans('customer.cancel')); ?></button> </div> </div> <!-- /.modal-content --> </form> </div> <!-- /.modal-dialog --> </div> <!-- /.modal -->
<?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('plugins/select2/js/select2.full.min.js')); ?>"></script>
<script> "use strict"; $('#numbers').DataTable({ processing: true, serverSide: true, responsive:true, ajax:'<?php echo e(route('customer.numbers.get.numbers')); ?>', columns: [ { "data": "number","name":"number"}, { "data": "capability" }, { "data": "cost" }, { "data": "forward_to" }, { "data": "purchased_at" }, { "data": "expire_date" }, { "data": "action" }, ] });
$(document).on('click','.change-forward-to',function (e) { e.preventDefault(); const id=$(this).attr('data-id'); const forwardTo=$(this).attr('data-forward-to'); const dialCode=$(this).attr('data-forward-to-code'); $('#forward_to').val(forwardTo); $('#forward_to_dial_code').val(dialCode).change(); $('#customer_number_id').val(id); $('#modal-forward-edit').modal('show'); });
$('#forward_to_dial_code').select2(); </script> <?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.customer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/sms.picotech.app/public_html/resources/views/customer/numbers/index.blade.php ENDPATH**/ ?>
|