Viewing file: b77c98b67116363dfcedbe3cbde1f581.php (8.46 KB) -rwxrwxrwx Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title', trans('customer.Chat_Response')); ?>
<?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')); ?>"> <?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 class="float-right"> <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal"><?php echo e(trans('customer.New_Response')); ?></button> </div> </div> <!-- /.card-header --> <div class="card-body"> <table id="sender_ids" class="table table-striped table-bordered dt-responsive nowrap"> <thead> <tr> <th>#</th> <th><?php echo e(trans('customer.title')); ?></th> <th><?php echo e(trans('customer.content')); ?></th> <th><?php echo e(trans('customer.status')); ?></th> <th><?php echo app('translator')->get('customer.action'); ?></th> </tr> </thead>
</table> </div> <!-- /.card-body --> </div> <!-- /.card --> </div> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.content --> <div class="modal fade" id="myModal" role="dialog"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header p-2"> <h4 class="modal-title ml-1"><?php echo e(trans('customer.Chat_Response')); ?></h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <form action="<?php echo e(route('customer.chat.response.store')); ?>" method="post"> <?php echo csrf_field(); ?> <div class="modal-body"> <div class="form-group"> <label for=""><?php echo e(trans('customer.title')); ?></label> <input type="text" name="title" class="form-control"> </div> <div class="form-group"> <label for=""><?php echo e(trans('customer.content')); ?></label> <textarea name="response_content" class="form-control" cols="4" rows="4"></textarea> </div> <div class="form-group"> <label for=""><?php echo e(trans('customer.status')); ?></label> <select name="status" class="form-control"> <option value="active"><?php echo e(trans('customer.active')); ?></option> <option value="inactive"><?php echo e(trans('customer.inactive')); ?></option> </select> </div> </div> <div class="modal-footer justify-content-between"> <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo e(trans('admin.close')); ?></button> <button type="submit" class="btn btn-primary"><?php echo e(trans('admin.save')); ?></button> </div> </form> </div> </div> </div> <div class="modal fade" id="editSenderId" role="dialog"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header p-2"> <h4 class="modal-title ml-1"><?php echo e(trans('customer.Edit_Chat_Response')); ?></h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <form action="<?php echo e(route('customer.chat.response.update')); ?>" method="post"> <?php echo csrf_field(); ?> <input type="hidden" id="id" name="id"> <div class="modal-body"> <div class="form-group"> <label for=""><?php echo e(trans('customer.title')); ?></label> <input type="text" name="title" id="title" class="form-control"> </div> <div class="form-group"> <label for=""><?php echo e(trans('customer.content')); ?></label> <textarea name="response_content" class="form-control" id="contentEdit" cols="4" rows="4"></textarea> </div> <div class="form-group"> <label for=""><?php echo e(trans('customer.status')); ?></label> <select name="status" id="status" class="form-control"> <option value="active"><?php echo e(trans('customer.active')); ?></option> <option value="inactive"><?php echo e(trans('customer.inactive')); ?></option> </select> </div> </div> <div class="modal-footer justify-content-between"> <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo e(trans('admin.close')); ?></button> <button type="submit" class="btn btn-primary"><?php echo e(trans('customer.Save_changes')); ?></button> </div> </form> </div> </div> </div> <?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> "use strict"; $('#sender_ids').DataTable({ processing: true, serverSide: true, responsive:true, ajax:'<?php echo e(route('customer.get.all.chat.response')); ?>', columns: [ { "data": "id" }, { "data": "title" }, { "data": "content" }, { "data": "status" }, { "data": "action" }, ], fnInitComplete: function(oSettings, json) { $(".show-more").css('overflow', 'hidden').readmore({collapsedHeight: 20,moreLink: '<a href="#">More</a>',lessLink: '<a href="#">Less</a>'}); } });
$(document).on('click', '.edit_response', function(e){ e.preventDefault();
const id = $(this).attr('data-id'); const title = $(this).attr('data-title'); const content = $(this).attr('data-content'); const status=$(this).attr('data-status');
$('#status').val(status).change(); $('#id').val(id); $('#title').val(title); $('#contentEdit').val(content); $('#editSenderId').modal('show'); })
</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/test.sms.picotech.app/public_html/resources/views/customer/chat_response/index.blade.php ENDPATH**/ ?>
|