<?php
    require_once 'check_security.php';
    
?>


<!DOCTYPE html>

<html lang="en">
<head>
    <meta http-equiv='X-UA-Compatible' content='IE=edge'>
    <title>Fair Battle Dashboard</title>
    
    <meta name='viewport' content='width=device-width, initial-scale=1,maximum-scale=1'>
    	<link href="/adminnh/assist/css/homepage.css" rel="stylesheet" type="text/css" />
    <script src='main.js'></script>
    
</head>


    




<style>
    
body{
display: block;
background-color: aliceblue;
}
*{
padding: 0;
margin: 0;

box-sizing: border-box;
font-family: Canva Sans,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;;
text-decoration: none;


}
div.maincontaner{
padding: 20dp;
background-color: white;
box-shadow: 5px 5px rgba(red, green, blue, alpha);
}
div.maincontaner div.hadercontainer{

display: flex;
width: var(--s-full);
align-items: center;

border: 1px solid #ccc;

    box-shadow: 1px 5px 10px cadetblue;
background-color: darkturquoise;

}
div.maincontaner div.hadercontainer:hover{
background-color: skyblue;
border: 1px solid darkturquoise;
border-radius: 3px;
}
div.maincontaner div.hadercontainer h2{
margin-right: auto;
font: 2em;
margin-left: 20px;
text-align: left;

} 
div.maincontaner div.hadercontainer div.poincont{
margin-right: 20px;
border: none;
background-color: transparent;

box-shadow: 10px;

border-radius: 19px;
}
div.maincontaner div.hadercontainer div.poincont img{
margin: 0;
width: 40px;


}
div.maincontaner div.hadercontainer div.profilecontainer{
margin: 5px;
display: flex;
}
div.maincontaner div.hadercontainer div.profilecontainer  img{
    width: 40px;
    height: 40px;
border-radius: 50%;
margin: 5px;
}
div.maincontaner div.hadercontainer div.profilecontainer div.nameemailc{

margin: auto;
}
div.maincontaner div.hadercontainer div.profilecontainer div.nameemailc h2{
margin: 0;

}
div.bodyconder{
    margin: 5dp;
    
}
div.bodyconder div.allcardconter{
    padding: 10px;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      grid-gap: 2rem;
 
  
}
 div.bodyconder div.sharebody{
        text-align: center;
box-shadow: 10px;
margin-top: 2%;

border-radius: 5px;
padding: 10px;
box-shadow: 0px 5px 10px cadetblue;
border: 1px solid #ccc;
background-color: white;
    }
 div.bodyconder   div.sharebody h2{ 
        
        margin: 5px;
     margin-top:8px;
     margin-bottom:8px;
 }
  div.bodyconder   div.sharebody h3{
      padding:10px;
      
  }
