Viewing file: defaaaca28f9b7021f9b25d1006f99da99fca459.php (8.32 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title','Reports | SmsBox'); ?>
<?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')); ?>"> <script> let orderDataTable = ''; </script> <style> .dropdown-menu{ left: -22px!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"> <div class="row"> <div class="col-lg-5"> <h2 class="card-title"><?php echo app('translator')->get('customer.reports'); ?></h2> </div> <div class="col-lg-7"> <div class="dropdown"> <button class="btn btn-secondary dropdown-toggle float-right" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fas fa-filter"></i> Filter </button> <div class="dropdown-menu pull-left" aria-labelledby="dropdownMenuButton"> <form method="get" id="filtering-form"> <div class="row m-3"> <div class="col-lg-6"> <div class="form-group"> <label for="confirm_message"><?php echo app('translator')->get('customer.from_time'); ?></label> <input type="date" value="<?php echo e(request()->get('from_date')); ?>" name="from_date" class="form-control"> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label for="confirm_message"><?php echo app('translator')->get('customer.to_time'); ?></label> <input type="date" value="<?php echo e(request()->get('to_date')); ?>" name="to_date" class="form-control"> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label for="type"><?php echo app('translator')->get('customer.type'); ?></label> <select class="form-control" name="type"> <option <?php echo e(request()->get('type') == 'sent'?'selected':''); ?> value="sent">Sent</option> <option <?php echo e(request()->get('type') == 'inbox'?'selected':''); ?> value="inbox">Inbox</option> </select> </div> </div> <div class="col-lg-6" > <div class="form-group" id="statusSection"> <label for="status"><?php echo app('translator')->get('customer.status'); ?></label> <select class="form-control" name="status"> <option <?php echo e(request()->get('status') == 'running'?'selected':''); ?> value="queue">Queue</option> <option <?php echo e(request()->get('status') == 'succeed'?'selected':''); ?> value="succeed">Succeed</option> <option <?php echo e(request()->get('status') == 'failed'?'selected':''); ?> value="failed">Failed</option> </select> </div> </div> <div class="col-lg-12"> <button type="submit" class="btn btn-primary float-right">Submit</button> </div> </div> </form> </div> </div> </div> </div>
</div> <!-- /.card-header --> <div class="card-body table-body"> <div class="row">
</div> <table id="reportTable" class="table table-striped table-bordered dt-responsive nowrap"> <thead> <tr> <th><?php echo app('translator')->get('customer.message'); ?></th> <th><?php echo app('translator')->get('customer.from'); ?></th> <th><?php echo app('translator')->get('customer.to'); ?></th> <th><?php echo app('translator')->get('customer.type'); ?></th> <th><?php echo app('translator')->get('customer.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=""> "use strict"; const queryString=window.location.search; orderDataTable = $('#reportTable').DataTable({ processing: true, serverSide: true, responsive:true, ajax: { "url": '<?php echo e(route('customer.get.reports')); ?>'+queryString, }, columns: [ { "data": "body"}, { "data": "from" }, { "data": "to" }, { "data": "type" }, { "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', 'select[name=type]', function (e){ const type=$(this).val(); if(type=='inbox'){ $('#statusSection').addClass('d-none'); }else{ $('#statusSection').removeClass('d-none'); } }) </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/picotext.picotech.app/public_html/resources/views/customer/report/index.blade.php ENDPATH**/ ?>
|