Viewing file: be56a5bc1939819605ccbf126f8c6b8f.php (9.65 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title', trans('admin.Transaction_Reports')); ?>
<?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')); ?>"> <link rel="stylesheet" href="<?php echo e(asset('plugins/daterangepicker/daterangepicker.css')); ?>"> <link rel="stylesheet" href="<?php echo e(asset('plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.css')); ?>"> <link rel="stylesheet" href="<?php echo e(asset('/css/custom_modal.css')); ?>">
<style> .daterangepicker.show-calendar{ top: 226.391px !important; } .custom-box-shadow{ background: #f5f1f1 !important; } </style> <?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 if(request()->get('type') && request()->get('type')=='plan'): ?> <?php echo e(trans('admin.Plan_Reports')); ?>
<?php elseif(request()->get('type') && request()->get('type')=='top_up'): ?> <?php echo e(trans('admin.Topup_Reports')); ?>
<?php elseif(request()->get('type') && request()->get('type')=='message'): ?> <?php echo e(trans('admin.Message_Reports')); ?>
<?php else: ?> <?php echo e(trans('customer.reports')); ?>
<?php endif; ?> </h2> <div class="float-right"> <button type="button" class="btn btn-primary show_filter_modal"> <i class="fa fa-filter mr-2" aria-hidden="true"></i> Filter </button> </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 e(trans('admin.profile')); ?></th> <th><?php echo e(trans('admin.type')); ?></th> <th><?php echo e(trans('admin.status')); ?></th> <th><?php echo e(trans('admin.amount')); ?></th> <th><?php echo e(trans('admin.transaction_id')); ?></th> </tr> </thead>
</table> </div> <!-- /.card-body --> </div> <!-- /.card --> </div> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.content -->
<!-- Modal --> <div class="modal right fade" id="filterModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel2"> <div class="modal-dialog" role="document"> <div class="modal-content">
<div class="modal-header justify-content-center bg-primary"> <h5 class="modal-title text-white" id="myModalLabel2"> <?php echo e(trans('Reports')); ?></h5> </div>
<div class="modal-body"> <div class="container"> <form action=""> <div class="row"> <div class="col-md-12"> <label for="">Date</label> <div class="input-group"> <input type="text" value="<?php echo e(isset($request_data['date'])?$request_data['date']:''); ?>" name="date" class="form-control pull-right" id="reservation"> </div> </div>
<div class="col-md-12 mt-3"> <label for=""> Customer</label> <select name="customer_id" id="customers" class="form-control"> <option value="">--Customer--</option> <?php $__currentLoopData = $customers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $customer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option <?php echo e(isset($request_data['customer_id']) && $request_data['customer_id']==$customer->id?'selected':''); ?>
value="<?php echo e($customer->id); ?>"><?php echo e($customer->full_name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div>
<div class="col-md-12 mt-3"> <label for="">Type</label> <select name="main_type" id="allType" class="form-control"> <option value="">--Type--</option> <option <?php echo e(isset($request_data['main_type']) && $request_data['main_type']=='top_up'?'selected':''); ?> value="top_up">Top-Up</option> <option <?php echo e(isset($request_data['main_type']) && $request_data['main_type']=='plan'?'selected':''); ?> value="plan">Plan</option> <option <?php echo e(isset($request_data['main_type']) && $request_data['main_type']=='number'?'selected':''); ?> value="number">Number</option> </select> </div>
<div class="col-md-6 pt-2"> <button class="btn btn-danger btn-sm mt-4 d-block w-100 closeFilterModal" type="button">Close</button> </div> <div class="col-md-6 pt-2"> <button class="btn btn-primary btn-sm mt-4 d-block w-100 float-right" type="submit">Filter</button> </div> </div> </form> </div> </div>
</div><!-- modal-content --> </div><!-- modal-dialog --> </div> <!-- modal -->
<?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('plugins/daterangepicker/moment.min.js')); ?>"></script> <script src="<?php echo e(asset('plugins/daterangepicker/daterangepicker.js')); ?>"></script> <script src="<?php echo e(asset('plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js')); ?>"></script> <script> "use strict"; let orderDataTable=''; const queryString=window.location.search;
orderDataTable= $('#contacts').DataTable({ processing: true, serverSide: true, responsive:true, ajax:'<?php echo e(route('admin.get.all.transactions')); ?>'+queryString,
columns: [ { "data": "profile" }, { "data": "type" }, { "data": "status" }, { "data": "amount" }, { "data": "transaction_id" }, ] });
$(document).on('change', '#allType', function(){ let type = $(this).val();
if(type=='plan'){ $('.sub_type_section').addClass('d-none'); $('.emptySection').removeClass('d-none'); }else{ $('.emptySection').addClass('d-none'); $('.sub_type_section').removeClass('d-none'); } });
//Date range picker $('#reservation').daterangepicker();
$(document).ready(function(){ $('#reservation').val(''); }); $(document).on('click','.cancelBtn', function (e){ $('#reservation').val(''); }); $(document).on('click','.show_filter_modal', function (e){ $('#filterModal').modal('show'); }); $(document).on('click','.closeFilterModal', function (e){ $('#filterModal').modal('hide'); }); $('select[name=customer_id]').select2({ multiple:false })
</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/sms.picotech.app/public_html/resources/views/customer/customer_reports/transactions.blade.php ENDPATH**/ ?>
|