Viewing file: a9e7af667722081b5c68f9b69d768317.php (5.27 KB) -rwxrwxrwx Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title', trans('customer.section_dynamic_template',['index'=>''])); ?>
<?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 mt-3"> <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" href="<?php echo e(route('customer.dynamic-template.create')); ?>"><?php echo app('translator')->get('customer.new'); ?></a> </div> </div> <!-- /.card-header --> <div class="card-body table-body"> <table id="contacts" class="table table-striped table-bordered dt-responsive nowrap"> <thead> <tr> <th><?php echo app('translator')->get('customer.name'); ?></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 -->
<!-- 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 id="export_form" action="<?php echo e(route('customer.export.dynamic.template')); ?>" method="get"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLongTitle">Export Template</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" class="id"> <input type="hidden" name="type" class="type"> <div class="row"> <div class="col-md-12"> <h6>Export As : <button data-type="csv" type="button" class="btn btn-sm btn-primary submit_export ml-3">CSV</button> <button data-type="xls" type="button" class="btn btn-sm btn-primary submit_export ml-3">XLS</button> </h6> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">Close</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> "use strict"; $('#contacts').DataTable({ processing: true, serverSide: true, responsive:true, ajax:'<?php echo e(route('customer.get.all.dynamic.template')); ?>', columns: [ { "data": "name" }, { "data": "status" }, { "data": "action" }, ] });
$(document).on('click', '.export', function(e){ const id=$(this).attr('data-id'); $('.id').val(id); $('#exportModal').modal('show'); }) $(document).on('click', '.submit_export', function(e){ const type=$(this).attr('data-type'); $('.type').val(type); $('#exportModal').modal('show'); $('#export_form').submit(); }) </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/dynamic_template/index.blade.php ENDPATH**/ ?>
|