<div class=reporting-form-container>
    <div class=tab-menu-background-container>
    <div class=tab-menu-container data-style=vertical>
        <a href="?page=riwayat_deposit" data-active=true style="color: white">
            <i data-icon=referral style="--image-src:url(//d1bnhxh1olb98c.cloudfront.net/Images/nexus-alpha/red/mobile/tabs/referral.svg?v=20240326-2);--active-image-src:url(//d1bnhxh1olb98c.cloudfront.net/Images/nexus-alpha/red/mobile/tabs/referral-active.svg?v=20240326-2)"></i>
            Riwayat Deposit 
        </a>
        <a href="?page=riwayat_withdraw" data-active=false style="color: white">
            <i data-icon=referral style="--image-src:url(//d1bnhxh1olb98c.cloudfront.net/Images/nexus-alpha/red/mobile/tabs/referral.svg?v=20240326-2);--active-image-src:url(//d1bnhxh1olb98c.cloudfront.net/Images/nexus-alpha/red/mobile/tabs/referral-active.svg?v=20240326-2)"></i>
            Riwayat Withdraw 
        </a>

    </div>
</div>
<div class=standard-form-title>Riwayat Deposit Member</div>
    <div class=reporting-scroll-container>

        <table class="table grid_table">
            <thead>
                <tr>
                    <th scope=col>Tanggal/Waktu(GMT+7)</th>
                    <th scope=col>Tipe Pembayaran</th>
                    <th scope=col>Jumlah Deposit</th>
                    <th scope=col>Status</th>
                    <tbody>
                        <?php
                        $query = mysqli_query($koneksi, "SELECT * FROM tb_transaksi WHERE id_user = '$extplayer' AND transaksi = 'Top Up' ORDER BY id DESC ");
                        while ($data = mysqli_fetch_array($query)) {
                            ?>
                            <tr>
                                <td><?php echo $data['tanggal'] ?></td>
                                <td>Deposit</td>
                                <td><?php echo number_format($data['total']) ?></td>
                                <td><?php echo $data['status'] ?></td>
                                
                            </tr>
                            <?php
                        }
                        ?>
                        
                    </tbody>
                </tr>
            </table>
        </thead>
    </div>
</div>
