HEX
Server: Apache/2.4.41 (Amazon) OpenSSL/1.0.2k-fips PHP/5.6.40
System: Linux ip-172-31-40-18 4.14.146-93.123.amzn1.x86_64 #1 SMP Tue Sep 24 00:45:23 UTC 2019 x86_64
User: apache (48)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: //var/www/html/punjabcabs/storage/framework/views/f971bdba7d2acfb700df82d6a902afc06e671064.php
<?php $__env->startSection('title', 'User Reviews '); ?>

<?php $__env->startSection('content'); ?>

    <div class="content-area py-1">
        <div class="container-fluid">
            <div class="row bg-title">
                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                    <h4 class="page-title"><?php echo app('translator')->get('admin.member.user_reviews'); ?></h4>
                </div>
                <div class="col-lg-6 col-sm-6 col-md-6 col-xs-12">
                    
                    <ol class="breadcrumb">
                        <li><a href="<?php echo e(route('admin.dashboard')); ?>"><?php echo app('translator')->get('admin.dashboard'); ?></a></li>
                        <li class="active"><?php echo app('translator')->get('admin.member.user_reviews'); ?></li>
                    </ol>
                </div>
            </div>
            <div class="box box-block bg-white">
                <table class="table table-striped table-bordered dataTable" id="user-review">
                    <thead>
                        <tr>
                            <th><?php echo app('translator')->get('admin.member.id'); ?></th>
                            <th><?php echo app('translator')->get('admin.member.request_id'); ?></th>
                            <th><?php echo app('translator')->get('admin.member.user_name'); ?></th>
                            <th><?php echo app('translator')->get('admin.member.driver_name'); ?></th>
                            <th><?php echo app('translator')->get('admin.member.ratings'); ?></th>
                            <th><?php echo app('translator')->get('admin.member.date_time'); ?></th>
                            <th><?php echo app('translator')->get('admin.member.comments'); ?></th>
                        </tr>
                    </thead>
                </table>
            </div>
            
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
<script type="text/javascript" src="<?php echo e(asset('asset/js/rating.js')); ?>"></script> 
<script>
    function update_content(){
        $('#user-review').DataTable({
            "destroy": true,
            "responsive": true,
            "dom": 'Bfrtip',
            "buttons": [
                'copyHtml5',
                'excelHtml5',
                'csvHtml5',
                'pdfHtml5'
            ],
            "oLanguage": {
                'sProcessing': '<i class="fa fa-circle-o-notch fa-spin" style="font-size:24px;color:#a377b1;"></i>'
            },
            "processing": true,
            "serverSide": true,
            "ajax":{
                     "url": "<?php echo e(route('admin.user.reviewuser')); ?>",
                     "dataType": "json",
                     "type": "POST",
                     "data":{ _token: "<?php echo e(csrf_token()); ?>"}
                   },
            "columns": [
                { "data": "id" },
                { "data": "request_id" },
                { "data": "user_name" },
                { "data": "provider_name" },
                { "data": "rating" },
                { "data": "date_time" },
                { "data": "comments" },
            ],    
            "createdRow": function (row, data, dataIndex) {

                            // any manipulation in the row element
                           var ratingInput = $(row).find('.rating');
                           $(ratingInput).rating();

                        }
        });
        
    }

    $(window).load(function(){
        update_content();
        
    });
</script>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layout.base', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>