Viewing file: 0f4abdb1f945ef5152b2c50eb8761ed1.php (10.15 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title', trans('customer.Message_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 echo e(trans('customer.Message_Reports')); ?>
</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> <?php echo e(trans('customer.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.details')); ?></th> <th><?php echo e(trans('admin.from')); ?></th> <th><?php echo e(trans('admin.to')); ?></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('customer.Message_Reports')); ?> </h4> </div>
<div class="modal-body"> <div class="container"> <form action=""> <div class="row"> <div class="col-md-12"> <label for=""><?php echo e(trans('admin.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=""> <?php echo e(trans('admin.customers.customer')); ?></label> <select name="customer_id" id="customers" class="form-control select2-single"> <option value="">--<?php echo e(trans('admin.customers.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"> <div class="form-group"> <label for=""><?php echo e(trans('customer.Destination')); ?></label> <select name="destination" id="" class="form-control"> <option value="">--<?php echo e(trans('customer.Select_Destination')); ?>--</option> <option <?php echo e(isset($request_data['destination']) && $request_data['destination']=='inbound'?'selected':''); ?> value="inbound">Inbound</option> <option <?php echo e(isset($request_data['destination']) && $request_data['destination']=='outbound'?'selected':''); ?> value="outbound">Outbound</option> </select> </div> </div> <div class="col-md-12 mt-3"> <div class="form-group"> <label for=""><?php echo e(trans('customer.type')); ?></label> <select name="type" id="" class="form-control"> <option value="">--<?php echo e(trans('customer.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']=='mms'?'selected':''); ?> value="mms">MMS</option> <option <?php echo e(isset($request_data['type']) && $request_data['type']=='whatsapp_sms'?'selected':''); ?> value="whatsapp_sms">Whatsapp SMS</option> <option <?php echo e(isset($request_data['type']) && $request_data['type']=='voice_sms'?'selected':''); ?> value="voice_sms">Voice SMS</option> </select> </div> </div>
<div class="col-md-6 pt-2"> <button class="btn btn-danger btn-sm mt-4 d-block w-100 closeFilterModal" type="button"> <?php echo e(trans('admin.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"> <?php echo e(trans('customer.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.message.getall.reports')); ?>'+queryString,
columns: [ { "data": "profile" }, { "data": "details" }, { "data": "from" }, { "data": "to" }, ] });
//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'); }); $('.select2-single').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/message.blade.php ENDPATH**/ ?>
|