<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<style>
#customers {
  font-family: Arial, Helvetica, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

#customers td, #customers th {
  border: 1px solid #ddd;
  padding: 8px;
    color: white;
    font-size: 18px;
}

#customers tr:nth-child(even){background-color: #f2f2f2;}

#customers tr:hover {background-color: #ddd;}

#customers th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #a34497;
  color: white;
}
</style>
<title>Live Reports</title>
</head>
<body>
    <table id="customers">
        <thead>
            <tr>
                <th>#</th>
                <th>Date/Time</th>
                <th>User Details</th>
                <th>Provider</th>
                <th>Service</th>
                <th>Number</th>
                <th>Api</th>
                <th>Path</th>
                <th>Order Id</th>
                <th>Live Id</th>
                <th>Amount</th>
                <th>Commission</th>
                <th>Total Amount</th>
              	<th>Opening</th>
              	<th>Closing</th>
                <th>Status</th>
            </tr>
        </thead>
        <tbody id="list_result">
        </tbody>
    </table>  

</body>
<script>
    fetchAll();
    setInterval(function(){
        fetchAll();
    }, 5000);
    function fetchAll() {
        //$("#list_result").html('<h4 class="text-center text-secondary my-3">Loading...</h4>');
        $.ajax({
            url: '<?php echo e(route('liveRechargeReportsList')); ?>',
            method: 'post',
            data: {
                _token: '<?php echo e(csrf_token()); ?>',
            },
            success: function(res) {
                $("#list_result").html(res);
            }
        });
    }
</script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
</html>

  <?php /**PATH /home/bongrech/admin.bongrecharge.in/resources/views/admin/admin-reports/live-recharge-report.blade.php ENDPATH**/ ?>