Viewing file: f700193a00062ff465a6e676772e6f8b.php (5.27 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> Transactions <?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> #transaction_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('Transaction List'); ?></h2> <div class="float-right"> <div class="form-group"> <select class="form-control select_customer" multiple="multiple" name="customer_select" id="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); ?>"><?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="transaction" 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('Plan'); ?></th> <th><?php echo app('translator')->get('admin.table.price'); ?></th> <th><?php echo app('translator')->get('admin.table.transaction_id'); ?></th> <th><?php echo app('translator')->get('Payment Type'); ?></th> <th><?php echo app('translator')->get('admin.table.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> "use strict";
var transactions = $('#transaction').DataTable({ processing: true, serverSide: true, responsive: true, ajax: { url: "<?php echo e(route('admin.transaction.get.all')); ?>", type: 'GET', data: function(d) { let customer_ids = $('#customer_select').val(); d.customer_id = []; $.each(customer_ids, function(index, value) { d.customer_id[index] = value; }); } },
columns: [{ "data": "customer_name" }, { "data": "plan" }, { "data": "price" }, { "data": "transaction_id" }, { "data": "payment_type" }, { "data": "status" }, ] });
$(document).on('change', '#customer_select', function(e) { transactions.ajax.reload(); });
$('.select_customer').select2({ placeholder: "Search Customer", multiple: true, allowClear: false, tags: true, }) </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/transactions/index.blade.php ENDPATH**/ ?>
|