<?php echo $__env->make('admin/header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<!-- Page Container START -->
<div class="page-container">
    <!-- Content Wrapper START -->
    <div class="main-content"> 
        <div class="row">
            <div class="col-lg-12">
                <div class="horizontal-form">
                    <form action="<?php echo e(url('/admin/topup-report-wallet')); ?>" method="POST" enctype="multipart/form-data">
                        <?php echo csrf_field(); ?>
                        <div class="form-group row">
                            <div class="col-md-6 mb-6">
                                <input id="date" type="date" class="form-control" name="txndate" value="">
                            </div>

                            <div class="col-md-2  mb-2">
                                <div class="form-group text-left">
                                    <!--<button type="submit" class="btn btn-md btn-primary" name="submit" value="EXPORT">Export</button>-->
                                    <button type="submit" class="btn btn-md btn-primary" name="submit" value="VIEW">View</button>
                                </div>                                        
                            </div>                                    
                        </div>
                    </form>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="col-md-12 col-lg-12">
                <div class="card">
                    <div class="card-body">
                        <?php if(session('success')): ?>
                            <div class="alert alert-success mb-1 mt-1">
                                <?php echo e(session('success')); ?>

                            </div>
                        <?php endif; ?>
                        <div class="d-flex justify-content-between align-items-center">
                            <h5>Wallet TopUp Report</h5>                                        
                        </div>
                        <div class="m-t-30">
                            <div class="table-responsive">
                                <table class="table table-hover table-bordered" id="datatable">
                                    <thead>
                                        <tr>
                                            <th>Name</th>
                                            <th>Amount</th>
                                            <th>Charge</th>
                                            <th>Gst</th>
                                            <th>Net Amount</th>
                                            <th>Utr</th>                                                                                                
                                            <th>Created At</th>
                                            <!--<th> IP </th>-->
                                           
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <?php if(!empty($walletTopup)): ?>
                                            <?php $__currentLoopData = $walletTopup; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <tr>
                                                <td><?php echo e($rows->user->name); ?></td>
                                                <td><?php echo e($rows->amount); ?></td>
                                                <td><?php echo e($rows->charge); ?></td>
                                                <td><?php echo e($rows->gst); ?></td>
                                                <td><?php echo e($rows->totalAmount); ?></td>  
                                                <td><?php echo e($rows->utr); ?></td>                                                 
                                                <td><?php echo e($rows->created_at); ?></td>  
                                                 <!--<td><?php echo e($rows->IpAddress); ?></td>  -->


                                            </tr>                                            
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php endif; ?>
                                    </tbody>
                                </table>
                                
                            </div>
                            
                        </div>
                    </div>
                </div>
            </div>
            
        </div>
    </div>
    <!-- Content Wrapper END -->
    <!-- model -->
    <link rel="stylesheet" href="https://cdn.datatables.net/1.11.5/css/jquery.dataTables.min.css">
    <link rel="stylesheet" href="https://cdn.datatables.net/buttons/2.1.1/css/buttons.dataTables.min.css">
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script src="https://cdn.datatables.net/1.11.5/js/jquery.dataTables.min.js"></script>
    <script src="https://cdn.datatables.net/buttons/2.1.1/js/dataTables.buttons.min.js"></script>
    <script src="https://cdn.datatables.net/buttons/2.1.1/js/buttons.html5.min.js"></script>
    

<script type="text/javascript">
    $(document).ready(function () {
        let dataTable = new DataTable('#datatable', {
            ordering: false,
            dom: 'Bfrtip',
            buttons: [
                 'excel', 'pdf'
            ]
        });
    });
</script>

<?php echo $__env->make('admin/footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/dashboardseospay/public_html/dashboard.seospay.tech/resources/views/admin/wallet-topup-report.blade.php ENDPATH**/ ?>