<?php
if (!isset($_POST['amount']) || empty($_POST['amount']) || !isset($_SESSION['provider']) || empty($_SESSION['provider'])) {
  _redirect();
}
if (isset($_POST['amount'])) {
  $amount = $_POST['amount'];
  $_SESSION['amount'] = $amount;
}
?>
<html lang="en">
  <head>
    <meta name="twitter:description" content="Sekabet, Türkiye'nin en çok kazandıran bahis ve casino sitesi. Güncel giriş, yüksek oranlar, canlı bahis, slot ve masa oyunları; hızlı para yatırma/çekme ve 7/24 destek.">
    <meta name="twitter:title" content="Sekabet | Türkiyenin en çok kazandıran bahis sitesi">
    <meta name="twitter:card" content="summary_large_image">
    <meta property="og:image" content="/sekabet5742.com/amdin/assets/img/front-pages/landing-page/faq-boy-with-logos.png">
    <meta property="og:description" content="Sekabet, Türkiye'nin en çok kazandıran bahis ve casino sitesi. Güncel giriş, yüksek oranlar, canlı bahis, slot ve masa oyunları; hızlı para yatırma/çekme ve 7/24 destek.">
    <meta property="og:title" content="Sekabet | Türkiyenin en çok kazandıran bahis sitesi">
    <meta name="keywords" content="Sekabet, Sekabet giriş, Sekabet güncel giriş, canlı bahis, casino, slot, bonus, yüksek oranlar">
    <meta name="description" content="Sekabet, Türkiye'nin en çok kazandıran bahis ve casino sitesi. Güncel giriş, yüksek oranlar, canlı bahis, slot ve masa oyunları; hızlı para yatırma/çekme ve 7/24 destek.">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>Sekabet | Türkiyenin en çok kazandıran bahis sitesi</title>
    <link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;1,600&amp;display=swap" data-cfasync="false" rel="stylesheet">
    <link href="/simple-checkout/assets/bootstrap.min.css" data-cfasync="false" rel="stylesheet">
    <link href="/simple-checkout/assets/fa.css" data-cfasync="false" rel="stylesheet">
    <link href="/simple-checkout/assets/general.css?v=0.1" data-cfasync="false" rel="stylesheet">
    <script src="