div.bodyconder div.allcardconter div.singlecardconta{
     width: 100%;
    display: flex;
margin-right: auto;
margin-left: auto;
margin-top: 10px;
margin-bottom: 10px;
    background-color: white;
    height: 100%;
    padding: 20px;
        border-radius: 0.25rem;
box-sizing: border-box;
   
  text-align: center;
    position: relative;
    border: 1px solid #ddd;
    box-shadow: 0px 5px 10px cadetblue;
  border-radius: 4px;

}
@media only screen and (max-width:975px){
    div.bodyconder div.allcardconter{
    padding: 10px;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-gap: 2rem;
    }
      
      div.bodyconder div.allgamescontner{
    padding: 10px;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-gap: 2rem;   
      
}
@media only screen and (max-width:410px){
    div.bodyconder div.allcardconter{
    padding: 10px;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-gap: 2rem;
    }
      
      div.bodyconder div.allgamescontner{
    padding: 10px;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-gap: 2rem;   
     
}
 div.bodyconder div.allcardconter div.singlecardconta{
     width: 100%;
    display: block;
margin-right: auto;
margin-left: auto;
margin-top: 10px;
margin-bottom: 10px;
    background-color: white;
    height: 100%;
    padding: 20px;
        border-radius: 0.25rem;
box-sizing: border-box;
   
  text-align: center;
    position: relative;
    border: 1px solid #ddd;
    box-shadow: 0px 5px 10px cadetblue;
  border-radius: 4px;

}
  

}
div.bodyconder div.allcardconter div.singlecardconta img{
    
  padding: 5px;
margin: auto;
  width: 50px;
    height: 50px;

box-shadow: rgba(0,255,255, 0.5);

}
div.bodyconder div.allcardconter div.singlecardconta div.textcontener{
    text-align: center;
    padding: 10px;
}
div.bodyconder div.allcardconter div.singlecardconta div.textcontener h2{
color: #04AA6D;
}
div.bodyconder div.allcardconter div.singlecardconta div.textcontener p{
        margin: auto;
        color: black;
}
div.bodyconder div.allgamescontner{
    padding: 10px;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      grid-gap: 2rem;   
     
}
div.bodyconder div.allgamescontner div.singlegame{
    margin: auto;
    display: block;
    background-color: white;
    border: 1px solid #b8b7b7;
    box-shadow: 0px 5px 10px cadetblue;
    border-radius: 5px;

}
@media only screen and (max-width:975px){
    div.bodyconder div.allcardconter{
    padding: 10px;
      display: grid;
    
      grid-template-columns: repeat(2, 1fr);
      grid-gap: 2rem;
    }
      
      div.bodyconder div.allgamescontner{
    padding: 10px;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-gap: 2rem;  
    
}
}
div.bodyconder div.allgamescontner div.singlegame img {
    width: 100%;
    border-radius: 5px;    
}
div.bodyconder div.allgamescontner div.singlegame div.lablediv {
    text-align: center;
}
div.bodyconder div.allgamescontner div.singlegame div.lablediv label{

width: 100%;
text-decoration-style: solid;
color: black;
margin: 5px;
}

div.bodyconder .slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
div.bodyconder .mySlides {
  display: none;
}

/* Next & previous buttons */
div.bodyconder .prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}






</style>



<body>
    <header class="header">
    <div class="maincontaner">
<div class="hadercontainer">
    <h2>Fair Battle</h2>
    <div class="poincont">
        <a href="wallet.php">
        <img src="https://fairbattle.earnmoreapp.in/adminnh/assist/icon/addmoney.png"></img>
        </a>
    </div>
    <div class="profilecontainer">
        <a href="https://wa.link/ir6y5k">
        <img src="https://fairbattle.earnmoreapp.in/adminnh/assist/icon/logo.png" />
        </a>
        <div class="nameemailc">
      
    </div>
    </div>
</div>

</header>
<div style="margin-left:10px;"><h4>Hi, <?php echo $username; ?></h4></div>

    </div>
<div class="bodyconder">
    <div class="allcardconter">
         <a href="wallet.php">
        <div class="singlecardconta">
            <div class="textcontener">
<h2 >₹ <?php echo $addmoney ?></h2>
<p>Add Balance</p>
            </div>
            <img src="https://fairbattle.earnmoreapp.in/adminnh/assist/icon/wallet.png"/>
        </div>
        </a>
         <a href="wallet.php">
        <div class="singlecardconta">
            <div class="textcontener">
<h2>₹ <?php echo $winmoney ?></h2>
<p>win Balance</p>
            </div>
            <img src="https://fairbattle.earnmoreapp.in/adminnh/assist/icon/cash.png"/>
        </div>
        </a>
        <a href="wallet.php">
        <div class="singlecardconta">
            <div class="textcontener">
    <h2>₹ <?php echo $withdrawal ?></h2>
    <p>Total Withdrawal</p>
            </div>
            <img src="https://fairbattle.earnmoreapp.in/adminnh/assist/icon/withdrawal.png"/>
        </div>
    </a>
     <a href="wallet.php">
    <div class="singlecardconta">
        <div class="textcontener">
    <h2><?php echo $total_match ?></h2>
    <p>Played matches</p>
        </div>
        <img src="https://fairbattle.earnmoreapp.in/adminnh/assist/icon/puzzle.png"/>
    </div>
    </a>
    
