<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<?php
header('Access-Control-Allow-Origin: *');
header("Access-Control-Allow-Methods: GET, OPTIONS");
?>
	<link rel="apple-touch-icon" sizes="76x76" href="../assets/img/apple-icon.png">
	<title>
	FBGRAY : ศูนย์รวมจำหน่าย บัญชีเฟสบุ๊ค !!
	</title>
	<!--     Fonts and icons     -->
	<link href="https://fonts.googleapis.com/css?family=Kanit" rel="stylesheet">
	<link href="https://fonts.googleapis.com/css?family=Karla:700|Poppins:400,500,600,700" rel="stylesheet">
	<link
		href="https://fonts.googleapis.com/css?family=Roboto:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i"
		rel="stylesheet">
	<link href="https://use.fontawesome.com/releases/v5.0.6/css/all.css" rel="stylesheet">
	<!-- Nucleo Icons -->
	<link href="<?php echo base_url() ?>assets/css/nucleo-icons.css" rel="stylesheet" />
	<link href="<?php echo base_url() ?>assets/css/nucleo-svg.css" rel="stylesheet" />
	<!-- Font Awesome Icons -->
	<link href="<?php echo base_url() ?>assets/css/font-awesome.css" rel="stylesheet" />
	<link href="<?php echo base_url() ?>assets/css/nucleo-svg.css" rel="stylesheet" />
	<!-- CSS Files -->
	<link href="<?php echo base_url() ?>assets/css/argon-design-system.css?v=1.2.2" rel="stylesheet" />
	<link href="<?php echo base_url() ?>assets/slick/slick.css" rel="stylesheet" />
	<link href="<?php echo base_url() ?>assets/slick/slick-theme.css" rel="stylesheet" />
	<link rel="stylesheet" href="<?php echo base_url() ?>assets/owl/owl.carousel.min.css">
	<link src="<?php echo base_url() ?>assets/owl/owl.carousel.min.css">
	</link>