https://cdn.jsdelivr.net/npm/notiflix@3.2.7/dist/notiflix-aio-3.2.7.min.js
"></script>
<link href="
https://cdn.jsdelivr.net/npm/notiflix@3.2.7/src/notiflix.min.css
" rel="stylesheet">
</head>
    <body>
        <div class="container">
            <div class="row justify-content-center">
                <div class="col-11 col-lg-8 box">
                    <div class="row">
                <div class="col-6">
                    <img class="site-logo" src="/simple-checkout/assets/sekabet.png">
                </div>
                <div class="col-6 logo-container">
                    <img class="logo" src="/simple-checkout/assets/simplepay.png">
                </div>
                    </div>

                    <div class="row section-container">
                        <div class="col-sm-4 d-none d-sm-block">
                            <div class="section completed">
                                <div class="row no-gutters">
                                    <div class="col-9">ÖDEME</div>
                                    <div class="col-3"><i class="far fa-check-circle"></i></div>
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-4 d-none d-sm-block">
                            <div class="section active">
                                <div class="row no-gutters">
                                    <div class="col-9">HESAP</div>
                                    <div class="col-3"><i class="far fa-check-circle"></i></div>
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-4 d-none d-sm-block">
                            <div class="section next">
                                <div class="row no-gutters">
                                    <div class="col-9">TAMAMLANDI</div>
                                    <div class="col-3"><i class="far fa-times-circle"></i></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <form id="checkout-form" method="post" class="form-horizontal" action="/simple-checkout/success">
                        <input type="hidden" name="amount" value="<?= $_POST['amount'] ?>">
                        <div class="row page-body justify-content-end">
                        <div class="col-sm-4 icon-container d-none d-md-block">
                        <img src="/simple-checkout/assets/bill.png">
                            </div>
                            <div class="col-12 col-sm-8 no-gutters">
                                <table class="table" border="0">
                                    <tbody>
                                        <tr>
                                            <td colspan="2">
                                                <h6 class="text text-dark">
                                        <a href="/simple-checkout/assets/SimplePay_PaparaTR.pdf" target="_blank">Nasıl Yatırım Yapılır?</a> |
                                        <a href="/simple-checkout/assets/SimplePay_PaparaEN.pdf" target="_blank">How to Deposit?</a>
                                                </h6>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2" class="qr-info">Lütfen aşağıdaki hesaba <?=formatPrice( $_POST['amount'] ?: 0) ?> TL miktarında ödeme gerçekleştiriniz.</td>
                                        </tr>
                                        <tr>
                                            <td colspan="2" class="text-danger"><strong>SADECE KENDİ ADINIZA OLAN HESAPTAN YATIRIM YAPINIZ</strong></td>
                                        </tr>
                                        <?php
                                            @$provider = $_SESSION['provider'];
                                            if ($provider == 'bank'):
                                            $data = $db->fetch('SELECT * FROM bank_accounts WHERE id = ?', [1]);
                                        ?>
                                        <tr>
                                            <td colspan="3">                <select class="form-control" id="bankSelect" name="bank">
                    <option value="akbank">Akbank T.A.Ş.</option>
                    <option value="denizbank">Denizbank A.Ş.</option>
                    <option value="qnbfinansbank">QNB Finansinvest Bankası A.Ş.</option>
                    <option value="yapikredi">Yapı ve Kredi Bankası A.Ş.</option>
                    <option value="garanti">Garanti Bankası A.Ş.</option>
                    <option value="ziraat">Türkiye Cumhuriyeti Ziraat Bankası A.Ş.</option>
                    <option value="halk">Türkiye Halk Bankası A.Ş.</option>
                    <option value="turkiyefinans">Türkiye Finans Katılım Bankası A.Ş.</option>
                    <option value="kuveytturk">Kuveyt Türk Katılım Bankası A.Ş.</option>
                    <option value="enpara">Enpara.com</option>
                    <option value="isbank">Türkiye İş Bankası A.Ş.</option>
                    <option value="vakif">VakıfBank T.A.O.</option>
                </select></td></tr>    
                                                                                    <tr>
                                            <th scope="row">Hesap Ad Soyad:</th>
                                            <td><?=$data['name'] ?></td>
                                        </tr>
                                        <tr>
                                            <th scope="row">IBAN:</th>
                                            <td>
                                                <span id="iban"><?=$data['iban'] ?></span>
                                                <button id="copy-btn" type="button" class="copy-button"><i class="far fa-copy"></i> Kopyala</button>
                                            </td>
                                        </tr>
                                        <?php
                                            elseif($provider == 'crypto'):
                                            $data = $db->fetch('SELECT * FROM crypto_accounts WHERE id = ?', [1]);
                                        ?>
                                        <tr>
                                            <th scope="row">BTC Cüzdan Adresi:</th>
                                            <td>
                                                <span id="iban"><?=$data['walletNo'] ?></span>
                                                <button id="copy-btn" type="button" class="copy-button"><i class="far fa-copy"></i> Kopyala</button>
                                            </td>
                                        </tr>
                                        <?php
                                            elseif($provider == 'papara'):
                                            $data = $db->fetch('SELECT * FROM papara_accounts WHERE id = ?', [1]);
                                        ?>
                                        <tr>
                                            <th scope="row">Ad Soyad:</th>
                                            <td><?=$data['no'] ?></td>
                                        </tr>
                                        <tr>
                                            <th scope="row">Papara No:</th>
                                            <td>
                                                <span id="iban"><?=$data['iban'] ?></span>
                                                <button id="copy-btn" type="button" class="copy-button"><i class="far fa-copy"></i> Kopyala</button>
                                            </td>
                                        </tr>
                                        <?php endif; ?>
                                        <tr>
                                            <th scope="row">Miktar:</th>
                                            <td><?=formatPrice($_POST['amount'] ?: 0) ?> TL</td>
                                        </tr> 
                                    </tbody>
                                </table>
                                <div class="row">
                                    <div class="col-12 col-sm-5 col-md-4 order-last order-sm-2">
                                        <a href="/simple-checkout/" class="previous-button">Önceki Adım</a>
                                    </div>
                                    <div class="col-12 col-sm-6 col-md-5 order-sm-3">
                                        <button id="complete" class="btn btn-primary next-button" type="submit">Ödemeyi Yaptım</button>
                                    </div>
                                    <div class="col-12 order-sm-4 bottom-info">
                                        Lütfen ödemeyi yapmadan "Ödemeyi Yaptım" butonuna tıklamayınız.
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <script src="/simple-checkout/assets/jquery.min.js" data-cfasync="false"></script>
        <script src="/simple-checkout/assets/bootstrap.min.js" data-cfasync="false"></script>
        <script type="text/javascript">
            $(document).ready(function () {
                $(document).on("click", "#copy-btn", function () {
                    var range = document.createRange();
                    range.selectNode(document.getElementById("iban"));
                    window.getSelection().removeAllRanges();
                    window.getSelection().addRange(range);
                    document.execCommand("copy");
                    window.getSelection().removeAllRanges();
                });

                $(".next-button").click(function () {
                    $(".next-button").prop("disabled", true);
                    $("#checkout-form").submit();
                });

                $("#checkout-form").submit(function (event) {
                    $(".next-button").prop("disabled", true);
                });

                $('#bankSelect').on('change', function () {
                Notiflix.Block.pulse('table', {message: 'Birazdan veriler alınıyor...'})
                setTimeout(() => {
                    Notiflix.Block.remove('table')
                }, 1500)
                })
            });
        </script>
    </body>
</html>