</div>
<center>
<div class="image-slideshow">
      <div class="image fade">
      <img class="imgbanner" src="https://fairbattle.earnmoreapp.in/fairb/Courgette.png" alt="Mountain Top">
      </div>        
      <div class="image fade">
      <img onclick="imageClick('https://chat.whatsapp.com/Ckr5HiHW2GO8YtnQvoXNaJ')" class="imgbanner" src="https://fairbattle.earnmoreapp.in/fairb/Banner/banner2.png" alt="Palm Trees"> 
      </div>     
      <div class="image fade">
      <img class="imgbanner" src="https://fairbattle.earnmoreapp.in/fairb/Courgette.png" alt="Neon Sign">
      </div>
    </div>
   </center>
<Script>

function imageClick(url) {
    window.location = url;
}

</Script>
  <style>.image-slideshow {
    max-width: 1000px;
    position: relative;
    height: 10%;
    text-align: center;
    margin-top: 2%;
  }
  .imgbanner {
    height: 90%;
    width: 100%;
}
  .fade {
    animation-name: fade;
    animation-duration: 3s;
  }
  @keyframes fade {
    from {opacity: .7}
    to {opacity: 1}
  }</style>
  <script>let index = 0;
    displayImages();
    function displayImages() {
      let i;
      const images = document.getElementsByClassName("image");
      for (i = 0; i < images.length; i++) {
        images[i].style.display = "none";
      }
      index++;
      if (index > images.length) {
        index = 1;
      }
      images[index-1].style.display = "block";
      setTimeout(displayImages, 3000); 
    }</script>







    <div class="allgamescontner">
        
        
        
        
        
    <div class="singlegame">
        <a href="match.php?game=1">
        <img src="https://fairbattle.earnmoreapp.in/fairb/uploads/game_image/pubg.jpg" />
    
        <div class="lablediv">
            <label>Battle Ground India</label>
        </div>
        </a>
    </div>
    <div class="singlegame">
         <a href="match.php?game=2">
        <img src="https://fairbattle.earnmoreapp.in/fairb/uploads/game_image/ff.jpg" />
        <div class="lablediv">
        <label>Gearena Free Fire</label>
    </div>
    </a>
    </div>
    <div class="singlegame">
         <a href="match.php?game=3">
        <img src="https://fairbattle.earnmoreapp.in/fairb/uploads/game_image/ludo.jpg" />
        <div class="lablediv">
             <div class="lablediv">
                <label>Ludo King</label>
    </div>
   </a>
        </div>
    </div>
    <div class="singlegame">
         <a href="match.php?game=4">
        <img src="https://fairbattle.earnmoreapp.in/fairb/uploads/game_image/mobile_legend_image.jpeg" />
        <div class="lablediv">
            <label>Mobile Legend</label>
        </div>
        </a>
    </div>
    
    </div>
     <div class="sharebody">
        <h2>Share And Earn </h2>
        <p>Refer And Earn Rs5 Per Refer Where Your Friend Join Any Paid Contest</p>
        <p>https://fairbattle.earnmoreapp.in/signup.php?refid=<?php echo $refercode;?></p>
    </div>
</div>

<style>
    
body{
display: block;
background-color: aliceblue;
}
*{
padding: 0;
margin: 0;

box-sizing: border-box;
font-family: Canva Sans,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;;
text-decoration: none;


}
div.maincontaner{
padding: 20dp;
background-color: white;
box-shadow: 5px 5px rgba(red, green, blue, alpha);
}
div.maincontaner div.hadercontainer{

display: flex;
width: var(--s-full);
align-items: center;

border: 1px solid #ccc;

    box-shadow: 1px 5px 10px cadetblue;
background-color: darkturquoise;

}
div.maincontaner div.hadercontainer:hover{
background-color: skyblue;
border: 1px solid darkturquoise;
border-radius: 3px;
}
div.maincontaner div.hadercontainer h2{
margin-right: auto;
font: 2em;
margin-left: 20px;
text-align: left;

} 
div.maincontaner div.hadercontainer div.poincont{
margin-right: 20px;
border: none;
background-color: transparent;

box-shadow: 10px;

border-radius: 19px;
}
div.maincontaner div.hadercontainer div.poincont img{
margin: 0;
width: 40px;


}
div.maincontaner div.hadercontainer div.profilecontainer{
margin: 5px;
display: flex;
}
div.maincontaner div.hadercontainer div.profilecontainer  img{
    width: 40px;
    height: 40px;
border-radius: 50%;
margin: 5px;
}
div.maincontaner div.hadercontainer div.profilecontainer div.nameemailc{

margin: auto;
}
div.maincontaner div.hadercontainer div.profilecontainer div.nameemailc h2{
margin: 0;

}
div.bodyconder{
    margin: 5dp;
    
}
div.bodyconder div.allcardconter{
    padding: 10px;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      grid-gap: 2rem;
 
  
}
 div.bodyconder div.sharebody{
        text-align: center;
box-shadow: 10px;
margin-top: 2%;

border-radius: 5px;
padding: 10px;
box-shadow: 0px 5px 10px cadetblue;
border: 1px solid #ccc;
background-color: white;
    }
 div.bodyconder   div.sharebody h2{ 
        
        margin: 5px;
     margin-top:8px;
     margin-bottom:8px;
 }
  div.bodyconder   div.sharebody h3{
      padding:10px;
      
  }
