<main id="main-route">
    <div class="main-content transaksi">
        <div class="container">
            <ul class="component-tabs nav nav-tabs" id="transactionTabs">
                <li class="nav-item">
                    <a class="button-pills nav-link active" id="nav-deposit-tab" data-toggle="tab" href="#nav-deposit"
                        role="tab" aria-controls="nav-deposit" aria-expanded="false">
                        <i class="fas fa-wallet"></i>
                        <span>Tambah Dana</span>
                    </a>
                </li>
                 <li class="nav-item">
                    <a class="button-pills nav-link active"  href="https://www.my5pay.com/demo/en/virtualaccountsolution.html"
                         aria-expanded="false">
                        <i class="fas fa-wallet"></i>
                        <span>Payment Otomatis</span>
                    </a>
                </li>
                <li class="nav-item">
                    <a class="button-pills nav-link" id="nav-withdraw-tab" data-toggle="tab" href="#nav-withdraw"
                        role="tab" aria-controls="nav-withdraw" aria-expanded="false">
                        <i class="fas fa-coins"></i>
                        <span>Tarik Dana</span>
                    </a>
                </li>

            </ul>
            <div class="component-tab-content tab-content" id="pills-tabContent">
                <div class="tab-pane fade show active" id="nav-deposit" role="tabpanel"
                    aria-labelledby="nav-deposit-tab">
                    <div class="transaksi-grid row">
                        <div class="col-lg-8">
                            <div class="transaksi-form">
                                <div class="transaksi-formulir page-form">
                                    <div class="page-form__header">Formulir Deposit</div>
                                    <div class="page-form__content">
                                        <div class="transaksi-payment-holder">
                                            <div
                                                class="transaksi-payment transaction-payment-swiper swiper-container swiper-container-initialized swiper-container-horizontal swiper-container-ios">
                                                <div class="swiper-wrapper" id="swiper-wrapper-ecc94510af7ef8ba"
                                                    aria-live="polite" style="transform: translate3d(0px, 0px, 0px);">
                                                    <?php
                                                    $bank_online = mysqli_query($koneksi, "SELECT * FROM tb_bank WHERE level = 'admin' ");
                                                    while ($dambe = mysqli_fetch_array($bank_online)) {
                                                    ?>
                                                    <div class="swiper-slide payment-item swiper-slide-active"
                                                        role="group" aria-label="1 / 10"
                                                        style="width: 101.667px; margin-right: 10px;">
                                                        <div class="payment-status online"></div>
                                                        <div class="payment-body">
                                                            <div class="payment-icon">
                                                                <img src="../uploads/bank/<?php echo $dambe['icon'] ?>"
                                                                    alt="">
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <?php
                                                     }
                                                    ?>

                                                </div> <span class="swiper-notification" aria-live="assertive"
                                                    aria-atomic="true"></span>
                                            </div>
                                            <div class="payment-navigation">
                                                <button class="btn-custom btn-custom-sm navigation-prev--payment"
                                                    tabindex="0" aria-label="Previous slide"
                                                    aria-controls="swiper-wrapper-bcc662484e386692"
                                                    aria-disabled="false">
                                                    <i class="fas fa-angle-left"></i>
                                                </button>
                                                <button class="btn-custom btn-custom-sm navigation-next--payment"
                                                    tabindex="0" aria-label="Next slide"
                                                    aria-controls="swiper-wrapper-bcc662484e386692"
                                                    aria-disabled="false">
                                                    <i class="fas fa-angle-right"></i>
                                                </button>
                                            </div>
                                        </div>
                                        <div class="transaksi-note">
                                            <div class="addbank-note">Selalu pastikan rekening pengirim atau rekening
                                                tujuan sesuai dengan data yang terdaftar.</div>
                                        </div>
                                        <form id="formDeposit" enctype="multipart/form-data" method="post"
                                            action="function/deposit.php">
                                            <div class="transaksi-formulir flip-card">
                                                <div class="flip-front">
                                                    <div class="formulir-form">
                                                        <div class="form-group mb-0" id="bank-lain">
                                                            <div class="row">
                                                                <div class="col-lg-3 d-flex align-items-center">
                                                                    <label>Pilih Bank Anda</label>
                                                                </div>
                                                                <div class="col-lg-6">
                                                                    <div class="input-group">
                                                                        <select name="dari_bank"
                                                                            class="custom-selection form-control"
                                                                            id="<?php echo $b['id'] ?>">
                                                                            <optgroup label="Bank Utama">
                                                                                <option value="<?php echo $b['id'] ?>"
                                                                                    data-code="<?php echo $b['nama_bank']; ?>"
                                                                                    data-accountnumber="<?php echo $b['nomor_rekening']; ?>">
                                                                                    <?php echo $b['nama_bank']; ?> -
                                                                                    <?php echo $b['nomor_rekening']; ?>
                                                                                </option>
                                                                            </optgroup>
                                                                            <optgroup label="Bank Lain">
                                                                            </optgroup>
                                                                        </select>
                                                                        <div class="input-group-append">
                                                                            <a class="btn-custom" href="#"
                                                                                data-toggle="modal"
                                                                                data-target="#bankDetail">
                                                                                <i class="fa fa-plus mr-1"></i>
                                                                                Rekening Saya
                                                                            </a>
                                                                        </div>
                                                                    </div>
                                                                    <span id="memberBankSelect-error"></span>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="form-group mb-0">
                                                            <div class="row">
                                                                <div class="col-lg-3 d-flex align-items-center">
                                                                    <label>Pilih Bank</label>
                                                                </div>
                                                                <div class="col-lg-6">
                                                                    <select name="metode"
                                                                        class="custom-selection form-control"
                                                                        id="bankSelect">
                                                                        <option value="">--- Pilih Bank ---</option>
                                                                        <?php
                                                                       $query = mysqli_query($koneksi, "SELECT * FROM tb_bank WHERE level = 'admin'");
                                                                       while ($data = mysqli_fetch_array($query)) {
                                                                       $id_bank = $data['id'];
                                                                       $nama_bank = $data['nama_bank'];
                                                                       $nomor_rekening = $data['nomor_rekening'];
                                                                       $nama_pemilik = $data['nama_pemilik'];
                                                                       ?>
                                                                        <option value="<?php echo $id_bank; ?>">
                                                                            <?php echo $nama_bank; ?></option>
                                                                        <?php
                                                                        }
                                                                       ?>
                                                                    </select>
                                                                    <span id="bankSelect-error"></span>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <?php
                        $querya = mysqli_query($koneksi, "SELECT * FROM tb_bank WHERE level = 'admin'");
                        while ($dataq = mysqli_fetch_array($querya)) {
                            $id_bank = $dataq['id'];
                            $nama_bank1 = $dataq['nama_bank'];
                            $nomor_rekening = $dataq['nomor_rekening'];
                            $nama_pemilik = $dataq['nama_pemilik'];
                            $icon = $dataq['icon'];
                            ?>
                                                        <div class="form-group bankOption"
                                                            id="epayment-<?php echo $id_bank; ?>"
                                                            style="display: none;">
                                                            <div class="row">
                                                                <div class="col-lg-3"></div>
                                                                <div class=" col-lg-6">
                                                                    <div class="card">
                                                                        <div class="card-header text-center p-1">
                                                                            <img class="img-fluid"
                                                                                style="max-height: 150px"
                                                                                src="../uploads/bank/<?php echo $icon ?>">
                                                                        </div>
                                                                        <div class="card-body text-dark"
                                                                            style="font-weight: 600; font-size: 11px;">
                                                                            <div class="row">
                                                                                <div class="col-6">
                                                                                    Nama Tujuan Akun:
                                                                                </div>
                                                                                <div class="col">
                                                                                    <?php echo $nama_pemilik; ?>
                                                                                </div>
                                                                            </div>
                                                                            <div class="row">
                                                                                <div class="col-6">
                                                                                    Nomor Akun Tujuan:
                                                                                </div>
                                                                                <div class="col-auto flex-shrink-1">
                                                                                    <a href="javascript:;"
                                                                                        name="copyAddress"
                                                                                        id="b1adf38a-4bcf-495a-b734-8eede81404d7">
                                                                                        <span>
                                                                                            <?php echo $nomor_rekening; ?></span>
                                                                                    </a>
                                                                                </div>
                                                                            </div>
                                                                            <div class="row">
                                                                                <div class="col-6">
                                                                                    Min. Deposit:
                                                                                </div>
                                                                                <div class="col-6">
                                                                                    IDR
                                                                                    <?php echo number_format($min_depo, 0, ',', '.'); ?>
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <?php
                        }
                        ?>

                                                        <div class="form-group walletDest">
                                                            <div class="row">
                                                                <div class="col-lg-3 d-flex align-items-center">
                                                                    <label>Dompet Tujuan</label>
                                                                </div>
                                                                <div class="col-lg-6">
                                                                    <select class="custom-selection form-control"
                                                                        name="bonus" id="bankSelect">
                                                                        <option value="tanpabonus">Dompet Utama</option>
                                                                    </select>
                                                                </div>
                                                            </div>
                                                            <span id="walletSelectDeposit-error"></span>
                                                        </div>
                                                        <div class="form-group">
                                                            <div class="row">
                                                                <div class="col-lg-3 d-flex align-items-center">
                                                                    <label>Jumlah Deposit</label>
                                                                </div>
                                                                <div class="col-lg-6">
                                                                    <input name="nominal" required="" id="depositAmount"
                                                                        class="form-control" type="number"
                                                                        placeholder="min deposit IDR 20000">
                                                                </div>
                                                            </div>
                                                            <span id="depositAmount-error"></span>
                                                        </div>
                                                        <!--<div class="col-lg-3">-->
                                                        <!--                                        <label id="amountDesc" class="formulir-desc">Contoh: setoran deposit 50.000, tulis Rp 50000</label>-->
                                                        <!--                                    </div>-->
                                                    </div>
                                                </div>
                                                <div class="row mb-3">
                                                    <div class="col-lg-3 d-flex align-items-center">
                                                        <label style="font-size: 14px;"
                                                            id="notesLabel">Keterangan</label>
                                                    </div>
                                                    <div class="col-lg-6">
                                                        <div id="chooseMode" class="">
                                                            <div class="input-group-prepend" style="display: none;">
                                                                <span id="chooseModeText"
                                                                    class="input-group-text dropdown-toggle"
                                                                    data-toggle="dropdown" aria-haspopup="true"
                                                                    aria-expanded="false">SN</span>
                                                                <div class="dropdown-menu">
                                                                    <span id="chooseModeSN" class="dropdown-item">Serial
                                                                        Number</span>
                                                                    <span id="chooseModeHP" class="dropdown-item">Nomor
                                                                        Pengirim</span>
                                                                </div>
                                                            </div>
                                                            <input id="notes" class="input-custom form-control"
                                                                name="keterangan" maxlength="100" type="text"
                                                                placeholder="Keterangan">
                                                        </div>
                                                    </div>
                                                    <div class="col-lg-3">
                                                        <input type="hidden" name="phoneCreditMode">
                                                        <label style="font-size: 10px;" class="formulir-desc">Maksimal
                                                            100 Karakter</label>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <div class="row">
                                                        <div class="col-lg-3 d-flex align-items-center">
                                                            <label>Bukti Pembayaran</label>
                                                        </div>
                                                        <div class="col-lg-5">
                                                            <input id="proof" name="bukti_transfer" type="file"
                                                                required="">
                                                        </div>
                                                        <div class="col-lg-4">
                                                            <label class="formulir-desc">format didukung jpg, jpeg dan
                                                                png..</br>maksimal 1 MB</label>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="form-group text-center">
                                                    <div class="row">
                                                        <div class="col-lg-12">
                                                            <button name="submit" type="submit"
                                                                class="btn-custom full_width">Kirim</button>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                    </div>
                                </div>
                                </form>
                            </div>
                        </div>
                        <div class="modal custom-popup fade" id="bankDetail" tabindex="-1"
                            aria-labelledby="bankDetailLabel" style="display: none;" aria-hidden="true">
                            <div class="modal-dialog">
                                <div class="modal-content">
                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                        <i class="fas fa-times"></i>
                                    </button>
                                    <div class="modal-body">
                                        <div class="popup-bank-detail">
                                            <div class="bank-detail-header">
                                                <h4>Rekening Saya</h4>
                                            </div>
                                            <div class="bank-detail-info">
                                                <h6 class="info-header">Rekening Utama</h6>
                                                <div class="bank-account">
                                                    <div class="acc-details">
                                                        <div class="row">
                                                            <div class="col-lg-12">
                                                                <div class="acc-name">Nama Rek.:
                                                                    <span><?php echo $b['nama_pemilik']; ?></span></div>
                                                            </div>
                                                            <div class="col-lg-6">
                                                                <div class="bank-name">Nama Bank:
                                                                    <span><?php echo $b['nama_bank']; ?></span></div>
                                                            </div>
                                                            <div class="col-lg-6">
                                                                <div class="acc-number">Nomor Rek.:
                                                                    <span><?php echo $b['nomor_rekening']; ?></span>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="transaksi-info">
                        <div class="info-header">Informasi</div>
                        <div class="info-content">
                            <p>PERHATIKAN DENGAN SEKSAMA NOMOR REKENING TUJUAN SEBELUM TRANSFER !</p>
                            <p>Kami tidak memberikan toleransi apabila terjadi kesalahan transfer uang (Deposit) ke
                                rekening yang tidak tertera di website <?php echo $judul; ?>.</p>
                            <p>Minimal deposit : Rp.<?php echo number_format($min_depo, 0, ',', '.'); ?><br>Mohon
                                Melakukan Deposit Menggunakan Kode Unik<br>Harap melakukan konfirmasi deposit 1x saja,
                                dan tunggu permohonan anda diproses untuk dapat melakukan deposit selanjutnya.</p>
                            Hubungi Whatsapp RESMI <?php echo $judul; ?> : <a
                                href="https://wa.me/<?php echo $whatsapp ?>"><strong>KLIK DISINI</strong></a></p>
                        </div>
                    </div>
                    <div class="transaksi-table-bottom">
                        <div class="bottom-holder page-form">
                            <div class="page-form__header">
                                <div class="bottom-form">
                                    <div class="row d-flex align-items-center">
                                        <div class="col-lg-8">
                                            <div class="form-title">Riwayat Deposit</div>
                                        </div>
                                    </div>
                                </div>
                                <div class="container-fluid table-dataTable">
                                    <table class="table table-hover" id="depositHistoryTable">
                                        <thead>
                                            <tr>
                                                <th>Tanggal</th>
                                                <th>Bank</th>
                                                <th>Jumlah</th>
                                                <th>Status</th>
                                            </tr>
                                        </thead>
                                        <tbody>

                                            <?php 
                                            $query5 = mysqli_query($koneksi, "SELECT * FROM tb_transaksi WHERE id_user = '$extplayer' AND  transaksi = 'Top Up' ORDER BY id DESC LIMIT 7  ");
                                            while ($data1 = mysqli_fetch_array($query5)) {
                                            ?>
                                            <tr>
                                                <td><?php echo $data1['tanggal']; ?></td>
                                                <td><?php echo $data1['metode']; ?></td>
                                                <td>Rp. <?php echo number_format($data1['total']); ?></td>
                                                <td>
                                                    <?php 
                                                    if ($data1['status'] == 'Pending') {
                                                    ?>
                                                    <a class="btn btn-small btn-warning btn-sm">Pending</a>
                                                    <?php
                                                    }elseif ($data1['status'] == 'Sukses') {
                                                    ?>
                                                    <a class="btn btn-small btn-success btn-sm">Sukses</a>
                                                    <?php
                                                    }
                                                    elseif ($data1['status'] == 'Ditolak') {
                                                    ?>
                                                    <a class="btn btn-small btn-danger btn-sm">Ditolak</a>
                                                    <?php
                                                    }else{
                                                    ?>
                                                    <a href="" class="btn btn-small btn-danger btn-sm">Bayar</a>
                                                    <?php
                                                    }
                                                    ?>
                                                </td>
                                            </tr>
                                            <?php
                                            }
                                            ?>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="tab-pane fade" id="nav-withdraw" role="tabpanel" aria-labelledby="nav-withdraw-tab">
                    <div class="transaksi-grid row">
                        <div class="col-lg-8">
                            <div class="transaksi-form">
                                <div class="transaksi-formulir page-form">
                                    <div class="page-form__header">
                                        Formulir Penarikan
                                    </div>
                                    <div class="page-form__content">
                                        <div class="transaksi-payment-holder">
                                            <div
                                                class="transaksi-payment transaction-payment-swiper swiper-container swiper-container-initialized swiper-container-horizontal swiper-container-ios">
                                                <div class="swiper-wrapper" id="swiper-wrapper-bcc662484e386692"
                                                    aria-live="polite"
                                                    style="transition-duration: 0ms; transform: translate3d(0px, 0px, 0px);">
                                                    <?php
                                                    $bank_online = mysqli_query($koneksi, "SELECT * FROM tb_bank WHERE level = 'admin' ");
                                                    while ($dambe = mysqli_fetch_array($bank_online)) {
                                                    ?>
                                                    <div class="swiper-slide payment-item swiper-slide-active"
                                                        style="width: 101.667px; margin-right: 10px;">
                                                        <div class="payment-status online"></div>
                                                        <div class="payment-body">
                                                            <div class="payment-icon">
                                                                <img src="../uploads/bank/<?php echo $dambe['icon'] ?>"
                                                                    alt="<?php echo $dambe['nama_bank'] ?>">
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <?php
                                                    }
                                                    ?>
                                                </div>
                                                <form id="formWithdraw" action="function/withdraw.php" method="POST">
                                                    <div class="transaksi-formulir">
                                                        <div class="formulir-form">
                                                            <div class="form-group">
                                                                <div class="row mt-3">
                                                                    <div class="col-lg-3 d-flex align-items-center">
                                                                        <label>Nama Bank</label>
                                                                    </div>
                                                                    <div class="col-lg-5">
                                                                        <select class="custom-selection form-control"
                                                                            name="bankDestination"
                                                                            id="memberBankSelect">
                                                                            <optgroup label="Bank Utama">
                                                                                <option value="bank"
                                                                                    data-code="<?php echo $b['nama_bank']; ?>"
                                                                                    data-accountnumber="<?php echo $b['nomor_rekening']; ?>">
                                                                                    <?php echo $b['nama_bank']; ?> -
                                                                                    <?php echo $b['nomor_rekening']; ?>
                                                                                </option>
                                                                            </optgroup>
                                                                            <optgroup label="Bank Lain">
                                                                            </optgroup>
                                                                        </select>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <div class="row">
                                                                    <div class="col-lg-3 d-flex align-items-center">
                                                                        <label>Nomor Rekening</label>
                                                                    </div>
                                                                    <div class="col-lg-5 ">
                                                                        <label
                                                                            class="readonly"><?php echo $b['nomor_rekening']; ?>
                                                                            /
                                                                            <?php echo $b['nama_pemilik']; ?></label>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <div class="row">
                                                                    <div class="col-lg-3 d-flex align-items-center">
                                                                        <label>Dompet Asal</label>
                                                                    </div>
                                                                    <div class="col-lg-5 d-flex">
                                                                        <select class="custom-selection form-control"
                                                                            name="walletOrigin"
                                                                            id="walletSelectWithdraw">
                                                                            <option value="main">Dompet Utama</option>
                                                                        </select>
                                                                    </div>
                                                                    <div class="col-lg-4">
                                                                        <label class="formulir-desc">Saldo yang dapat
                                                                            anda tarik : </label>
                                                                        <div class="balance-wd">IDR:
                                                                            <?php echo number_format($liat['active'], 2, ',', '.'); ?><span
                                                                                id="mainDesc"
                                                                                class="originDesc"></span><span
                                                                                id="pokerDesc" class="originDesc"
                                                                                style="display: none;"></span></div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <div class="row">
                                                                    <div class="col-lg-3 d-flex align-items-center">
                                                                        <label>Nominal</label>
                                                                    </div>
                                                                    <div class="col-lg-5">
                                                                        <div class="row">
                                                                            <div class="col-lg-5">
                                                                                <input
                                                                                    class="input-custom form-control money"
                                                                                    type="number" min="50" max="1000000"
                                                                                    name="jumlah" id="depositAmount"
                                                                                    placeholder="...">
                                                                            </div>

                                                                        </div>
                                                                        <span id="withdrawAmount-error"></span>
                                                                    </div>
                                                                    <div class="col-lg-4">
                                                                        <label class="formulir-desc">Jumlah Penarikan (
                                                                            50 = Rp50.000 )</label>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="form-group text-center">
                                                                <button type="submit" name="submit" class="btn-custom"
                                                                    id="submit-withdraw">Kirim</button>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </form>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="transaksi-table-bottom">
                                    <div class="bottom-holder page-form">
                                        <div class="page-form__header">
                                            <div class="bottom-form">
                                                <div class="row d-flex align-items-center">
                                                    <div class="col-lg-8">
                                                        <div class="form-title">Riwayat Withdraw</div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="page-form__content">
                                            <div class="table-dataTable">
                                                <table class="table table-hover table-bordered"
                                                    id="withdrawHistoryTable">
                                                    <thead>
                                                        <tr>
                                                            <th scope="col" class="text-left">Tanggal</th>
                                                            <th scope="col" class="text-left">Transaksi</th>
                                                            <th scope="col" class="text-left">Nominal</th>
                                                            <th scope="col" class="text-center">Status</th>
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                    <?php 
                                                    $query5 = mysqli_query($koneksi, "SELECT * FROM tb_transaksi WHERE id_user = '$extplayer' AND  transaksi = 'Withdraw' ORDER BY id DESC LIMIT 7  ");
                                                    while ($data1 = mysqli_fetch_array($query5)) {
                                                    ?>
                                                        <tr>
                                                            <td><?php echo $data1['tanggal']; ?></td>
                                                            <td><?php echo $data1['transaksi']; ?></td>
                                                            <td>Rp. <?php echo number_format($data1['total']); ?></td>
                                                            <td>
                                                            <?php 
                                                            if ($data1['status'] == 'Pending') {
                                                            ?>
                                                            <a class="btn btn-small btn-warning btn-sm">Pending</a>
                                                            <?php
                                                            }elseif ($data1['status'] == 'Sukses') {
                                                            ?>
                                                            <a
                                                            class="btn btn-small btn-success btn-small ">Sukses</a>
                                                            <?php
                                                            }else if ($data1['status'] == 'Ditolak') {
                                                            ?>
                                                            <a class="btn btn-small btn-danger btn-sm">Ditolak</a>
                                                            <?php
                                                            }else{
                                                            ?>
                                                            <a href="" class="btn btn-small btn-danger btn-sm">Bayar</a>
                                                            <?php
                                                            }
                                                            ?>
                                                            </td>
                                                        </tr>
                                                        <?php
                                                        }
                                                        ?>
                                                    </tbody>
                                                </table>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="tab-pane fade" id="nav-claim" role="tabpanel" aria-labelledby="nav-claim-tab">
                                <div class="transaksi-bonus" style="display: block;">
                                    <div class="claim-bonus">
                                        <div id="promoPage"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="tab-pane fade" id="nav-cashback" role="tabpanel"
                                aria-labelledby="nav-cashback-tab">
                                <div class="transaksi-bonus" style="display: block;">
                                    <div id="cashbackPage">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
</main>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script>
$(document).ready(function() {
    // Ketika elemen <select> berubah
    $("#bankSelect").change(function() {
        // Mendapatkan nilai yang dipilih
        var selectedValue = $(this).val();

        // Semua section yang memiliki class "bankOption" disembunyikan
        $(".bankOption").hide();

        // Menampilkan elemen dengan ID yang sesuai berdasarkan pilihan
        if (selectedValue !== "") {
            $("#epayment-" + selectedValue).show();
        }
    });
});
</script>