Viewing file: f603c482ee8933904abc7766d57ed1ab.php (9.34 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> <?php echo e(trans('admin.Message_Reports')); ?>
<?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')); ?>"> <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; } .total-accumulated-sms { background: #5b73e8; padding: 4px 8px; color: #fff; border-radius: 3px; } </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 echo e(trans('admin.Message_Reports')); ?>
</h2> <div class="float-right"> <span id="download-message-report-sec"></span> <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 class="float-right w-100 text-right" id="show_total_sms"></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('Profile')); ?></th> <th><?php echo e(trans('Details')); ?></th> <th><?php echo e(trans('From')); ?></th> <th><?php echo e(trans('To')); ?></th> <th><?php echo e(trans('Status')); ?></th> <th><?php echo e(trans('SMS Count')); ?></th> <th><?php echo e(trans('Title SMS')); ?></th> <th><?php echo e(trans('SMS Content')); ?></th> <th><?php echo e(trans('Characters Count.')); ?></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"> <h4 class="modal-title text-white" id="myModalLabel2"> <?php echo e(trans('Message Reports')); ?> </h4> </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 placeholder="--Select Date Range--" 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="staff_id"> Profile </label> <select name="staff_id" id="staff_id" class="form-control select2-single"> <option value="">--Select Profile--</option>
</select> </div> <div class="form-group col-md-12 mt-2"> <label for="">Status</label> <select name="status" id="" class="form-control"> <option value="">--Select Status--</option> <option <?php echo e(isset($request_data['status']) && $request_data['status']=='sent'?'selected':''); ?> value="sent">Sent</option> <option <?php echo e(isset($request_data['status']) && $request_data['status']=='failed'?'selected':''); ?> value="failed">Failed</option> </select> </div>
<div class="form-group col-md-12"> <label for="">Type</label> <select name="type" id="" class="form-control"> <option value="">--Select Type--</option> <option <?php echo e(isset($request_data['type']) && $request_data['type']=='plain_sms'?'selected':''); ?> value="plain_sms">Plain SMS</option> <option <?php echo e(isset($request_data['type']) && $request_data['type']=='whatsapp_sms'?'selected':''); ?> value="whatsapp_sms">Whatsapp SMS</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('customer.get.all.messages.report')); ?>'+queryString,
columns: [ { "data": "profile" }, { "data": "details" }, { "data": "from" }, { "data": "to" }, { "data": "status" }, { "data": "total" }, { "data": "title_sms" }, { "data": "body" }, { "data": "characters_count" }, ] });
//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'); }); </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/report/message_report.blade.php ENDPATH**/ ?>
|