<?php
ob_start();
session_start();
?>
<!DOCTYPE html>
<html data-bs-theme="dark">
<head>
<?php

require_once 'core/classes.php';
require_once 'core/classes/user.php';
if(isset($_SESSION['user'])) {
$user = new User($con, $_SESSION['user']);
$loggedIn = true;
} else {
$loggedIn = false; 
}
$getitstarted = new PartyStarter;
$getitstarted->header();

if(isset($_GET['p'])) {
$page = $_GET['p'];	
} else {
$page = 1;	
}
$limit = 18;
$page -= 1;
$offset = $page * $limit;

?>
</head>
<title><?php echo $pagename; ?> | <?php echo $sitename; ?></title>
<body>
  <main class="container">
  <br>
  <h2> <?php echo $sitename; ?> Admin Panel </h2>
    <br>
	<div class="d-flex align-items-start">
  <div class="nav flex-column nav-pills me-3" id="v-pills-tab" role="tablist" aria-orientation="vertical">
    <button class="nav-link active" id="users-tab" data-bs-toggle="pill" data-bs-target="#users" type="button" role="tab" aria-controls="users" aria-selected="true">Users</button>
    <button class="nav-link" id="games-tab" data-bs-toggle="pill" data-bs-target="#games" type="button" role="tab" aria-controls="games" aria-selected="false">Games</button>
    <button class="nav-link" id="catalog-tab" data-bs-toggle="pill" data-bs-target="#catalog" type="button" role="tab" aria-controls="catalog" aria-selected="false">Catalog</button>
    <button class="nav-link" id="jobs-tab" data-bs-toggle="pill" data-bs-target="#jobs" type="button" role="tab" aria-controls="jobs" aria-selected="false">Jobs</button>
    <button class="nav-link" id="v-pills-settings-tab" data-bs-toggle="pill" data-bs-target="#v-pills-settings" type="button" role="tab" aria-controls="v-pills-settings" aria-selected="false">Settings</button>
  </div>
  <div class="tab-content" id="v-pills-tabContent">
    <div class="tab-pane fade show active" id="users" role="tabpanel" aria-labelledby="users-tab" tabindex="0">users table of contents go here lol</div>
    <div class="tab-pane fade" id="games" role="tabpanel" aria-labelledby="games-tab" tabindex="0">games to approve</div>
    <div class="tab-pane fade" id="catalog" role="tabpanel" aria-labelledby="catalog-tab" tabindex="0">catalog items to approve and add custom ones that users cantt add...</div>
    <div class="tab-pane fade" id="jobs" role="tabpanel" aria-labelledby="jobs-tab" tabindex="0">job execustionfg</div>
    <div class="tab-pane fade" id="v-pills-settings" role="tabpanel" aria-labelledby="v-pills-settings-tab" tabindex="0">set if revival use key sistem or no.</div>
  </div>
</div>

  </main>
</body>
</html>
