Viewing file: fb17ba110e5918632cec41f7c47697c5.php (5.15 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> Devices <?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')); ?>"> <style> #devices_filter{ display: none !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('Device List'); ?></h2> <div class="float-right"> <div class="form-group"> <select class="form-control select_device" multiple="multiple" name="customer_select" id="search_customer_select"> <?php if(isset($customers) && $customers): ?> <?php $__currentLoopData = $customers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $customer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($customer->id); ?>" class="input-group"><?php echo e($customer->full_name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </select> </div> </div> </div> <!-- /.card-header --> <div class="card-body table-body"> <table id="devices" 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('admin.device_name'); ?></th> <th><?php echo app('translator')->get('admin.created_at'); ?></th> <th><?php echo app('translator')->get('admin.status'); ?></th> </tr> </thead>
</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> "use strict"; var getDevices = $('#devices').DataTable({ processing: true, serverSide: true, responsive:true, ajax: { url:"<?php echo e(route('admin.device.get.all')); ?>", type:'GET', data: function(d) { let customer_ids = $('#search_customer_select').val(); d.customer_id=[]; $.each(customer_ids, function(index, value) { d.customer_id[index]=value; }); } }, columns: [ { "data": "customer_name" }, { "data": "device_name" }, { "data": "created_at" }, { "data": "status" }, ], fnInitComplete: function(oSettings, json) { $(".show-more").css('overflow', 'hidden').readmore({collapsedHeight: 20,moreLink: '<a href="#">More</a>',lessLink: '<a href="#">Less</a>'}); } }); $(document).on('change', '#search_customer_select', function (e) { getDevices.ajax.reload(); }); $('#search_customer_select').select2({ placeholder: "Search By Customer", multiple: true, allowClear: false, tags:false, }) </script> <?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/sender.picotech.app/public_html/resources/views/admin/device/index.blade.php ENDPATH**/ ?>
|