<!-- Account Balance -->
<main id="main-route">
	<div class="main-content slot-game">
		<div class="container">
			<div class="slot-game__container">
				<div class="page-header">Pragmatic Play</div>
				<div class="slot-game-list">
					<?php 

					$id_provider = 'PragmaticPlay';
					$query = mysqli_query($koneksi, "SELECT * FROM tb_gamelist WHERE provider = '$id_provider' AND datatype = 'VSB' ");
					while ($data = mysqli_fetch_array($query)) {
						$que = mysqli_query($koneksi, "SELECT * FROM tb_user WHERE extplayer = '$extplayer' AND status_game = 'offgame' ");

						$cek = mysqli_num_rows($que);

						if($cek > 0){
							$playUrl = 'index.php?page=casino_pragmatic&pesan=22';
						}else{
							$idgame = $data['gameid'];
							if ($id_login == '') {
								$playUrl = 'index.php?pesan=28';
							}else{
								$externalPlayerId = $extplayer;
								$playUrl = '../main/main.php?provider='.$id_provider.'&gamecode='.$idgame;
							} 
						}
						?>



						<div class="slot-game-item slot-tg" style="display: block;">
                            <a class="main sekarang main-sekarang-alert" href="<?php echo $link_url ?>">
                               
                            <div class="slot-game-img">
                                <img src="<?php echo $row['game_image'] ?>" style="" href="<?php echo $link_url ?>">
                            </div>
                            <div class="slot-game-hover">
                            </div>
                             </a>
                        </div>

                        <?php
                    } else {
                        ?>
                        <div class="slot-game-item slot-tg xbonus-buy-slot-games show" style="">
                            <div class="slot-game-img">
                                <img src="<?php echo $row['game_image'] ?>" style="" onclick='gameAlert()'>
                            </div>
                            <div class="progress baradjust">
                                <div class="progress-bar progress-bar-striped progress-bar-animated bg-info" id="progress-rtp" role="progressbar" style="width:<?= $row['rtp'] ?>%;" aria-valuenow="81" aria-valuemin="0" aria-valuemax="100">
                                    RTP <?= $randomRTP ?>%
                                </div>
                            </div>
                            <div class="slot-game-hover">
                                <a class="main sekarang main-sekarang-alert" onclick='gameAlert()'>
                                </a>
                            </div>
                        </div>
                    <?php }
                } ?>



				</div>
			</div>
		</div>
	</div>

</main>