</head>
<style>
	body,
	span,
	h1,
	h2,
	h3,
	h4,
	h5,
	.tooltip,
	h6,
	a,
	p,
	button {
		font-family: 'Kanit', 'sans-serif !important';
	}

	.black {
		color: black;
	}

	html {
		font-size: 1rem;
	}

	#game {
		transition: opacity .5s ease-out;
		-moz-transition: opacity .5s ease-out;
		-webkit-transition: opacity .5s ease-out;
		-o-transition: opacity .5s ease-out;
		opacity: 1.0;
	}

	#game:hover {
		opacity: .7;
		transition: opacity .5s ease-out;
		-moz-transition: opacity .5s ease-out;
		-webkit-transition: opacity .5s ease-out;
		-o-transition: opacity .5s ease-out;
	}

	@media (max-width: 768px) {

		#acc {
			height: 500px;
			overflow: scroll;
		}

		span {
			font-size: 1rem;
		}
	}

	@media (max-width: 768px) {

		.hi{
			color: #000;
		}
		#wheel {
			height: 100%;
		}

		.ccp-thumb {
			width: 100px;
			height: 93.5%;
		}

		.ccp-item-excerpt {
			font-size: .76rem;
			line-height: 1.36rem;
			text-indent: 1rem;
			overflow: hidden;
			text-overflow: ellipsis;
		}
	}

	@include media-breakpoint-up(sm) {
		html {
			font-size: 1.2rem;
		}
	}

	@include media-breakpoint-up(md) {
		html {
			font-size: 1.4rem;
		}
	}

	@include media-breakpoint-up(lg) {
		html {
			font-size: 1.6rem;
		}
	}

	.swal2-container {
		z-index: 100000 !important;
	}

	@import url('https://fonts.googleapis.com/css?family=Exo:400,700');

	* {
		margin: 0px;
		padding: 0px;
	}

	body {
		font-family: 'Exo', sans-serif;
	}


	.context {
		width: 100%;
		position: absolute;
		top: 50vh;

	}

	.context h1 {
		text-align: center;
		color: #fff;
		font-size: 50px;
	}

	.circles {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		overflow: hidden;
	}

	.circles li {
		position: absolute;
		display: block;
		list-style: none;
		width: 20px;
		height: 20px;
		background: rgba(255, 255, 255, 0.2);
		animation: animate 25s linear infinite;
		bottom: -150px;

	}

	.circles li:nth-child(1) {
		left: 25%;
		width: 80px;
		height: 80px;
		animation-delay: 0s;
	}


	.circles li:nth-child(2) {
		left: 10%;
		width: 20px;
		height: 20px;
		animation-delay: 2s;
		animation-duration: 12s;
	}

	.circles li:nth-child(3) {
		left: 70%;
		width: 20px;
		height: 20px;
		animation-delay: 4s;
	}

	.circles li:nth-child(4) {
		left: 40%;
		width: 60px;
		height: 60px;
		animation-delay: 0s;
		animation-duration: 18s;
	}

	.circles li:nth-child(5) {
		left: 65%;
		width: 20px;
		height: 20px;
		animation-delay: 0s;
	}

	.circles li:nth-child(6) {
		left: 75%;
		width: 110px;
		height: 110px;
		animation-delay: 3s;
	}

	.circles li:nth-child(7) {
		left: 35%;
		width: 150px;
		height: 150px;
		animation-delay: 7s;
	}

	.circles li:nth-child(8) {
		left: 50%;
		width: 25px;
		height: 25px;
		animation-delay: 15s;
		animation-duration: 45s;
	}

	.circles li:nth-child(9) {
		left: 20%;
		width: 15px;
		height: 15px;
		animation-delay: 2s;
		animation-duration: 35s;
	}

	.circles li:nth-child(10) {
		left: 85%;
		width: 150px;
		height: 150px;
		animation-delay: 0s;
		animation-duration: 11s;
	}



	@keyframes animate {

		0% {
			transform: translateY(0) rotate(0deg);
			opacity: 1;
			border-radius: 0;
		}

		100% {
			transform: translateY(-1000px) rotate(720deg);
			opacity: 0;
			border-radius: 50%;
		}

	}
	.custom-toggler.navbar-toggler {
  border-color: rgb(255,102,203);
} 
.navbar-toggler-icon {
  border-color: rgb(255,102,203);
} 
</style>
<nav class="navbar navbar-expand-lg navbar-dark " style="background: rgba(3,108,228,1); z-index: 100;">
    <div class="container">
		<h4><img src="<?php echo base_url('image/transparent.png') ?>" class="img-thumbnail" style="height: 50px;" alt=""></h4>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar-default" aria-controls="navbar-default" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbar-default">
            <div class="navbar-collapse-header">
                <div class="row">
                    <div class="col-6 collapse-brand">
                        <a href="javascript:void(0)">
                            <img src="../../assets/img/brand/blue.png">
                        </a>
                    </div>
                    <div class="col-6 collapse-close">
                        <button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbar-default" aria-controls="navbar-default" aria-expanded="false" aria-label="Toggle navigation">
                            <span></span>
                            <span></span>
                        </button>
                    </div>
                </div>
            </div>
            
			<ul class="navbar-nav ml-lg-auto">
				<li class="nav-item">
					<a class="nav-link" href="<?php echo base_url('') ?>"><span class="hi"> หน้าหลัก
						</span></a>
				</li>
				<li class="nav-item">
					<a class="nav-link" href="<?php echo base_url('Refill') ?>"><span class="hi"> เติมเงิน </span></a>
				</li>
				<li class="nav-item">
					<a class="nav-link" href="https://lin.ee/6MS5Fn0"><span class="hi"> ติดต่อเรา </span></a>
				</li>
				<?php 
				if($this->session->userdata('id_users') != null)
				{ ?>
				<li class="nav-item dropdown">
					<a class="nav-link" href="#" id="navbar-primary_dropdown_1" role="button" data-toggle="dropdown"
						aria-haspopup="true" aria-expanded="false"><span
							class="hi"><?= $this->session->userdata('username') ?> คงเหลือ:
							<?= number_format($this->session->userdata('credit'),2) ?> บาท </span></a>
					<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbar-primary_dropdown_1">
						<?php 
						if($this->session->userdata('level') == 99)
						{ ?>
						<a class="dropdown-item" href="<?= base_url('Admin/Dashboard'); ?>">หลังบ้าน</a>
						<?php 
						} ?>
						<a class="dropdown-item" href="<?php echo base_url('Account/HistoryBuy') ?>">ประวัติการซื้อสินค้า</a>
						<a class="dropdown-item" href="<?php echo base_url('Account/HistoryRefill') ?>">ประวัติการเติมเงิน</a>
						<div class="dropdown-divider"></div>
						<a class="dropdown-item" href="<?php echo base_url('Home/Logout') ?>">ออกจากระบบ</a>
					</div>
				</li>
				<?php	
				} else{ ?>
				<li class="nav-item">
					<a class="nav-link" href="<?php echo base_url('Login') ?>"><span class="hi"> เข้าสู่ระบบ
						</span></a>
				</li>
				<?php
				} ?>
			</ul>
        </div>
    </div>
</nav>
<body style="background:#eeeeee">