div.bodyconder div.allcardconter div.singlecardconta{
     width: 100%;
    display: flex;
margin-right: auto;
margin-left: auto;
margin-top: 10px;
margin-bottom: 10px;
    background-color: white;
    height: 100%;
    padding: 20px;
        border-radius: 0.25rem;
box-sizing: border-box;
   
  text-align: center;
    position: relative;
    border: 1px solid #ddd;
    box-shadow: 0px 5px 10px cadetblue;
  border-radius: 4px;

}
@media only screen and (max-width:975px){
    div.bodyconder div.allcardconter{
    padding: 10px;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-gap: 2rem;
    }
      
      div.bodyconder div.allgamescontner{
    padding: 10px;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-gap: 2rem;   
      
}
@media only screen and (max-width:410px){
    div.bodyconder div.allcardconter{
    padding: 10px;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-gap: 2rem;
    }
      
      div.bodyconder div.allgamescontner{
    padding: 10px;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-gap: 2rem;   
     
}
 div.bodyconder div.allcardconter div.singlecardconta{
     width: 100%;
    display: block;
margin-right: auto;
margin-left: auto;
margin-top: 10px;
margin-bottom: 10px;
    background-color: white;
    height: 100%;
    padding: 20px;
        border-radius: 0.25rem;
box-sizing: border-box;
   
  text-align: center;
    position: relative;
    border: 1px solid #ddd;
    box-shadow: 0px 5px 10px cadetblue;
  border-radius: 4px;

}
  

}
div.bodyconder div.allcardconter div.singlecardconta img{
    
  padding: 5px;
margin: auto;
  width: 50px;
    height: 50px;

box-shadow: rgba(0,255,255, 0.5);

}
div.bodyconder div.allcardconter div.singlecardconta div.textcontener{
    text-align: center;
    padding: 10px;
}
div.bodyconder div.allcardconter div.singlecardconta div.textcontener h2{
color: #04AA6D;
}
div.bodyconder div.allcardconter div.singlecardconta div.textcontener p{
        margin: auto;
        color: black;
}
div.bodyconder div.allgamescontner{
    padding: 10px;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      grid-gap: 2rem;   
     
}
div.bodyconder div.allgamescontner div.singlegame{
    margin: auto;
    display: block;
    background-color: white;
    border: 1px solid #b8b7b7;
    box-shadow: 0px 5px 10px cadetblue;
    border-radius: 5px;

}
@media only screen and (max-width:975px){
    div.bodyconder div.allcardconter{
    padding: 10px;
      display: grid;
    
      grid-template-columns: repeat(2, 1fr);
      grid-gap: 2rem;
    }
      
      div.bodyconder div.allgamescontner{
    padding: 10px;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-gap: 2rem;  
    
}
}
div.bodyconder div.allgamescontner div.singlegame img {
    width: 100%;
    border-radius: 5px;    
}
div.bodyconder div.allgamescontner div.singlegame div.lablediv {
    text-align: center;
}
div.bodyconder div.allgamescontner div.singlegame div.lablediv label{

width: 100%;
text-decoration-style: solid;
color: black;
margin: 5px;
}

div.bodyconder .slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
div.bodyconder .mySlides {
  display: none;
}

/* Next & previous buttons */
div.bodyconder .prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}






</style>

</body>
</html>