Viewing file: 2b25e59f89beff007a627d5e53c9322e.php (6.01 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> Groups <?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')); ?>"> <?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"> <a class="btn btn-primary text-front-normal" href="<?php echo e(route('customer.groups.create')); ?>"><?php echo app('translator')->get('customer.new'); ?></i></a> </div> </div> <!-- /.card-header --> <div class="card-body"> <table id="groups" class="table table-striped table-bordered dt-responsive nowrap"> <thead> <tr> <th><?php echo app('translator')->get('customer.group_name'); ?></th> <th style="max-width: 500px"><?php echo app('translator')->get('customer.contacts'); ?></th> <th><?php echo app('translator')->get('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 --> <!-- Button trigger modal --> <!-- Modal --> <div class="modal fade" id="exportModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered" role="document"> <div class="modal-content"> <form action="<?php echo e(route('customer.export.group.contact')); ?>" id="exportForm" method="get"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLongTitle">Export Group Contacts</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <input type="hidden" name="id" id="groupId"> <div class="form-group"> <label for="">Select Label</label> <select name="label[]" class="form-control" id="label"> <?php $__currentLoopData = $labels; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $label): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($label->id); ?>"><?php echo e($label->title); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> <button type="submit" class="btn btn-primary text-front-normal confirmExport">Confirm</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"; $('#groups').DataTable({ processing: true, serverSide: true, responsive:true, ajax:'<?php echo e(route('customer.group.get.all')); ?>', columns: [ { "data": "name" }, { "data": "contacts" }, { "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', '.export_group_contact', function (e) { $('.confirmExport').html('Confirm'); const id = $(this).attr('data-id'); $('#groupId').val(id); $('#exportModal').modal('show'); }); $('#exportForm').submit(function (e) { setTimeout(function () { $('#exportModal').modal('hide'); }, 700); }); $('#label').select2({ multiple:true }) </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/sender.picotech.app/public_html/resources/views/customer/groups/index.blade.php ENDPATH**/ ?>
|